@@ -3516,7 +3516,11 @@ void dt_gui_load_theme(const char *theme)
35163516 gtk_style_context_add_provider_for_screen
35173517 (gdk_screen_get_default (), themes_style_provider , GTK_STYLE_PROVIDER_PRIORITY_USER + 1 );
35183518
3519- // main darktable theme
3519+ // We load the themes in this specific order:
3520+ // 1. The main darktable-*.css
3521+ // 2. condensed.css (if enabled)
3522+ // 3. OS specific tweaks (linux|macos|windows).css (if any)
3523+ // 4. user.css (if enabled)
35203524
35213525 gchar * path_uri = g_filename_to_uri (path , NULL , & error );
35223526 if (path_uri == NULL )
@@ -3533,7 +3537,15 @@ void dt_gui_load_theme(const char *theme)
35333537 _add_theme_import (& themecss , datadir , "themes" , "condensed.css" );
35343538 }
35353539
3536- // we could add OS specific css here if needed
3540+ // load any OS specific themes tweak file to fix some platform specific issues
3541+
3542+ #ifdef __APPLE__
3543+ _add_theme_import (& themecss , datadir , "themes" , "macos.css" );
3544+ #elif defined(_WIN32 )
3545+ _add_theme_import (& themecss , datadir , "themes" , "windows.css" );
3546+ #else
3547+ _add_theme_import (& themecss , datadir , "themes" , "linux.css" );
3548+ #endif
35373549
35383550 // and finally user.css
35393551
0 commit comments