Add background

This commit is contained in:
daleclack 2024-05-11 18:43:10 +08:00
parent f897be881b
commit 0ca2fdf29c
3 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,7 @@ set(RESOURCE_LIST
STRIPBLANKS win_input.ui
STRIPBLANKS scoreswin.ui
STRIPBLANKS mine_menu.xml
shizuku.png
final_approach.png
style.css
style_dark.css

BIN
Gtk4_Reset/res/shizuku.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -213,6 +213,8 @@ static void images_list_default(GListStore *store1)
my_item_new("img7.xpm", ":2", TRUE));
g_list_store_append(store1,
my_item_new("winpe.xpm", ":3", TRUE));
g_list_store_append(store1,
my_item_new("shizuku.png", ":4", TRUE));
}
static void update_images_list(MyPrefs *prefs1)
@ -542,6 +544,9 @@ static void load_image(const char *file_name, int image_item_index,
case '3':
update_internal_image(prefs, winpe);
break;
case '4':
update_resource_image(prefs, "/org/gtk/daleclack/shizuku.png");
break;
}
prefs->current_image_index = image_item_index;
strncpy(prefs->image_file_name, file_name, PATH_MAX);