forked from Blendman974/faceclaw
Add a notification-icons database (from Pebble) for iOS
This commit is contained in:
1 parent
f47d82b871
commit
35a4ae7064
20 files changed
+1236
-102
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
import { type GrayImage, type UiFont } from "../../../graphics/image";
|
||||
import { ensureLocationPermission, hasLocationPermission } from "../../../native/location-permissions";
|
||||
import { onAndroidNotificationsChanged, readActiveNotificationIcons } from "../../../native/notification-icons";
|
||||
import { NOTIFICATION_ICON_SIZE } from "../../../native/notification-types";
|
||||
import { readPhoneBatteryState } from "../../../native/phone-battery";
|
||||
import { weatherBridge } from "../../../native/weather";
|
||||
import { formatClockDate, formatClockTime } from "../../../ui/clock-format";
|
||||
@@ -37,7 +38,6 @@ import { glanceFont } from "../glance-font";
|
||||
import { type GlanceWidget } from "../widget";
|
||||
|
||||
const PAD = 8;
|
||||
const NOTIFICATION_ICON_SIZE = 24;
|
||||
const NOTIFICATION_ICON_GAP = 4;
|
||||
const BATTERY_ITEM_GAP = 12;
|
||||
const BATTERY_LABEL_VALUE = 150;
|
||||
|
||||
@@ -25,6 +25,7 @@ import { EVENHUB_RUNTIME_FONT_FILENAME, isEvenHubFontAsset } from "../g2/firmwar
|
||||
import { lvglMetrics, lvglGlyph } from "../native/lvgl-font";
|
||||
import { GrayImage, grayToNibble, type FwTextFont, type PlacedFwText, type PlacedFwTextGlyph } from "./image";
|
||||
import { TtfFont } from "./ttf-font";
|
||||
import { decodeBase64 } from "../util/base64";
|
||||
|
||||
const CJK_ASSET_PATH = "fonts/source-han-sans/SourceHanSansSC-Light-20.lvgl.bin";
|
||||
|
||||
@@ -55,25 +56,6 @@ type CjkGlyph = {
|
||||
bitmap: Uint8Array;
|
||||
};
|
||||
|
||||
const BASE64_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
|
||||
function base64Decode(text: string): Uint8Array {
|
||||
const clean = text.replace(/[^A-Za-z0-9+/]/g, "");
|
||||
const out = new Uint8Array(Math.floor((clean.length * 3) / 4));
|
||||
let bits = 0;
|
||||
let bitCount = 0;
|
||||
let outIndex = 0;
|
||||
for (let i = 0; i < clean.length; i++) {
|
||||
bits = (bits << 6) | BASE64_ALPHABET.indexOf(clean[i]!);
|
||||
bitCount += 6;
|
||||
if (bitCount >= 8) {
|
||||
bitCount -= 8;
|
||||
out[outIndex++] = (bits >> bitCount) & 0xff;
|
||||
}
|
||||
}
|
||||
return out.subarray(0, outIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Codepoint ranges whose glyphs the font asset merged from the flash CJK
|
||||
* font with a baseline-shifted ofsY (see scripts/build-evenhub-font.mjs).
|
||||
@@ -144,7 +126,7 @@ export class EvenHubFont implements FwTextFont {
|
||||
this.useTtfFallback = useTtfFallback;
|
||||
this.lineHeight = asset.lineHeight;
|
||||
this.baseline = asset.baseline;
|
||||
this.bitmap = base64Decode(asset.bitmapBase64);
|
||||
this.bitmap = decodeBase64(asset.bitmapBase64);
|
||||
this.glyphs = new Map();
|
||||
for (const key of Object.keys(asset.glyphs)) {
|
||||
this.glyphs.set(Number(key), asset.glyphs[key]!);
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
// Generated by scripts/generate-pebble-icons.cjs; do not edit by hand.
|
||||
//
|
||||
// Pebble notification icons from https://github.com/pebble-dev/iconography
|
||||
// (commit 16a9ea42ea7ac079127af2ecc54f453dfbc314c8): the original Pebble Technology icons and
|
||||
// Rebble community additions, licensed under the Apache License 2.0 (see
|
||||
// app/graphics/pebble-icons.LICENSE). Modified: rasterized at 25x25 and
|
||||
// inverted for a black display (Pebble draws them black on white).
|
||||
//
|
||||
// Each icon is SIZE x SIZE pixels at 2 bits each (0, 1, 2 = coverage 0,
|
||||
// 128, 255), four pixels to a byte with the first in the high bits,
|
||||
// row-major, base64-encoded.
|
||||
|
||||
export const PEBBLE_ICON_SIZE = 25;
|
||||
|
||||
export const PEBBLE_ICON_DATA = {
|
||||
generic: "AAACgAAAAAAAoAAAAAAAKAAAAAACqqgAAAACqqqAAAACoACoAAACoAAKgAACoAAAqAAAoAAACgAAKAAAAoAACgAAAKAAAoAAACgAAKAAAAoAACgAAAKAACoAAACoACoAAAAKgCqqqAAAqAqqqgAACgKAAAAAAoCgAAAAAKAqqqqqqqgKqqqqqqoAAAAABkAAAAAAAKAAAAAAACgAAA==", // pebbleos/Pebble_25x25_Generic_notification.svg
|
||||
activity: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAACkAGkAAAAqkKqQAAAKaqhqAAACgagqpAAAoAQaakAAKAABGqkACgAAClqkAoAAAUZqQKqpAAKBqSlWqqqgBooAFVWkAKKAAAAZACilVVValVpqqqqqqqqQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Activity.svg
|
||||
alarmClock: "AAAAAAAAAAAAAAAAAAoAAACgAAqCqqgqAAqCqqqCoAqCoACoKgKCoAAKgoACoAoAqAACoAKACoACoACgAKgAoAAoAAoAKAAKAAKACgAKgACgAoAKgAAoAKAKgAAKACgKgAACgAqCgAACoACoAAACoAAKgAACoAACqAACqAABmoACpkAAZKqqoZAAKAqqoCgACgAAAAoAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Alarm_clock.svg
|
||||
appStore: "AAAAAAAAAAACqoAAAAACqqgAAAACooqAAAACoKCoAAAAoCgKAAAAKAoCgAAACgKgoAAAAoAqKAAAAKgCqgAAAAqAKgAAAACqqgAAAAAKqgAABAAAAAAARpQAAAAFpGqqqqqqpAGqqqqqkAAoAAAAoAAKAAAAKAACgAAACgAAoAAAAoAAKAAAAKAACqqqqqgAAqqqqqoAAAAAAAAAAA==", // icons/25px_Appstore.svg
|
||||
calendar: "AAKAAKAAAACgACgAAKqqqqqqgCqqqqqqoAoCgACgKAKAoAAoCgCiqoCqooAoqqAqqKAKAAAAACgCgAAAAAoAoAAAAAKAKAAACgCgCgAABoAoAoAABoAKAKAKBoACgCgCkpAAoAoAKpAAKAKABpAACgCgAKAAAoAoAAAAAKAKAAAAACgCgAAAAAoAqqqqqqqAKqqqqqqgAAAAAAAAAA==", // pebbleos/Pebble_25x25_Calendar.svg
|
||||
car: "AAAAAAAAAAqqqqpAAAKqqqqgAAGQAAAoAACgAAAGQAAoAAAAoAAZAAAAKQAKAAAABkCqgAAAAKqqqqqqqqqgqqqqqqqAKAKACgCgCgCgAoAoAqqoAKqqAKqqACqqgCgAKqAAoAoACqgAKAKAAAAACgCqqqqqqoAqqqqqqqAAoKACgoAAKCgAoKAACgoAKCgCqqqqqqqqqqqqqqqqgA==", // pebbleos/Pebble_25x25_Car_rental.svg
|
||||
contacts: "AAAAAAAAACqqqqqqAAqqqqqqgAKAAAAAoAqqAAAAKAKqgAAACgAKAAAAAoACgAAAAKAAoAApACgAKAAaQAoACgAGkAKAKqgAAACgCqoAGAAoACgAGoAKAAoAGqgCgAKACqpAoACgAAAAKAAoAAAACgCqoAAAAoAqqAAAAKAAoAAAACgAKAAAAAoACqqqqqqAAqqqqqqgAAAAAAAAAA==", // icons/25px_Contacts_book.svg
|
||||
dinner: "AAAAAAAAAAAqqqAAAAAqqqoAAAKqAAKqAAKqAAAqoAKigAAKKgKgoAACgqCgKgACoCgoAqACoAoKACgAoAKCoAAAAAKgKgAAAAKgAqoAACqgACqAAAqgAACgAAKAAAAooCigAAAKKAooAAACigKKAAAAqqqqgAAAKqqqoAAACgAAKAAAAoAACgAAAKqqqoAAACqqqqAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Dinner_reservation.svg
|
||||
email: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACqqqqqqqoqqqqqqqqKqAAAACqiioAAACoooKgAACoKKAqAACoCigCoACoAooAKgCoAKKAAqCoACigACqoAAooAoKoKAKKAqAoCoCigqAAAKgooqAAAAqKKqAAAACqiqAAAAAKoqqqqqqqqKqqqqqqqgAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Generic_e-mail.svg
|
||||
flight: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaAAAAAABqoAAAAAWpagqoABqkCqKqQGqQCqpkpalAAoKZGqQAAACmQpAAAAAooAAAqoAKKAAAKqAChkAUAGQCoZAKACgCoGQCgAoCoAqqoAaqoAKqqAKqoAAACgCgAAAAAoBkAAAAAKqoAAAAACqqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Scheduled_flight.svg
|
||||
glucose: "AAAAAAAAAAAAAAAAAKqqqqqqgCqqqqqqoAoAAAAAKAKAAAAACgCgAAAAooAoAAAAqKAKAAAAqCgCgAoAqAoAoAqgqAKAKAqqqACgCgqCqAAoAoqAKAAKAKKAAAACgCgAAAAAoAoAAAAAKAKKqoAACgCiqqAAAoAoAAAAAKAKAAAAACgCqqqqqqoAqqqqqqqAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Glucose_monitor.svg
|
||||
heart: "AAAAAAAAAAKAACgAAAKoACqAAAKqgCqoAAKgqCoKgAKgCqoAqAKgAKoACoCgAAoAAKAoAAAAACgKAAAAAAoCgAAAAAKAoAAAAACgKAAAAAAoCoAAAAAqAKgAAAAqAAqAAAAqAACoAAAqAAAKgAAqAAAAqAAqAAAACoAqAAAAAKgqAAAAAAqqAAAAAACqAAAAAAAKAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Heart.svg
|
||||
incomingCall: "AAAACgAAAAAAAoAAAAAAqqqqqAAAKqqqqgAACgAAAoAAAoqqqKAAAKKqqigAACigAooAAAooAKKCgAKKACigqACigAooCoAoqqqKAKgKKqqigAqCgAAAoACgoqiqKAAAKKoqiqqgCgAAAqqoAoqiqKAAAKKoqigAKCgAAAoAKgoAAAKAKgKAAACgKgCgAAAoKgAqqqqqCgAKqqqqgA==", // pebbleos/Pebble_25x25_Incoming_call.svg
|
||||
location: "AAACqqqoAAAAqqqqAAAAKAAqAAAACgAqAAAAAoAqAAAAAKAKgAAAACgAqAAAAAoACoAAAAKqqqgAAACqqqoAAAAoAAAAAAAKAAAAAAACgAAAAAAAoAAAAAAAKAAAAAAACgAAAAAAAoAAAAACqqqqAAACqqqqoAACoAoAKgACoAKAAqACoACgACoCoAAAAAKiqqqqqqqqqqqqqqqqgA==", // pebbleos/Pebble_25x25_Location.svg
|
||||
microphone: "AAAqqoAAAAAqqqgAAAAqCgqAAAAKBpSgAAACqqqoAAAAqmmqAAAAKAoCgAAACqqqoAAAAqqqqAAAAKAoCgAAACgKAoAAAAqmmqAAAAKqqqgAAACgaQoAAAAqCgqAAAACqqqAAACgKqqAoAAqAAAAqAACoAAAqAAAKqqqqAAAAqqqqAAAAAAoAAAAAAAKAAAAAAAqqAAAAAAKqgAAAA==", // icons/25px_Microphone.svg
|
||||
missedCall: "AAAACgAAAAAAAoAAAAAAqqqqqAAAKqqqqiqoCgAAAoqqAoqqqKKoAKKqqiiqgCigAoooqAooAKKKCoKKACigAKiigAooACooqqqKACoKKqqigCoCgAAAoCoAoqiqKCoAKKoqiioACgAAAqoAAoqiqKoAAKKoqigAACgAAAoAAAoqiqKAAAKKoqigAACgAAAoAAAqqqqqAAAKqqqqgA==", // pebbleos/Pebble_25x25_Missed_call.svg
|
||||
movie: "AAAAAAAAAAAAAAAAAKqqqqqqACqqqqqqgAoqACoAoAKCoAKgKACgKgAqCgAoAqACooAKqqqqqqACqqqqqqgAoAqACooAKAqACoKACgqACoCgAoqACoAoAKqqqqqqACqqqqqqgAoAAAAAoAKAAAAAKACgAAAACgAoAAAAAoAKqqqqqqACqqqqqqgAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Movie_event.svg
|
||||
music: "AAKQAAAAAACqkAAAAAApqpAAAAAKAaqQAAACgAGqkAAApAABqoAAKqQAAaAACmqkACgAAoBqpAoKqqAAaqaCqqgAAGqgoAoAAABoKAKAAAAKCgCgAAACgoAoAAAAoKAKAAKqqCqqgACqqgqqoAAoAoAAAAAKAKAAAAACgCgAAAAAoAoAAAAAKAKAAAAACqqgAAAAAqqoAAAAAAAAAA==", // icons/25px_Music_note.svg
|
||||
news: "AAAAAAAAAAAAAAAAAAAAAAAAACqqqqqqoAqqqqqqqAKAAAAACgCgAAAAAoAoKqqqoKAKCqqqqCgCgAAAAAoAoKqqqgKAKCqqqoCgCgAAAAAoAoKqqqAKAKCqqqgCgCgAAAAAoAoKqqAAKAKCqqgACgCgAAAAAoAoAAAAAKAKqqqqqqgCqqqqqqoAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_News_event.svg
|
||||
payBill: "AAAAAAAAAAAAAAAAAAAAAAAAApQAAAAAWqqlAABaqplqqAKqpZZAWgClAGSgAZBkACgoACgoAAoKqqqpAAZCqqqqQAGQoAACgAGgKAACkAaoCgACpBqqAoACqmqSgKACoqpAoCgAqCoAKAoACqoACgKAAKoAAoCgAAoAAKAoAAAAACgKqqqqqqoCqqqqqqqAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Pay_bill.svg
|
||||
phone: "AAAACgAAAAAAAoAAAAAAqqqqqAAAKqqqqgAACgAAAoAAAoqqqKAAAKKqqigAACigAooAAAooAKKCgAKKACigqACigAooCoAoqqqKAKgKKqqigAqCgAAAoACgoqiqKAAAKKoqiqqgCgAAAqqoAoqiqKAAAKKoqigAKCgAAAoAKgoAAAKAKgKAAACgKgCgAAAoKgAqqqqqCgAKqqqqgA==", // pebbleos/Pebble_25x25_During_phone_call.svg
|
||||
podcast: "ACgAAAAAAAoAAAAAAAZAAAAAAAGQAAAAAACgAAAAAAAoAAAAAAAZAAAAAAAGQAAAAAAqqqqqqqoKqqqqqqqCgAAAAACgoAAAAAAoKAqoAqqKCgqqgKqigoqAqAAAoKKACgAAKCigAoAACgooAKAAAoKKgKgAAKCgqqgAACgoCqgAAAoKAAAAAAKCgAAAAACgqqqqqqqoKqqqqqqqAA==", // pebbleos/Pebble_25x25_Radio_show.svg
|
||||
reminder: "AAAACqoAAAAAAqqCgAAAAKCioAAAACgqoAAAAAoKoAAAAAKqoAAAAACqqAAqqqqoKoAKqqqqCqgCgoKCgoqAoKCgoKCgKCgoKCgACgoKqqqAAoKCqqqgAKqqoAAoACqqqAAKAAqACqoGgACoAqqGgAAKgAACkAAAoAACkAAAKAAAoAAACgAAKAAAAoAACgAAAKqqqoAAACqqqqAAAA==", // pebbleos/Pebble_25x25_Generic_reminder.svg
|
||||
settings: "AAAKqqAAAAACqqgAAAAAoAoAAqqqqAKqqqqqqgCqqoAAAoAoAAAAAKqqAAAAACqqgAAAAAAAAAAAqqoAAAAAKqqAAAAACgCgAAAAqoAqqqqqqqAKqqqqoCgCgAAAAAqqoAAAAAKqqAAAAAAAAAAKqqAAAAACqqgAAAAAoAqqqqqqqAKqqqqqqgCgAAAAAoAoAAAAAKqqAAAAACqqgA==", // pebbleos/Pebble_25x25_Settings.svg
|
||||
shopping: "AAAAaAAAAAABqoAAAAACqaAAAAAApCgAAAAAKAoAAAAACgKAAACqqqqqqoAqqqqqqqAGgAAAAGQApAAAACgAGgAAAAoAApAAAAZAAGgAAAKAAAoAAACgAAZAAABkAAKAAABoAACgAAGqQABkAAKpoAAoAACkKQAKAAAABoAGQAAAAKQCqqqqqqoAqqqqqqqAAAAAAAAAAAAAAAAAAA==", // icons/25px_Shopping_bag.svg
|
||||
sms: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACqqqqqqqAqqqqqqqoCoAAAAAKgKgAAAAAoAoAAAAAKAKCqqqqCgCgqqqqgoAoAAAAAKAKAAAAACgCgqqgAAoAoKqoAAKAKAAAAACgCgAAAAAoAqAAAAAqACqqqqqqAAKqqqqqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // icons/25px_SMS.svg
|
||||
stocks: "AAAAAAAACgAAAAAAAoAAAAAAAKAAAAAAACgAAAAAAAoAAAAoAAKAAAAqigCgAAAqqqAoAAAqCqoKAoAqCoKigqgqAqCooqqqACqoKqCqAAKoCqAKAAAoAqAAAAAKAKAAAAACgCgAAAAAoAoAAAAAKAKAAAAACgCgAAAAAoAoAAAAAKAKAAAAACgCqqqqqqoAqqqqqqqAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Stocks_event.svg
|
||||
tv: "AAAAAAoAAAAAAAqAAAAKAAqAAAACoAqAAAAAKgqAAAAAAqqAAAKqqqqqqqCqqqqqqqgoAAAAAAoKKqqqqqKCiqqqqqigooAAAAooKKAAAAKKCigAAACigooAAAAooKKAAAAKKCiqqqqqigoqqqqqooKAAAAAAKCgACqgACgoAAqoAAoKAAAAAAKCqqqqqqqgqqqqqqqoAAAAAAAAAA==", // pebbleos/Pebble_25x25_TV_show.svg
|
||||
voicemail: "AABAUAAAAABkaAAAAAAZKQAAAAAKKQAAAAKCigEAAACoABaQAABqgCqQAAApqApAAAAKCoAAAAAGQKgAAAACgAqAAAAAoBqgAAAAZCqQAAAAKQqAAAAACoBpAKAAAKgGkGoAAAaQaSqgAABpBqoqAAAGkCpCoAAAaQKAKgAABpAABqAAAGkAGqgAAAKhqpAAAAAqqQAAAAACkAAAAA==", // icons/25px_Phone.svg
|
||||
warning: "AAAAAAAAAAAAoAAAAAAAaQAAAAAAKoAAAAAAGqQAAAAACgoAAAAABkGQAAAAAoooAAAAAZKGQAAAAaCgpAAAAKQoGgAAAGgKApAAACkCgGgAABoAoApAAApAKAGgAAZAAAAZAAKAAoACgAGQAKAAZACgACgACgCkAAoAAaBoAAAAACkqqqqqqqqKqqqqqqqgAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Generic_warning.svg
|
||||
weather: "AAAAAAKAAAAAAACgAAAACgAoAAAAAqAKAAAAACoAAAAAAAKKqgAAAAAKqqAAAAAKgCoAAKqCgAKAAKqooACgAKgKqAAoKqgAqqqqKqoACqqqqgKgAAACqgAoAAAAKoAAAAAACqAAAAAAAqgAAAAAAKqAAAAAAKiqqqqqqqgKqqqqqqgAAAAAAAAAKCgoAAAACgoKAAAAAoKCgAAAAA==", // pebbleos/Pebble_25x25_Generic_weather.svg
|
||||
airmail: "AAAAAAAAAAAAAAAAAAAqqqoAAAAqqqqgAAAqAAAqAAAqAAACoAAqAAAAKgAqAAAAAqAKkAAAAagCqkAABqoApqkAGqaAKBqkapCgCgBqqkAoAoABqQAKAKAAAAACgCgAAAAAoAoAAAAAKAKgAAAAKgAaQAAAKgABpAAAKgAAGkAAKgAAAKqqqgAAAAqqqgAAAAAAAAAAAAAAAAAAAA==", // brand-logos/Airmail_25px.svg
|
||||
amazon: "AACqqgAAAACqqqAAAACoACoAAACoAAKgAAAqqoAoAAAKqqgKAAAAAAqCgAAAAACgoAAAAqqoKAAAAqqqCgAAAqAAAoAAAqAAAKAAAKAqqCgAACgqqgoAAAoKAoKAAAKCgKCoAACgqqgKgAAoCqgAqAAKgAAoKgKAqAAqqgqoCqqqqgqKgKqqCgqAqAAAAAqACqqqqqqAAKqqqqqAAA==", // pebbleos/Pebble_25x25_Amazon.svg
|
||||
appleShortcuts: "AAAKqAAAAAAKqoAAAAAKgKgAAAAKgAqAAAAKgACoAAAKgAAKgAAKgAAAqAAKgCqgCoACgCqqAKAAoCoCoCgAKgoAKioAAqAAAqoAACoAACoAACqgACqgACoqACoqAAoCoCoCgAKAKqoAoACoAqoAqAAKgAAAqAAAqAAAqAAACoAAqAAAAKgAqAAAAAqAqAAAAACqqAAAAAAKqAAAAA==", // brand-logos/Apple_Shortcuts_25px.svg
|
||||
bbcNews: "qqqqqqqqoAAAAAAAKCqgqoCqCgqqKqiqooKCigooKKCqoqqKACgqqKqigAoKCigooKKCqoqqKqigqoKqAqgoAAAAAAAKAAAKqqACgAACqqgAoAAAoAoAKACqqAKACgAqqgCgAoAKAoAoAKACgKqqACgAoCqqgAoAKqoKAAKACqqCgACgAACqoAAoAAAqqAAKAAAAAAACqqqqqqqqgA==", // brand-logos/BBC_News_25px.svg
|
||||
beeper: "AAqqqqAAAAqqqqoAAAqAAAKgAAqAAAAqAAqAAAACoAKAAAAAKACgAAAACgAoAAAAAoAKAAAAAKACoAAAAKgAKgAAAKgAAqAAAKgAAKqqoKgAACqqqKoAAAoAGaqgAAKACqgqAACgAqgCoAAoAagAKAAKAKgACgACgCgAAoAAoAAAAqAAKAAAAqAACgAAAqAAAqqqqqAAAKqqqqAAAA==", // brand-logos/Beeper_25px.svg
|
||||
bluesky: "AAAAAAAAAGgAAAApAqqAAAAqqKWoAAAqWigKgAAqAooAqAAqAKKACoAqACigAKgqAAooAAqqAAKKAACqAACigAAKAAAopAAAAAAaGgAAAAAKQpAAAAAGgGqoAAKqkAqqAACqoAKpAAAGqACkAAAAGgAoAAAAAoAKAAKAAKACgAGkACgAqACqACoACoBqkCoAAKqpaqoAAAqqCqoAAA==", // brand-logos/Bluesky_25px.svg
|
||||
discord: "AAAAAAAAAAAAAAAAAAAAAAAAAABoAACkAAKqqqqqoAClqqqpaABkAAAABkAoAAAAAKAKAAAAACgGQAAAAAZCgAAAAACgoCqgKqAoZAqoCqgGaAKKAooAqgCqgKqAKoAqoCqgCqAAAAAAAqkAAAAAAaqkCqqoBqhqmqqqmqQBqoAAqpAABoAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // brand-logos/Discord_25px.svg
|
||||
duolingo: "AAAAAAAAAAAAAAAAAAoAAAAoAKagAAAqaCqqAAAqqhqmoAAqappoKgAqCmqAAqAqAAUKqCgKCqgKqoAACqqKgKgACoCqgAoAAoAKoKKAAKKCqCigACigqgooAAooKoKKAAKKCqCiiqiigqoCqqqqAqKqqoCqqqAqoqqqKqAAAKqqgAAAAAoCgAAAAAKqoAAAAAAqoAAAAAAAAAAAAA==", // brand-logos/Duolingo_25px.svg
|
||||
ebay: "AAAqqgAAAAAqqqAAAAAqACoAAAAqAAKgAAAKAAAoAAACgAAKAAKqqqqqqqCqqqqqqqgoAKACgAoKACgAoAKCgAoAKACgoAKACgAoKACgAoAKCgAoAKACgoAKACgAoKACgAoAKCgAoAKACgoAKACgAoKACgAoAKCgAoAKACgoAKACgAoKgCgAoAqAqAoAKAqACqqqqqqAAKqqqqqAAA==", // brand-logos/eBay_25px.svg
|
||||
element: "AACqqoAAAAAqqqgAAAAKAAqAAAACgACoAAAAqqgKAACqqqqCgACqqqCgoACoACgoKACoAAoKCqqoCqqCgqqqCqqgqqgqgoAAKqoKoKAAAAKCqCqqAACgqgqqgqqoKqqgoKqoCqqoKCgACoAKCgoACoACgoKqqoAAoKqqqoAAKAqqgAAACoAAoAAAAKgAKAAAAAqqqgAAAACqqoAAAA==", // brand-logos/Element_25px.svg
|
||||
facebook: "AAAAAAAAAAAAAAAAAAAAAAAAAAqqqqqqgAKqqqqqoACgAAAAKAAoAAAACgAKAAAKgoACgAAKoKAAoAAKgCgAKAACgAoACgAAoAKAAoACqqCgAKAAqqgoACgAAoAKAAoAAKACgAKAACgAoACgAAoAKAAoAAKACgAKAACgAoACqqqqqqAAqqqqqqgAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Facebook_notification.svg
|
||||
facetime: "AAAoAAAAAAAKAAAAAoACgAKAAKgAoAKgAAqAKAKgAACoCgKgAAAKgoKgAAAAoACgAAAAAAAAAAAAAAAAAAAAKqqqoACgKqqqqgCoKgAAAqCqKgCqgCqqigCqqAKoooCoCoCoKKAoAKAoCigKACgKAooCgAoCgKKAqAqAqCigCqqAKooqAKqAKqqCoAAAKgqgKqqqqgCoAqqqqgAKAA==", // pebbleos/Pebble_25x25_Facetime_incoming.svg
|
||||
gmail: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKqqqqqqqiqqqqqqqooAqAAqAKKACoAqACigAKgqAAooKAqqAoKKCoCqAqCigqgKAqgooKqAAqoKKCioAqKCigoKgqCgooKCqqgoKKCiqqqKCigqoKCqgooKoAAKoKKCoAAAqCiqqqqqqqoqqqqqqqqAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Gmail_notification.svg
|
||||
googleChat: "AAAAAAAAAAAAAAAAAKqqqqoAACqqqqqgAAoAAAAqAAKAAAACoACgAAAAKgAoCqqqgqAKAqqqoCgCgKAAKAoAoCgACgKAKAoAAoCgCgKAAKAoAoCqqqgKAKAqqqoCgCgKgAAAoAoCgAAAKAKAoAAACgCqqAqqqoAqqgqqqqAAAoqAAAAAAKqAAAAAACqAAAAAAAAAAAAAAAAAAAAAAA==", // brand-logos/Google_Chat_25px.svg
|
||||
googleMaps: "AAAAAKqgAAAAAKqqAKqqqqgCoKqqqqgAKqgAACgAAqgKoAoAAKoKqAKAACqKgACgAAqigqgqAAqooKoCoAqKKgqAKgqCgqqAKoKgoCqAKmWoKAAAKgqqCgAAKgKqgoAAKgBpoKAAKqAKKCgAKioCigoAKgKgAoKAKgAqAKCgKgACoCgoKgAAKgoKqgAAAqqAqqqqqqqACqqqqqqAAA==", // pebbleos/Pebble_25x25_Google_Maps.svg
|
||||
googlePhotos: "AAAAoAAAAAAAKgAAAAAACqAAAAAAAqoAAAAAAKKgAAAAqqgqAAAAqqoCoAAAqAKAKAAAqACgCgAAqACqAoAAqACqoKAAqqqoKqqqKqqqCqqqgAKCqoAKgACgKoAKgAAoAoAKgAAKAKAKgAACoCqqgAAAKgqqgAAAAqKAAAAAACqgAAAAAAKoAAAAAAAqAAAAAAACgAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Google_Photos.svg
|
||||
googleTasks: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAqqqAqAAAqqqoqAAAqAAKqAAAqAAAqAAAqAAAqoAAKAAAqKAACgAAqCgAAooAqAoAAKKgqAKAACgqqACgAAoCqAAoAAKAKAAKAACoAAAKgAAKgAAKgAAAqAAKgAAACqqqgAAAAKqqgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // brand-logos/Google_Tasks_25px.svg
|
||||
homeAssistant: "AAAAAAAAAAAAKAAAAAAAKoAAAAAAKqgAAAAAKgqAAAAAKgCoAAAAKgAKgAAAKgAAqAAAKgqqCoAAKgKqgKgAKgCgoAqAKgAoKACoKgAKqgAKigACqoAAooAACgqqKKAAAoKqiiiqoKCgoooqqCgoKKKKCgoKqiiigoKKqoooqqCqgAKKKqoqgACigAKqgAAoqqqqqqqqKqqqqqqqgA==", // brand-logos/Home_Assistant_25px.svg
|
||||
instagram: "AAAAAAAAAAAAAAAAAKqqqqqqgCqqqqqqoAoAAAAAKAKAAAAqqgCgAAAKqoAoAKqoAKAKAKqqgCgCgKgAqAoAqqgACqqAKqgAAKqgCgoAACgoAoKAAAoKAKCgAAKCgCgoAACgoAoKgACoKAKAqACoCgCgCqqoAoAoAKqoAKAKAAAAACgCqqqqqqoAqqqqqqqAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Instagram.svg
|
||||
iosPhotos: "AAAKqAAAAAAKqoAAAAqqgKqoAAqqgAqqgAqBoAKQqAKAKACgCgCgBkBkAoApAKAoAaAKpBkZBqgKqpaKWqqKgGqqqkCqgAGqqQAKoAAKqAACqAAaqpAAqoBqqqpAqKqpaKWqqAqkGRkGqAKQCgKAGgCgBkBkAoAoAoAKAKAKgaACkKgAqqgAqqgACqqAqqgAAACqqAAAAAAKqAAAAA==", // pebbleos/Pebble_25x25_iOS_Photos.svg
|
||||
kakaoTalk: "AAAAAAAAAAAAAAAAAAKqqqqAAAKqqqqoAAKgAAAKgAKgAAAAqAKgAAAACoCgCqqqAKAoAqqqgCgKAACgAAoCgAAoAAKAoAAKAACgKAACgAAoCgAAoAAKAoAAKAACgKAACgAAoCoAAAAAqAKgAAAAqAAqAAAAqAACgKqqqAAAoaqqqAAAKaQAAAAACqQAAAAAAqQAAAAAAKAAAAAAAA==", // pebbleos/Pebble_25x25_KakaoTalk.svg
|
||||
kik: "AoAAAAAAAqgAAAAAAqqAAAAAAKCgAAAAACgoAAAAAAoKAKqAAAKCgKqgAACgoKgoAAAoKKgKAAAKCqgKgCgCgqgKgGqQoKgKgKlqKCgKgCgCigAKgAoAooAKgAKAKKACoACpaigAKgAGqQoKAqAAKAKCoCoAAACgqgKgAAAoKqAqAAAKCioCgAACqoKgoAAAKoAqqAAAAoACqgAAAA==", // pebbleos/Pebble_25x25_Kik.svg
|
||||
line: "AKqqqqqAAKqqqqqoAKgAAAAKgKgAAAAAqKgAAAAACqgAAAAAAKoKAoqoqiqCgKKqKoqgoCiiigKoKAoooqiqCgKKKKoqgoCiiigKoKooooqiqCqKKKKoqoAAAAAAKKgAAAAAKgqAAAAAKgCoAAAAKgAKqqqAKgAAqqqgKgAAAAAZKgAAAAAGagAAAAABqgAAAAAAKgAAAAAACgAAAA==", // pebbleos/Pebble_25x25_Line.svg
|
||||
linkedIn: "AAAAAAAAAAAAAAAAAKqqqqqqgCqqqqqqoAoAAAAAKAKAAAAACgCgKAAAAoAoCgAAAKAKAAAAACgCgKAAAAoAoCgqqAKAKAoKqoCgCgKCgKAoAoCgoCgKAKAoKAoCgCgKCgKAoAoCgoCgKAKAoKAoCgCgAAAAAoAoAAAAAKAKAAAAACgCqqqqqqoAqqqqqqqAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_LinkedIn.svg
|
||||
messenger: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAABqAACgAACqAABqQAGqQAApqAKqgAAZCpamkAAaAGqRoAAKQAKAoAAGgAAApAACgKAAaAACkapAKQABpqWoGQAAqqAKmgAAapAAakAAKoAAAoAAKkAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Facebook_messenger_notification.svg
|
||||
omniFocus: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKgAAAAAAKqAAAAAAKioAAAAAKgKAAAAAKgKgAAAAKgKgACoAKgKgACqgKgKgACoqKgKgAAoCqgKgAAKgKgKgAAAqAQKgAAACoAKgAAAAKgKgAAAAAqKgAAAAACqgAAAAAAKgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // brand-logos/OmniFocus_25px.svg
|
||||
outlook: "AAAAAAAAAAAAFAAAAAAAapAAAAABqqpAAAAGqQapAAAapAAapABqkAAAapCqQAAAAaopAAAAAAaKAAAAAACikAAAAABqqqqoAAGqqqqqAAaqqAACgBqkqiqooGqQKoqqKqpACqKCiqkAAqigopqkAKoqqKBqgCqKqigBoAqgAAoAKAKqqqqAKgKqqqqgKgKgCqqqqqqgAKqqqqqgAA==", // brand-logos/Outlook_25px.svg
|
||||
reddit: "AAAAAAAAAAAAAAAAAAAAAAqgAAAAAAqqAAAAAAKCgAAAAACgoAAAAAKqqAAAAACmqAAAAABkAAAAAAAoAAAAqkaqpGqAqqqqqqqoqBpAAGkKqAAAAAAAqgAKACgAKqECgAoBKiqQoAKBqgKgAAAAKgAoAqqgCgAKQKqoBoACqQqoGqAAGqQAapAAAGqqqkAAAAGqqQAAAAAAAAAAAA==", // brand-logos/Reddit_25px.svg
|
||||
signal: "AAqqCqgAAAqqgqqAAAKAAACoAAACqqoKAAoCqqqgAAqCoAAqAoqCoAACoKqCoAAAKgqioAAAAqKooAAAACigKAAAAAooCgAAAAKKooAAAACgKKAAAAAoCigAAAAKKooAAAACiqKAAAACoqigAAACoKBkAAACoKgoAAACoKgKBqqqoCgGqqqqoAACqkAAAKAApAqoKqgAAAKqCqgAAA==", // brand-logos/Signal_25px.svg
|
||||
simplex: "AAAAAAAAAAAoAoAAAAAqgqgAAAAqqqqAAAAqCqCoAAAKgKAqAAAoqAAqKAAqipQqKoAqqqpKqqgqCqGQqgqKgKAoCgKgqAAqgAKgCoAqqAKgAqAKqgCoAqAAqgAKgqAoCgKAqKgqhkKoKgqqqpKqqgCqKlCoqgAKKgAKigAAKgKAqAAACoKoKgAAAKqqqgAAAAqgqgAAAACgCgAAAA==", // brand-logos/SimpleX_25px.svg
|
||||
slack: "AAAAGgAAAAAAqoAAAAAAKWWgAAGgBkqoAAqoAaKWQAKWWqgBoABkqpAKqAAaKQGikACqgBqoZAApAKqWSgAGWikAooAAqoZAKGWgKWSgBkqoAAooAaKWQAKGWqgBoABkqpAKqAAaKQGikACqgBqoZAApAKqWWgAGWikAqoAAqoZAKQAAKWWgAAAAAAqoAAAAAAKQAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Slack.svg
|
||||
snapchat: "AACqqgAAAACqqqAAAACoACoAAACoAAKgAAAoKCgoAAAKCgoKAAKqgoKCqoCqoKCgqqAoACgoACgKQAAAABoCqQAAAGqAGqAAAKpAAGgAACkAAAoAAAoAAAqAAAKgAAqAAAAqAAqAAAACoAqAAAAAKgqAAAAAAqKAAAAAACikAAAAABoqlAAAAWqAapAABqkAAWqqqpQAAAGqqkAAAA==", // pebbleos/Pebble_25x25_Snapchat.svg
|
||||
steam: "AAAAAAAAAAAAAAAAAAAAACqqAAAAACqqoAAAACoAKgAAACoqoqAAAAoqqigAAAKKAooAAACigKKAAAAooCigAAAaKqooAAAKAqoqAAKqQAAqKQKqgCqqCqqgAGqqABqpAKkAAAAqqCgAAAAKGgoAAAACgAKAAAAAqAKgAAAACqqgAAAAAKqgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // brand-logos/Steam_25px.svg
|
||||
substack: "AAAAAAAAAAAAAAAAACqqqqqqAAqqqqqqgAKAAAAAoACgAAAAKAAoAAAACgAKqqqqqoACqqqqqqAAoAAAACgAKAAAAAoACqqqqqqAAqqqqqqgAKAAAAAoACgAAAAKAAoAAAACgAKAAAAAoACgAAAAKAAoAGpACgAKAaqpAoAChqkapKAAqqQAaqgAKpAAAaoACkAAAAaAAAAAAAAAAA==", // brand-logos/Substack_25px.svg
|
||||
swarm: "AAAAAKQAAAAAAKqAACkAAKmgACqpACgoACpaqAoKACoAGkKGgApAAaCmkAGgACkqoAApAAaKkAAGqqqgAAAAqqpABqkAAAAAaqqkAAACqqBqgAABpCgBoAAAqQoAKAAAakKACgAAKpBkAoAAGmgKAKAACkoCoCgABoKQKioAApApAqoAAKpGgGoAAAaqqqoAAAAaqqQAAAAAAAAAAA==", // brand-logos/Swarm_25px.svg
|
||||
tapo: "AAABkAAAAAACqgAAAAACoqAAAAACoCoAAAACoCqgAAACoCoqAAACoAoCoAACoAKAKgACoACgAqACoAAoACoCoAAqAAKhoAAqoAApoAAqKgACqAAqAqAAqgAqACoAKoAKAAKACqACgACgAqgAoAAoAKoAKAAKACqACgACgAqgAoAAoAKoAKAAKACqACgACgAqqqoAAqqqqqqAAKqqgA==", // brand-logos/Tapo_25px.svg
|
||||
teams: "AAKoAAAAAAKqgAAAAAKgqAAAAACgCgAAAAAoAoAqgAAKgqAqqAAAqqAKCgAACqACgoACqqqgqqACqqqqCqACoAACqqoCqqqoKqqgqqqqCgAqKAACgoACiiqooKAAooqqKCgAKKAoCgoACigKAoKAAooCgKCgAKKAoCgoACigAAoKAAoqqqqCoAKKqqqgKgKgCqqqqqqgAKqqqqqgAA==", // brand-logos/Teams_25px.svg
|
||||
telegram: "AAAAAAAAAAAAAAAAAAAAAAAAaAAAAAABqgAAAAAWqkAAAABqkpAAAAGqQKAAAAapAGQAAGqQABkAAapAAAoABqkAGgKAWpQBaoGQqkAGqoCgKqRappAoAGqqUaAZAABpAKAGQAAGQKQCgAABkGqRoAAAKCmqpAAACikGqAAAAaoAGgAAAGoAAAAAAApAAAAAAAKAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Telegram_app.svg
|
||||
threads: "AAKqqqgAAAKqqqqAAAKgAACoAAKgAAAKgAKgKqqAqAKgKqqoCoKgKgAKgqCgCoAAoqAoAKqoKqAKAKqqCqACgKgAACoAoKgAAAKgKCgqqAAoCgoKqgoKAoKCgoKCgKCgqqCgoCgoKqgoKAoKgAAqCgKAqAAqAoCoCqqqAqAKgKqqAqAAqAAAAqAACoAAAqAAAKqqqqAAAAqqqqAAAA==", // brand-logos/Threads_25px.svg
|
||||
tiktok: "AAAAAAAAAAAAKqgAAAAACqpAAAAAAoGgAAAAAKAqAAAAACgCpQAAAAoAKoAAAAKAAKAACqigoCgACqooKkoACoKKCqqACoCigpqgCoGooKAAAoGqKCgAAKCkCgoAACgoAoKAAAoKAKCgAAKCkGgoAACgaqkKAAAqBqkKgAACoAAKgAAAKgAKgAAAAqqqgAAAACqqgAAAAAAAAAAAAA==", // brand-logos/TikTok_25px.svg
|
||||
twitch: "AAqqqqqqAAqqqqqqgAqgAAAAoAqoAAAAKAqKAAAACgKCgCgKAoCgoAoCgKAoKAKAoCgKCgCgKAoCgoAoCgKAoKAKAoCgKCgAAAAoCgoAAAAqAoKAAAAqAKCgAAAqACgqqqqqAAoKqqqqAAKAAqAqAACgAKAqAAAqqgqqAAAKqoqqAAAAAKqAAAAAACqAAAAAAAqAAAAAAAKAAAAAAA==", // brand-logos/Twitch_25px.svg
|
||||
twitter: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWgAKQAACqqFqqkAApSqqKqpAZAKaRpaqWQAGgKQGqgACkApABoAAoAGgAAAAKAAaAAAACgACkAAAAoAAaAAAAKAABoAAAGgABqAAAGgACpAAAGkAGoAAACkAKoAAAWkACqpQWqoAABaqqpQAAAAFpQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_Twitter_notification.svg
|
||||
unifiProtect: "AAAAAAAAAAAaqkAAAAAqqqgAAAAqQBqAAAAaCqCkAAAKSqoaAAACgoKCgAAAoKCgoAAAKCqoKAAACgKoCgAAAoAAAoAAAKAAAKAAACgCgCgAAAoAoAoAAAKAKAKAAACgAACgAAAoAAAoAAAKAAAKAAACgAACgAAAoAAAoAAAKAAAKAAACoAAKgAAAKqqqgAAAAqqqgAAAAAAAAAAAA==", // brand-logos/Unifi_Protect_25px.svg
|
||||
viber: "AAAAAAAAAAACqqgAAAAAqqqAAAAAAACoAAKAAAAKgAKoAKqAqAKqgCqoCoKgqAAKgKigCoAAqAooAKgoCoKKACoKgKCigCoAqCgooCoACgoKKAqAAAKCigCoAAAAoqAKgCgAACoAqCqAAAKgCqqoAAAqAKoKgAACoAoAqAAAKgAACoAAAqAAAqAAACoAAqAAAAKqqqAAAAAqqqAAAA==", // pebbleos/Pebble_25x25_Viber.svg
|
||||
waze: "AAAAAAAAAAACqqoAAAACqqqgAAACoAAqAAACoAACoAACoAAAKgACoAFBQqAAoACgoCgAKAAoKAoACgAKCgKAAoABQUCgAKAAAAAoqqgCgCgKKqoAqqoCgqAACqoAoCoAAAAAqAKgAAAAqAAqqgAAqAACqqAAqAAAoCqqqAAAKAqqqgAACgKKAoAAAqqiqqAAACqgKqAAAAAAAAAAAA==", // brand-logos/Waze_25px.svg
|
||||
weChat: "AAAAAAAAACqqqAAAACqqqoAAACoAAKgAACoAAAqAACoAAACoAAoKoKoKAAKCqCqCgACgAAAAoAAoAAAKqqgKAAAKqqqCgAAKgACoqAAKgAAKioACgAAAoKAAoqiqKCqqqKoqigqqqgAAAoKgAoAAAKCgAKgAAKgAAAqAACgAAACqqqoAAAAKqqqAAAAAAAKgAAAAAAAoAAAAAAAAAA==", // pebbleos/Pebble_25x25_WeChat.svg
|
||||
whatsApp: "AAAAAAAAAAAAAAAAAAAKqqoAAAAKqqqgAAAKgAAqAAAKgAACoAAKigAAKgAKiqAAAqAKiqoAACoCgoKgAAKAoKCoAACgKCioAAAoCgoqAAAKAoKCoKACgKCoKqoAoCgKgqqgKAoAqCgqCgKgCoAKioBoAKqqioAZAAqqioAKAAAACoAGlqAACoACqqqqqoAAqVKqqoAAAAAAAAAAAA==", // pebbleos/Pebble_25x25_WhatsApp_notification.svg
|
||||
whatsAppBusiness: "AAAAAKqgAAAAACqoAAAqqqoKAAAqqqqCqgAqACqgqoAqAAoAAKAqKAKAACgqKoCqgqoqKqgqoKqKCgqAKCoCgoKgCqqAoKKgAqqgKCioAAAoCgoKgoAKAoKgqqgCgKAqCqqAoCgCoKCoKAqAKgAqKgGgAqqqKgBkACqqKgAoAAAAKgAaWoAAKgAKqqqqqgACpUqqqgAAAAAAAAAAAA==", // brand-logos/WhatsApp_Business_25px.svg
|
||||
yahooMail: "CqqqqqqgAqqqqqqoAKAAAAAKACgqoAACgAoKqKqAoAKAKiqgKACgAqqACgAoACqAAoAKAAKAAKACgAqqACgAoAKqgAoCqAAAAAKoqgACgACqKoACqAAqiqgCqoAqooqCoKgqKKCqoAqqCigKoACqAooCoAAKgKKCoAAAqCiioAAACooqoAAAAKqKqqqqqqqiqqqqqqqoAAAAAAAAAA==", // pebbleos/Pebble_25x25_Yahoo_mail.svg
|
||||
youtube: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKqqqqqoAKqqqqqqgKgAAAAAqCgAAAAACgoACkAAAoKAAqkAAKCgAKqkACgoAChqgAoKAAoBoAKCgAKGqACgoACqpAAoKAAqkAAKCgAKQAACgoAAAAAAoKgAAAAAqAqqqqqqqACqqqqqqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // brand-logos/Youtube_25px.svg
|
||||
zoom: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKqqqqoABqqqqqqgGqoAAAAqaqqAAAACqkqgAAAAKQKoAAAAAACqAAAAAAAqgAAAAAAKoAAAAAACqAAAAAAAqgAAAAAAKoAAAAAACqgAAAApAoqAAAAKpKCoAAACqqgKqqqqoaoAqqqqqAaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", // brand-logos/Zoom_25px.svg
|
||||
} as const;
|
||||
|
||||
export type PebbleIconName = keyof typeof PEBBLE_ICON_DATA;
|
||||
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -0,0 +1,28 @@
|
||||
import { GrayImage } from "./image";
|
||||
import { decodeBase64 } from "../util/base64";
|
||||
import { PEBBLE_ICON_DATA, PEBBLE_ICON_SIZE, type PebbleIconName } from "./pebble-icons-data";
|
||||
|
||||
export { PEBBLE_ICON_SIZE, type PebbleIconName };
|
||||
|
||||
// 2-bit codes in pebble-icons-data.ts -> coverage.
|
||||
const LEVELS = [0, 128, 255, 255];
|
||||
|
||||
const cache = new Map<PebbleIconName, GrayImage>();
|
||||
|
||||
/**
|
||||
* One of the bundled Pebble notification icons (see pebble-icons-data.ts and
|
||||
* scripts/generate-pebble-icons.cjs), as a PEBBLE_ICON_SIZE square coverage
|
||||
* bitmap. Decoded once and shared: clone it before drawing on it.
|
||||
*/
|
||||
export function pebbleIcon(name: PebbleIconName): GrayImage {
|
||||
let icon = cache.get(name);
|
||||
if (!icon) {
|
||||
const bytes = decodeBase64(PEBBLE_ICON_DATA[name]);
|
||||
icon = new GrayImage(PEBBLE_ICON_SIZE, PEBBLE_ICON_SIZE, 0);
|
||||
for (let i = 0; i < icon.pixels.length; i++) {
|
||||
icon.pixels[i] = LEVELS[(bytes[i >> 2]! >> (6 - 2 * (i & 3))) & 3]!;
|
||||
}
|
||||
cache.set(name, icon);
|
||||
}
|
||||
return icon;
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
import type { PebbleIconName } from "../graphics/pebble-icons";
|
||||
|
||||
/**
|
||||
* Icons for notification sources that arrive without one: iPhone
|
||||
* notifications over ANCS carry the app's bundle ID, its display name
|
||||
* (fetched separately) and an ANCS category, but no icon. The icons are
|
||||
* Pebble's (see scripts/generate-pebble-icons.cjs).
|
||||
*
|
||||
* The bundle IDs start from the Pebble firmware's own ANCS table (PebbleOS
|
||||
* include/pbl/services/notifications/ancs/ancs_known_apps.h, minus retired
|
||||
* apps), plus Apple's built-in apps and popular apps mapped to a generic
|
||||
* pictogram. Every App Store bundle ID here was checked against Apple's
|
||||
* iTunes lookup when it was added; Apple's built-in apps follow
|
||||
* github.com/joeblau/apple-bundle-identifiers.
|
||||
*
|
||||
* Display names are a fallback for apps whose bundle ID varies per build:
|
||||
* self-built apps such as Loop sign with their builder's team ID. They match
|
||||
* the whole name, ignoring case, so generic words (an app called "United"
|
||||
* or "Voice") are left out. Bundle prefixes catch regional variants
|
||||
* (com.abbott.librelink.us, .gb, ...).
|
||||
*
|
||||
* Apple's Phone app is deliberately absent: its notifications are calls,
|
||||
* missed calls and voicemail, which the ANCS category tells apart.
|
||||
*/
|
||||
type AppIcon = {
|
||||
icon: PebbleIconName;
|
||||
bundleIds: readonly string[];
|
||||
bundlePrefixes?: readonly string[];
|
||||
names?: readonly string[];
|
||||
};
|
||||
|
||||
const APP_ICONS: readonly AppIcon[] = [
|
||||
// Apple's built-in apps.
|
||||
{ icon: "sms", bundleIds: ["com.apple.MobileSMS"] },
|
||||
{ icon: "email", bundleIds: ["com.apple.mobilemail"] },
|
||||
{ icon: "calendar", bundleIds: ["com.apple.mobilecal"] },
|
||||
{ icon: "reminder", bundleIds: ["com.apple.reminders"] },
|
||||
{ icon: "facetime", bundleIds: ["com.apple.facetime"] },
|
||||
{ icon: "iosPhotos", bundleIds: ["com.apple.mobileslideshow"] },
|
||||
{ icon: "alarmClock", bundleIds: ["com.apple.mobiletimer"] },
|
||||
{ icon: "weather", bundleIds: ["com.apple.weather"] },
|
||||
{ icon: "location", bundleIds: ["com.apple.findmy", "com.apple.Maps"] },
|
||||
{ icon: "settings", bundleIds: ["com.apple.Preferences"] },
|
||||
{ icon: "heart", bundleIds: ["com.apple.Health"] },
|
||||
{ icon: "activity", bundleIds: ["com.apple.Fitness"] },
|
||||
{ icon: "news", bundleIds: ["com.apple.news"] },
|
||||
{ icon: "podcast", bundleIds: ["com.apple.podcasts"] },
|
||||
{ icon: "music", bundleIds: ["com.apple.Music"] },
|
||||
{ icon: "tv", bundleIds: ["com.apple.tv"] },
|
||||
{ icon: "payBill", bundleIds: ["com.apple.Passbook"] },
|
||||
{ icon: "stocks", bundleIds: ["com.apple.stocks"] },
|
||||
{ icon: "appStore", bundleIds: ["com.apple.AppStore"] },
|
||||
{ icon: "appleShortcuts", bundleIds: ["com.apple.shortcuts"] },
|
||||
{ icon: "microphone", bundleIds: ["com.apple.VoiceMemos"] },
|
||||
{ icon: "contacts", bundleIds: ["com.apple.MobileAddressBook"] },
|
||||
{ icon: "shopping", bundleIds: ["com.apple.store.Jolly"] },
|
||||
|
||||
// Apps with an icon of their own.
|
||||
{ icon: "airmail", bundleIds: ["com.airmailapp.iphone"], names: ["Airmail"] },
|
||||
{ icon: "amazon", bundleIds: ["com.amazon.Amazon"], names: ["Amazon"] },
|
||||
{ icon: "bbcNews", bundleIds: ["uk.co.bbc.news"], names: ["BBC News"] },
|
||||
{ icon: "beeper", bundleIds: ["com.automattic.beeper"], names: ["Beeper"] },
|
||||
{ icon: "bluesky", bundleIds: ["xyz.blueskyweb.app"], names: ["Bluesky"] },
|
||||
{ icon: "discord", bundleIds: ["com.hammerandchisel.discord"], names: ["Discord"] },
|
||||
{ icon: "duolingo", bundleIds: ["com.duolingo.DuolingoMobile"], names: ["Duolingo"] },
|
||||
{ icon: "ebay", bundleIds: ["com.ebay.iphone"], names: ["eBay"] },
|
||||
{ icon: "element", bundleIds: ["im.vector.app", "io.element.elementx"], names: ["Element", "Element X", "Element Classic"] },
|
||||
{ icon: "facebook", bundleIds: ["com.facebook.Facebook"], names: ["Facebook"] },
|
||||
{ icon: "gmail", bundleIds: ["com.google.Gmail"], names: ["Gmail"] },
|
||||
{ icon: "googleChat", bundleIds: ["com.google.Dynamite"], names: ["Google Chat"] },
|
||||
{ icon: "googleMaps", bundleIds: ["com.google.Maps"], names: ["Google Maps"] },
|
||||
{ icon: "googlePhotos", bundleIds: ["com.google.photos"], names: ["Google Photos"] },
|
||||
{ icon: "googleTasks", bundleIds: ["com.google.tasks"], names: ["Google Tasks"] },
|
||||
{ icon: "homeAssistant", bundleIds: ["io.robbie.HomeAssistant"], names: ["Home Assistant"] },
|
||||
{ icon: "instagram", bundleIds: ["com.burbn.instagram"], names: ["Instagram"] },
|
||||
{ icon: "kakaoTalk", bundleIds: ["com.iwilab.KakaoTalk"], names: ["KakaoTalk"] },
|
||||
{ icon: "kik", bundleIds: ["com.kik.chat"], names: ["Kik"] },
|
||||
{ icon: "line", bundleIds: ["jp.naver.line"], names: ["LINE"] },
|
||||
{ icon: "linkedIn", bundleIds: ["com.linkedin.LinkedIn"], names: ["LinkedIn"] },
|
||||
{ icon: "messenger", bundleIds: ["com.facebook.Messenger"], names: ["Messenger"] },
|
||||
{ icon: "omniFocus", bundleIds: ["com.omnigroup.OmniFocus4", "com.omnigroup.OmniFocus3.iOS"], names: ["OmniFocus"] },
|
||||
{ icon: "outlook", bundleIds: ["com.microsoft.Office.Outlook"], names: ["Outlook"] },
|
||||
{ icon: "reddit", bundleIds: ["com.reddit.Reddit"], names: ["Reddit"] },
|
||||
{ icon: "signal", bundleIds: ["org.whispersystems.signal"], names: ["Signal"] },
|
||||
{ icon: "simplex", bundleIds: ["chat.simplex.app"], names: ["SimpleX"] },
|
||||
{ icon: "slack", bundleIds: ["com.tinyspeck.chatlyio"], names: ["Slack"] },
|
||||
{ icon: "snapchat", bundleIds: ["com.toyopagroup.picaboo"], names: ["Snapchat"] },
|
||||
{ icon: "steam", bundleIds: ["com.valvesoftware.Steam"], names: ["Steam"] },
|
||||
{ icon: "substack", bundleIds: ["com.substack.Substack"], names: ["Substack"] },
|
||||
{ icon: "swarm", bundleIds: ["com.foursquare.robin"], names: ["Swarm"] },
|
||||
{ icon: "tapo", bundleIds: ["com.tplink.tapo"], names: ["Tapo"] },
|
||||
{ icon: "teams", bundleIds: ["com.microsoft.skype.teams"], names: ["Teams", "Microsoft Teams"] },
|
||||
{ icon: "telegram", bundleIds: ["ph.telegra.Telegraph"], names: ["Telegram"] },
|
||||
{ icon: "threads", bundleIds: ["com.burbn.barcelona"], names: ["Threads"] },
|
||||
{ icon: "tiktok", bundleIds: ["com.zhiliaoapp.musically"], names: ["TikTok"] },
|
||||
{ icon: "twitch", bundleIds: ["tv.twitch"], names: ["Twitch"] },
|
||||
// X, still under Twitter's bundle ID and drawn with its bird, as on Pebble.
|
||||
{ icon: "twitter", bundleIds: ["com.atebits.Tweetie2"], names: ["X", "Twitter"] },
|
||||
{ icon: "unifiProtect", bundleIds: ["com.ubnt.protect"], names: ["UniFi Protect"] },
|
||||
{ icon: "viber", bundleIds: ["com.viber"], names: ["Viber"] },
|
||||
{ icon: "waze", bundleIds: ["com.waze.iphone"], names: ["Waze"] },
|
||||
{ icon: "weChat", bundleIds: ["com.tencent.xin"], names: ["WeChat"] },
|
||||
{ icon: "whatsApp", bundleIds: ["net.whatsapp.WhatsApp"], names: ["WhatsApp"] },
|
||||
{ icon: "whatsAppBusiness", bundleIds: ["net.whatsapp.WhatsAppSMB"], names: ["WA Business", "WhatsApp Business"] },
|
||||
{ icon: "yahooMail", bundleIds: ["com.yahoo.Aerogram"], names: ["Yahoo Mail"] },
|
||||
{ icon: "youtube", bundleIds: ["com.google.ios.youtube"], names: ["YouTube"] },
|
||||
{ icon: "zoom", bundleIds: ["us.zoom.videomeetings"], names: ["Zoom"] },
|
||||
|
||||
// Apps drawn with a generic pictogram.
|
||||
{ icon: "calendar", bundleIds: ["com.google.calendar", "com.flexibits.fantastical2.iphone"], names: ["Google Calendar", "Fantastical"] },
|
||||
{ icon: "email", bundleIds: ["com.readdle.smartemail", "ch.protonmail.protonmail"], names: ["Proton Mail"] },
|
||||
{ icon: "sms", bundleIds: ["com.google.GVDialer", "ch.threema.iapp", "com.groupme.iphone-app"], names: ["Threema", "GroupMe"] },
|
||||
{ icon: "reminder", bundleIds: ["com.todoist.ios", "com.culturedcode.ThingsiPhone", "com.microsoft.to-do"], names: ["Todoist"] },
|
||||
{ icon: "car", bundleIds: ["com.ubercab.UberClient", "com.zimride.instant"], names: ["Uber", "Lyft"] },
|
||||
{ icon: "dinner", bundleIds: ["com.ubercab.UberEats", "doordash.DoorDashConsumer", "com.grubhub.search"], names: ["Uber Eats", "DoorDash", "Grubhub"] },
|
||||
{
|
||||
icon: "glucose",
|
||||
bundleIds: [
|
||||
"com.dexcom.G6", "com.dexcom.g7app", "com.dexcom.dexcomone", "com.dexcom.stelo", "com.dexcom.followglobal",
|
||||
"org.nativescript.LibreLinkUp",
|
||||
],
|
||||
bundlePrefixes: ["com.abbott.librelink.", "com.abbott.libre3."],
|
||||
names: ["Dexcom G6", "Dexcom G7", "Dexcom ONE", "LibreLink", "LibreLinkUp", "Loop", "Trio", "LoopFollow", "xDrip4iOS"],
|
||||
},
|
||||
{ icon: "music", bundleIds: ["com.spotify.client", "com.google.ios.youtubemusic", "com.pandora"], names: ["Spotify", "YouTube Music", "Pandora"] },
|
||||
{ icon: "podcast", bundleIds: ["fm.overcast.overcast", "au.com.shiftyjelly.podcasts"], names: ["Overcast", "Pocket Casts"] },
|
||||
{
|
||||
icon: "tv",
|
||||
bundleIds: ["com.netflix.Netflix", "com.hulu.plus", "com.disney.disneyplus", "com.amazon.aiv.AIVApp"],
|
||||
names: ["Netflix", "Hulu", "Disney+", "Prime Video"],
|
||||
},
|
||||
{
|
||||
icon: "payBill",
|
||||
bundleIds: [
|
||||
"net.kortina.labs.Venmo", "com.squareup.cash", "com.yourcompany.PPClient", "com.chase", "com.bankofamerica.BofA",
|
||||
"com.wf.mobilebanking", "com.capitalone.enterprisemobilebanking",
|
||||
"com.revolut.revolut", "com.transferwise.Transferwise", "de.no26.Number26", "com.bunq.ios",
|
||||
],
|
||||
names: ["Venmo", "Cash App", "PayPal", "Revolut", "N26", "bunq"],
|
||||
},
|
||||
{ icon: "stocks", bundleIds: ["com.robinhood.release.Robinhood", "com.vilcsak.bitcoin2"], names: ["Robinhood", "Coinbase"] },
|
||||
{
|
||||
icon: "flight",
|
||||
bundleIds: [
|
||||
"com.united.UnitedCustomerFacingIPhone", "com.delta.iphone.ver1", "com.aa.AmericanAirlines",
|
||||
"com.southwest.iphoneprod", "com.flightyapp.flighty",
|
||||
],
|
||||
names: ["Fly Delta", "Flighty"],
|
||||
},
|
||||
{ icon: "weather", bundleIds: ["com.weather.TWC", "com.grailr.CARROTweather"] },
|
||||
{ icon: "activity", bundleIds: ["com.strava.stravaride", "com.nike.nikeplus-gps", "com.fitbit.FitbitMobile"], names: ["Strava", "Fitbit"] },
|
||||
{ icon: "heart", bundleIds: ["com.ouraring.oura"], names: ["Oura"] },
|
||||
{ icon: "news", bundleIds: ["com.nytimes.NYTimes", "com.google.GoogleDigitalEditions"], names: ["Google News"] },
|
||||
];
|
||||
|
||||
/**
|
||||
* Icons for the ANCS categories (CategoryID: Other, IncomingCall,
|
||||
* MissedCall, Voicemail, Social, Schedule, Email, News, HealthAndFitness,
|
||||
* BusinessAndFinance, Location, Entertainment), for apps not listed above.
|
||||
*/
|
||||
const CATEGORY_ICONS: readonly PebbleIconName[] = [
|
||||
"generic", "incomingCall", "missedCall", "voicemail", "sms", "calendar",
|
||||
"email", "news", "heart", "stocks", "location", "tv",
|
||||
];
|
||||
|
||||
type Index = { bundleIds: Map<string, PebbleIconName>; prefixes: [string, PebbleIconName][]; names: Map<string, PebbleIconName> };
|
||||
let index: Index | null = null;
|
||||
|
||||
function buildIndex(): Index {
|
||||
const built: Index = { bundleIds: new Map(), prefixes: [], names: new Map() };
|
||||
for (const app of APP_ICONS) {
|
||||
for (const id of app.bundleIds) built.bundleIds.set(id.toLowerCase(), app.icon);
|
||||
for (const prefix of app.bundlePrefixes ?? []) built.prefixes.push([prefix.toLowerCase(), app.icon]);
|
||||
for (const name of app.names ?? []) built.names.set(name.toLowerCase(), app.icon);
|
||||
}
|
||||
return built;
|
||||
}
|
||||
|
||||
/**
|
||||
* The icon for a notification's source app, by bundle ID (ignoring case;
|
||||
* Apple treats bundle IDs case-insensitively), else by its display name;
|
||||
* null when the app isn't known.
|
||||
*/
|
||||
export function notificationAppIcon(bundleId: string, appName: string): PebbleIconName | null {
|
||||
index ??= buildIndex();
|
||||
const id = bundleId.trim().toLowerCase();
|
||||
if (id) {
|
||||
const byId = index.bundleIds.get(id) ?? index.prefixes.find(([prefix]) => id.startsWith(prefix))?.[1];
|
||||
if (byId) return byId;
|
||||
}
|
||||
const name = appName.trim().toLowerCase();
|
||||
return (name && index.names.get(name)) || null;
|
||||
}
|
||||
|
||||
/** The icon for an ANCS category (a CategoryID as a string); the bell for anything unknown. */
|
||||
export function notificationCategoryIcon(category: string): PebbleIconName {
|
||||
return CATEGORY_ICONS[Number(category)] ?? "generic";
|
||||
}
|
||||
|
||||
/** Every icon the table refers to, for tests. */
|
||||
export function allNotificationAppIcons(): PebbleIconName[] {
|
||||
return Array.from(new Set(APP_ICONS.map((app) => app.icon).concat(CATEGORY_ICONS)));
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import { GrayImage } from '../graphics/image'
|
||||
import { renderIcon, type IconName } from '../graphics/icons'
|
||||
import type { GrayImage } from '../graphics/image'
|
||||
import { pebbleIcon } from '../graphics/pebble-icons'
|
||||
import { AncsClient, ANCS_CONNECT_MESSAGE, type AncsState } from '../g2/ancs-client'
|
||||
import { notificationAppIcon, notificationCategoryIcon } from './notification-app-icons'
|
||||
import { rememberNotificationSources } from './notification-sources'
|
||||
import type { AndroidNotification } from './notification-types'
|
||||
export type { AndroidNotification, AndroidNotificationAction } from './notification-types'
|
||||
@@ -32,34 +33,24 @@ export function onAndroidNotificationPosted(listener: (key: string) => void): ()
|
||||
// (they hear every change), and an open popup closes on the repaint that follows.
|
||||
export function onAndroidNotificationRemoved(_listener: (key: string) => void): () => void { return () => {} }
|
||||
export function onAndroidNotificationsChanged(listener: () => void): () => void { return onAndroidNotificationPosted(listener) }
|
||||
// ANCS does not provide app icons, so show one for the notification's ANCS
|
||||
// category; never fetch notification sources or content from a third-party
|
||||
// icon service. Indexed by CategoryID: Other, IncomingCall, MissedCall,
|
||||
// Voicemail, Social, Schedule, Email, News, HealthAndFitness,
|
||||
// BusinessAndFinance, Location, Entertainment.
|
||||
const CATEGORY_ICONS: readonly IconName[] = ['bell','phone-incoming','phone-missed','voicemail','message-circle',
|
||||
'calendar','mail','newspaper','heart-pulse','briefcase','map-pin','tv']
|
||||
function categoryIcon(category: string): GrayImage {
|
||||
return renderIcon(CATEGORY_ICONS[Number(category)] ?? 'bell',24)?.clone() ?? bell()
|
||||
}
|
||||
// Drawn fallback for when the SVG rasterizer fails.
|
||||
function bell(): GrayImage {
|
||||
const image = new GrayImage(24,24,0)
|
||||
image.fillRoundedRect(6,5,12,13,220,5)
|
||||
image.fillRect(4,17,16,2,220)
|
||||
image.fillRect(10,20,4,2,220)
|
||||
return image
|
||||
// ANCS does not provide app icons, so show a bundled Pebble icon for the
|
||||
// source app (by bundle ID or display name), else for the notification's
|
||||
// ANCS category. Never fetch notification sources or content from a
|
||||
// third-party icon service.
|
||||
function notificationIcon(notification: AndroidNotification): GrayImage {
|
||||
const name = notificationAppIcon(notification.packageName, notification.appName) ?? notificationCategoryIcon(notification.category)
|
||||
return pebbleIcon(name).clone()
|
||||
}
|
||||
export function readActiveNotificationIcons(maxIcons: number, _allowStale: boolean) {
|
||||
// One icon per source, standing for its first notification.
|
||||
const sources = new Map<string, AndroidNotification>()
|
||||
for (const n of readActiveNotifications(ALL_NOTIFICATIONS)) if (!sources.has(n.packageName)) sources.set(n.packageName, n)
|
||||
const shown = Array.from(sources.values()).slice(0,Math.max(0,maxIcons))
|
||||
return {icons: shown.map(n => categoryIcon(n.category)),keys: shown.map(n => n.key),stale:false}
|
||||
return {icons: shown.map(notificationIcon),keys: shown.map(n => n.key),stale:false}
|
||||
}
|
||||
export function readNotificationIconByKey(key: string, _allowStale: boolean) {
|
||||
const notification = readActiveNotifications(ALL_NOTIFICATIONS).find(n => n.key === key)
|
||||
return {icon: notification ? categoryIcon(notification.category) : null,stale:false}
|
||||
return {icon: notification ? notificationIcon(notification) : null,stale:false}
|
||||
}
|
||||
// ANCS carries no attachments, avatars or custom layouts.
|
||||
export function readNotificationPicture(_notification: AndroidNotification, _maxWidth: number, _maxHeight: number, _allowStale: boolean) {
|
||||
|
||||
@@ -3,11 +3,12 @@ import { logCurrent, spanCurrent } from "./frame-timings";
|
||||
import { toUint8Array } from "../util/array-util";
|
||||
import { rememberNotificationSources } from "./notification-sources";
|
||||
import { PHOTO_TONE, grayImageFromPacket } from "./image-files";
|
||||
import { NOTIFICATION_ICON_SIZE } from "./notification-types";
|
||||
|
||||
declare const com: any;
|
||||
declare const java: any;
|
||||
|
||||
const ICON_SIZE = 24;
|
||||
const ICON_SIZE = NOTIFICATION_ICON_SIZE;
|
||||
/** Ask the native listener for every active source, including those below the list's display limit. */
|
||||
export const ALL_NOTIFICATIONS = 0x7fffffff;
|
||||
// Backstop TTL only: the icon caches are invalidated eagerly whenever a
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
/** Shared notification model; Android names are retained for existing callers. */
|
||||
|
||||
/**
|
||||
* Side of a notification's (square) source icon wherever one is drawn: the
|
||||
* status bar, notification cards and views, the Glanceboard. 25 is the size
|
||||
* of the Pebble icons iPhone notifications use (app/graphics/pebble-icons.ts),
|
||||
* which are drawn on that pixel grid; Android's icons render at any size.
|
||||
*/
|
||||
export const NOTIFICATION_ICON_SIZE = 25;
|
||||
|
||||
export type AndroidNotificationAction = { index: number; title: string; enabled: boolean };
|
||||
export type AndroidNotification = {
|
||||
key: string; packageName: string; appName: string; title: string; text: string;
|
||||
|
||||
@@ -18,6 +18,7 @@ import {
|
||||
type NotificationImageResult,
|
||||
} from "../native/notification-icons";
|
||||
import { setNotificationSourceEnabled } from "../native/notification-sources";
|
||||
import { NOTIFICATION_ICON_SIZE } from "../native/notification-types";
|
||||
import { notificationEmptyMessage } from "../native/notification-access";
|
||||
import { noteStaleDataUsed, renderPassAllowsStaleData } from "../util/render-freshness";
|
||||
import { type InputEvent } from "./gestures";
|
||||
@@ -29,7 +30,7 @@ const TITLE_X = 18;
|
||||
const TITLE_Y = 10;
|
||||
const LIST_TOP = 38;
|
||||
const CARD_X = 20;
|
||||
const ICON_SIZE = 24;
|
||||
const ICON_SIZE = NOTIFICATION_ICON_SIZE;
|
||||
const ICON_TEXT_GAP = 8;
|
||||
const CARD_TEXT_X = 10 + ICON_SIZE + ICON_TEXT_GAP;
|
||||
const CARD_GAP = 6;
|
||||
|
||||
@@ -7,6 +7,7 @@ import { truncateText } from "../../graphics/textwrap";
|
||||
import { activeAmbientCards } from "./ambient-cards";
|
||||
import { BATTERY_ICON_WIDTH, DENSE_BATTERY_BLOCK_HEIGHT, drawBattery, drawDenseBatteries, type BatteryDevice } from "../../graphics/battery";
|
||||
import { ALL_NOTIFICATIONS, readActiveNotificationIcons } from "../../native/notification-icons";
|
||||
import { NOTIFICATION_ICON_SIZE } from "../../native/notification-types";
|
||||
import { readPhoneBatteryState } from "../../native/phone-battery";
|
||||
import { noteStaleDataUsed, renderPassAllowsStaleData } from "../../util/render-freshness";
|
||||
import { renderIcon, renderIconWithGlyph, type IconActivity, type IconName } from "../../graphics/icons";
|
||||
@@ -430,7 +431,6 @@ function statusBarPlacement(state: ShellChromeState): StatusBarPlacement | null
|
||||
return { left, right, top, contentTop: atBottom ? top + 1 : top, divider };
|
||||
}
|
||||
|
||||
const NOTIFICATION_ICON_SIZE = 24;
|
||||
const NOTIFICATION_ICON_STEP = NOTIFICATION_ICON_SIZE + 4;
|
||||
// Notification icons' top, in the top bar's layout (where any status icon's
|
||||
// selection box starts, a row above).
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
const BASE64_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
|
||||
/** Decode standard base64 (padding and whitespace ignored), without relying on atob or Buffer. */
|
||||
export function decodeBase64(text: string): Uint8Array {
|
||||
const clean = text.replace(/[^A-Za-z0-9+/]/g, "");
|
||||
const out = new Uint8Array(Math.floor((clean.length * 3) / 4));
|
||||
let bits = 0;
|
||||
let bitCount = 0;
|
||||
let outIndex = 0;
|
||||
for (let i = 0; i < clean.length; i++) {
|
||||
bits = (bits << 6) | BASE64_ALPHABET.indexOf(clean[i]!);
|
||||
bitCount += 6;
|
||||
if (bitCount >= 8) {
|
||||
bitCount -= 8;
|
||||
out[outIndex++] = (bits >> bitCount) & 0xff;
|
||||
}
|
||||
}
|
||||
return out.subarray(0, outIndex);
|
||||
}
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
export const FACECLAW_VERSION = "0.8.5";
|
||||
export const FACECLAW_VERSION = "0.8.6-pre";
|
||||
export const USER_AGENT = "Faceclaw/"+FACECLAW_VERSION;
|
||||
Reference in new issue
Block a user