Skip to content

Commit 5145b33

Browse files
committed
Added example theme (#161)
Still to do is move the default theme files and values to this new `themes` folder.
1 parent 6b55579 commit 5145b33

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+83
-3
lines changed

THEMING.md

+19-3

components/retro-go/rg_gui.c

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ static struct
2828
rg_color_t item_disabled;
2929
rg_color_t item_message;
3030
rg_color_t scrollbar;
31+
rg_color_t shadow;
3132
} style;
3233
char theme_name[32];
3334
cJSON *theme_obj;
@@ -173,6 +174,7 @@ bool rg_gui_set_theme(const char *theme_name)
173174
gui.style.item_disabled = rg_gui_get_theme_color("dialog", "item_disabled", C_GRAY);
174175
gui.style.item_message = rg_gui_get_theme_color("dialog", "item_message", C_SILVER);
175176
gui.style.scrollbar = rg_gui_get_theme_color("dialog", "scrollbar", C_WHITE);
177+
gui.style.shadow = rg_gui_get_theme_color("dialog", "shadow", C_NONE);
176178

177179
return true;
178180
}

themes/default/README.md

+9
File renamed without changes.

themes/example/background_2600.png

1.29 KB

themes/example/background_col.png

1.47 KB
1.39 KB

themes/example/background_doom.png

951 Bytes
1.38 KB

themes/example/background_gb.png

2.62 KB

themes/example/background_gbc.png

1.24 KB

themes/example/background_gg.png

1.49 KB

themes/example/background_gw.png

1.21 KB

themes/example/background_lnx.png

1.19 KB

themes/example/background_md.png

1.81 KB

themes/example/background_msx.png

3.08 KB

themes/example/background_nes.png

1.78 KB

themes/example/background_pce.png

1.31 KB

themes/example/background_recent.png

1.52 KB

themes/example/background_sms.png

1.64 KB

themes/example/background_snes.png

1.04 KB

themes/example/banner_gb.png

397 Bytes

themes/example/banner_gbc.png

519 Bytes

themes/example/banner_gg.png

452 Bytes

themes/example/banner_gw.png

429 Bytes

themes/example/banner_lnx.png

367 Bytes

themes/example/banner_md.png

347 Bytes

themes/example/banner_nes.png

332 Bytes

themes/example/banner_ngp.png

465 Bytes

themes/example/banner_pce.png

339 Bytes

themes/example/banner_recent.png

441 Bytes

themes/example/banner_sms.png

495 Bytes

themes/example/banner_snes.png

479 Bytes

themes/example/logo_col.png

1.2 KB

themes/example/logo_doom.png

2.8 KB

themes/example/logo_favorite.png

1.1 KB

themes/example/logo_gb.png

1.12 KB

themes/example/logo_gbc.png

1.25 KB

themes/example/logo_gg.png

1.2 KB

themes/example/logo_gw.png

1.02 KB

themes/example/logo_lnx.png

1.29 KB

themes/example/logo_md.png

1.08 KB

themes/example/logo_msx.png

464 Bytes

themes/example/logo_nes.png

1.13 KB

themes/example/logo_ngp.png

1.37 KB

themes/example/logo_pce.png

1.25 KB

themes/example/logo_recent.png

1.07 KB

themes/example/logo_sms.png

1.14 KB

themes/example/logo_snes.png

1.32 KB

themes/example/theme.json

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"description": "An example theme to show how themes are made",
3+
"website": "https://github.com/ducalex/retro-go/",
4+
"author": "ducalex",
5+
"dialog": {
6+
"__comment": "This section contains global dialog colors",
7+
"background": "0xFFEF",
8+
"foreground": "0x0000",
9+
"border": "0x94B2",
10+
"header": "0x0000",
11+
"scrollbar": "0x0000",
12+
"shadow": "none",
13+
"item_standard": "0x0000",
14+
"item_disabled": "0xF8B2",
15+
"item_message": "0x4208"
16+
},
17+
"launcher_1": {
18+
"__comment": "This section contains launcher colors variant 1",
19+
"background": "0xFFFF",
20+
"foreground": "0x0021",
21+
"list_standard_bg": "transparent",
22+
"list_standard_fg": "0xF8B2",
23+
"list_selected_bg": "transparent",
24+
"list_selected_fg": "0xF800"
25+
},
26+
"launcher_2": {
27+
"__comment": "This section contains launcher colors variant 2",
28+
"background": "0xFFFF",
29+
"foreground": "0x0021",
30+
"list_standard_bg": "transparent",
31+
"list_standard_fg": "0x2444",
32+
"list_selected_bg": "transparent",
33+
"list_selected_fg": "0x07E0"
34+
},
35+
"launcher_3": {
36+
"__comment": "This section contains launcher colors variant 3",
37+
"background": "0xFFFF",
38+
"foreground": "0x0021",
39+
"list_standard_bg": "transparent",
40+
"list_standard_fg": "0xF8B2",
41+
"list_selected_bg": "0xF800",
42+
"list_selected_fg": "0xFFFF"
43+
},
44+
"launcher_4": {
45+
"__comment": "This section contains launcher colors variant 4",
46+
"background": "0xFFFF",
47+
"foreground": "0x0021",
48+
"list_standard_bg": "transparent",
49+
"list_standard_fg": "0x52AA",
50+
"list_selected_bg": "0xF800",
51+
"list_selected_fg": "0xFFFF"
52+
}
53+
}

0 commit comments

Comments
 (0)