From 5b41ddba80b220e63ceb51c69466aa67488f25e9 Mon Sep 17 00:00:00 2001 From: Alexander Frick Date: Fri, 27 Sep 2024 20:24:54 -0500 Subject: [PATCH] fix theme bug --- other/thorium-2024-ui.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/other/thorium-2024-ui.patch b/other/thorium-2024-ui.patch index 496b8f912..3c0c84c09 100644 --- a/other/thorium-2024-ui.patch +++ b/other/thorium-2024-ui.patch @@ -1025,6 +1025,28 @@ index 2232cc983adbc..1a2888799934e 100644 COMPONENT_EXPORT(UI_BASE_FEATURES) BASE_DECLARE_FEATURE(kBubbleMetricsApi); +diff --git a/ui/linux/linux_ui_factory.cc b/ui/linux/linux_ui_factory.cc +index d21456ab73faa..de14c868fcc26 100644 +--- a/ui/linux/linux_ui_factory.cc ++++ b/ui/linux/linux_ui_factory.cc +@@ -175,7 +175,7 @@ SystemTheme GetDefaultSystemTheme() { + case base::nix::DESKTOP_ENVIRONMENT_PANTHEON: + case base::nix::DESKTOP_ENVIRONMENT_UNITY: + case base::nix::DESKTOP_ENVIRONMENT_XFCE: +- return SystemTheme::kGtk; ++ return SystemTheme::kDefault; + case base::nix::DESKTOP_ENVIRONMENT_KDE3: + case base::nix::DESKTOP_ENVIRONMENT_KDE4: + case base::nix::DESKTOP_ENVIRONMENT_KDE5: +@@ -183,7 +183,7 @@ SystemTheme GetDefaultSystemTheme() { + case base::nix::DESKTOP_ENVIRONMENT_UKUI: + case base::nix::DESKTOP_ENVIRONMENT_DEEPIN: + case base::nix::DESKTOP_ENVIRONMENT_LXQT: +- return SystemTheme::kQt; ++ return SystemTheme::kDefault; + case base::nix::DESKTOP_ENVIRONMENT_OTHER: + return SystemTheme::kDefault; + } diff --git a/ui/views/controls/menu/menu_config.cc b/ui/views/controls/menu/menu_config.cc index 2f1525c8880d4..c7b6d0822ba32 100644 --- a/ui/views/controls/menu/menu_config.cc