Add app icon and app glances support (to balance out icon lol)
This commit is contained in:
18
package.json
18
package.json
@@ -32,6 +32,14 @@
|
|||||||
"projectType": "native",
|
"projectType": "native",
|
||||||
"resources": {
|
"resources": {
|
||||||
"media": [
|
"media": [
|
||||||
|
{
|
||||||
|
"file": "logo_25.png",
|
||||||
|
"memoryFormat": "Smallest",
|
||||||
|
"name": "LOGO_25",
|
||||||
|
"spaceOptimization": "storage",
|
||||||
|
"type": "bitmap",
|
||||||
|
"menuIcon": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "raw",
|
"type": "raw",
|
||||||
"name": "SLEEP_ICON",
|
"name": "SLEEP_ICON",
|
||||||
@@ -40,15 +48,7 @@
|
|||||||
{
|
{
|
||||||
"type": "raw",
|
"type": "raw",
|
||||||
"name": "PIN_ICON",
|
"name": "PIN_ICON",
|
||||||
"file": "pin.pdc",
|
"file": "pin.pdc"
|
||||||
"targetPlatforms": [
|
|
||||||
"basalt",
|
|
||||||
"diorite",
|
|
||||||
"chalk",
|
|
||||||
"flint",
|
|
||||||
"emery",
|
|
||||||
"gabbro"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
BIN
resources/logo_25.png
Normal file
BIN
resources/logo_25.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 173 B |
BIN
resources/logo_35.png
Normal file
BIN
resources/logo_35.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 199 B |
16
src/c/main.c
16
src/c/main.c
@@ -3,7 +3,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// #define DEBUG_MODE 1
|
#define DEBUG_MODE 1
|
||||||
|
|
||||||
// declare settings-derived statics
|
// declare settings-derived statics
|
||||||
static uint8_t s_is_jellyfin;
|
static uint8_t s_is_jellyfin;
|
||||||
@@ -396,7 +396,19 @@ static void init() {
|
|||||||
soft_reload(true);
|
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) {
|
int main(void) {
|
||||||
init();
|
init();
|
||||||
|
|||||||
Reference in New Issue
Block a user