| commit | f90239263fcabec30f04098e17dc1be9f9a928d1 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Tue May 31 10:02:58 2022 +0100 |
| committer | Caolán McNamara <caolanm@redhat.com> | Tue May 31 16:04:39 2022 +0200 |
| tree | 4e7db4c0b812844cc8cadb155d3fcce434e715d1 | |
| parent | 225d8f31ad5fdcb802fbaa4ccb5266c80a3dd037 [diff] |
tdf#117006 gtk: detect High Contrast similar to https://bugzilla.mozilla.org/show_bug.cgi?id=1606038 .e.g. gnome a11y menu, pick "High Contrast" Change-Id: I60643b3a37b722230d5ed47082e4a6491d005ce4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135179 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/unx/gtk3/salnativewidgets-gtk.cxx b/vcl/unx/gtk3/salnativewidgets-gtk.cxx index df40af5..3eaffc9 100644 --- a/vcl/unx/gtk3/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/salnativewidgets-gtk.cxx
@@ -2643,16 +2643,17 @@ bool GtkSalGraphics::updateSettings(AllSettings& rSettings) aStyleSet.SetToolbarIconSize( ToolbarIconSize::Large ); // finally update the collected settings rSettings.SetStyleSettings( aStyleSet ); #if OSL_DEBUG_LEVEL > 1 gchar* pThemeName = NULL; gchar* pThemeName = nullptr; g_object_get( pSettings, "gtk-theme-name", &pThemeName, nullptr ); SAL_INFO("vcl.gtk3", "Theme name is \"" << pThemeName << "\"."); // High contrast aStyleSet.SetHighContrastMode(g_strcmp0(pThemeName, "HighContrast") == 0); g_free(pThemeName); #endif // finally update the collected settings rSettings.SetStyleSettings( aStyleSet ); return true; }