File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -4156,6 +4156,7 @@ std::string get_plugins_directory(bool portable_mode)
4156
4156
extern void save_theme (const std::string& theme_filename);
4157
4157
extern void load_theme (const std::string& theme_filename);
4158
4158
extern void load_default_theme ();
4159
+ extern void load_default_dark_theme ();
4159
4160
4160
4161
void create_missing_amiberry_folders ()
4161
4162
{
@@ -4340,6 +4341,13 @@ void create_missing_amiberry_folders()
4340
4341
load_default_theme ();
4341
4342
save_theme (" Default.theme" );
4342
4343
}
4344
+
4345
+ default_theme_file = themes_path + " Dark.theme" ;
4346
+ if (!my_existsfile2 (default_theme_file.c_str ()))
4347
+ {
4348
+ load_default_dark_theme ();
4349
+ save_theme (" Dark.theme" );
4350
+ }
4343
4351
}
4344
4352
4345
4353
static bool locate_amiberry_conf (const bool portable_mode)
Original file line number Diff line number Diff line change @@ -1946,6 +1946,19 @@ void load_default_theme()
1946
1946
gui_theme.foreground_color = { 0 , 0 , 0 };
1947
1947
}
1948
1948
1949
+ void load_default_dark_theme ()
1950
+ {
1951
+ gui_theme.font_name = " AmigaTopaz.ttf" ;
1952
+ gui_theme.font_size = 15 ;
1953
+ gui_theme.font_color = { 200 , 200 , 200 };
1954
+ gui_theme.base_color = { 32 , 32 , 37 };
1955
+ gui_theme.selector_inactive = { 32 , 32 , 37 };
1956
+ gui_theme.selector_active = { 50 , 100 , 200 };
1957
+ gui_theme.selection_color = { 50 , 100 , 200 };
1958
+ gui_theme.background_color = { 45 , 45 , 47 };
1959
+ gui_theme.foreground_color = { 200 , 200 , 200 };
1960
+ }
1961
+
1949
1962
// Get the path to the system fonts
1950
1963
std::string get_system_fonts_path ()
1951
1964
{
Original file line number Diff line number Diff line change @@ -436,6 +436,7 @@ extern std::vector<int> parse_color_string(const std::string& input);
436
436
extern void save_theme (const std::string& theme_filename);
437
437
extern void load_theme (const std::string& theme_filename);
438
438
extern void load_default_theme ();
439
+ extern void load_default_dark_theme ();
439
440
extern void apply_theme ();
440
441
extern void apply_theme_extras ();
441
442
You can’t perform that action at this time.
0 commit comments