diff --git a/package.json b/package.json index f655f19..c7b84fb 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,14 @@ "projectType": "native", "resources": { "media": [ + { + "file": "logo_25.png", + "memoryFormat": "Smallest", + "name": "LOGO_25", + "spaceOptimization": "storage", + "type": "bitmap", + "menuIcon": true + }, { "type": "raw", "name": "SLEEP_ICON", @@ -40,15 +48,7 @@ { "type": "raw", "name": "PIN_ICON", - "file": "pin.pdc", - "targetPlatforms": [ - "basalt", - "diorite", - "chalk", - "flint", - "emery", - "gabbro" - ] + "file": "pin.pdc" } ] }, diff --git a/resources/logo_25.png b/resources/logo_25.png new file mode 100644 index 0000000..d0f0256 Binary files /dev/null and b/resources/logo_25.png differ diff --git a/resources/logo_35.png b/resources/logo_35.png new file mode 100644 index 0000000..72a9c60 Binary files /dev/null and b/resources/logo_35.png differ diff --git a/src/c/main.c b/src/c/main.c index b06634a..bc59c10 100644 --- a/src/c/main.c +++ b/src/c/main.c @@ -3,7 +3,7 @@ #include #include -// #define DEBUG_MODE 1 +#define DEBUG_MODE 1 // declare settings-derived statics static uint8_t s_is_jellyfin; @@ -396,7 +396,19 @@ static void init() { soft_reload(true); } -static void deinit() { window_destroy(s_main_window); } +static void glance_reload_callback(AppGlanceReloadSession *session, size_t limit, void *context) { + AppGlanceSlice slice = { + .expiration_time = APP_GLANCE_SLICE_NO_EXPIRATION, + .layout.icon = APP_GLANCE_SLICE_DEFAULT_ICON, + .layout.subtitle_template_string = text_layer_get_text(s_last_watched_layer), + }; + app_glance_add_slice(session, slice); +} + +static void deinit() { + app_glance_reload(glance_reload_callback, NULL); + window_destroy(s_main_window); +} int main(void) { init();