Skip to content

Commit 5b8739a

Browse files
committed
And finaly add support for OS specific CSS.
1 parent 8a70c4c commit 5b8739a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/gui/gtk.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3533,7 +3533,15 @@ void dt_gui_load_theme(const char *theme)
35333533
_add_theme_import(&themecss, datadir, "themes", "condensed.css");
35343534
}
35353535

3536-
// we could add OS specific css here if needed
3536+
// load any OS specific themes tweak file to fix some platform specific issues
3537+
3538+
#ifdef __APPLE__
3539+
_add_theme_import(&themecss, datadir, "themes", "macos.css");
3540+
#elif defined(_WIN32)
3541+
_add_theme_import(&themecss, datadir, "themes", "windows.css");
3542+
#else
3543+
_add_theme_import(&themecss, datadir, "themes", "linux.css");
3544+
#endif
35373545

35383546
// and finally user.css
35393547

0 commit comments

Comments
 (0)