Skip to content

Commit d06a156

Browse files
committed
patches: disable gtk/qt themes
1 parent 66ba5ce commit d06a156

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
--- a/ui/linux/linux_ui_factory.cc
2+
+++ b/ui/linux/linux_ui_factory.cc
3+
@@ -185,22 +185,7 @@ SystemTheme GetDefaultSystemTheme() {
4+
std::unique_ptr<base::Environment> env = base::Environment::Create();
5+
6+
switch (base::nix::GetDesktopEnvironment(env.get())) {
7+
- case base::nix::DESKTOP_ENVIRONMENT_CINNAMON:
8+
- case base::nix::DESKTOP_ENVIRONMENT_GNOME:
9+
- case base::nix::DESKTOP_ENVIRONMENT_PANTHEON:
10+
- case base::nix::DESKTOP_ENVIRONMENT_UNITY:
11+
- case base::nix::DESKTOP_ENVIRONMENT_XFCE:
12+
- case base::nix::DESKTOP_ENVIRONMENT_COSMIC:
13+
- return SystemTheme::kGtk;
14+
- case base::nix::DESKTOP_ENVIRONMENT_KDE3:
15+
- case base::nix::DESKTOP_ENVIRONMENT_KDE4:
16+
- case base::nix::DESKTOP_ENVIRONMENT_KDE5:
17+
- case base::nix::DESKTOP_ENVIRONMENT_KDE6:
18+
- case base::nix::DESKTOP_ENVIRONMENT_UKUI:
19+
- case base::nix::DESKTOP_ENVIRONMENT_DEEPIN:
20+
- case base::nix::DESKTOP_ENVIRONMENT_LXQT:
21+
- return SystemTheme::kQt;
22+
- case base::nix::DESKTOP_ENVIRONMENT_OTHER:
23+
+ default:
24+
return SystemTheme::kDefault;
25+
}
26+
}

patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ ungoogled-chromium/portablelinux/use-oauth2-client-switches-as-default.patch
33
ungoogled-chromium/portablelinux/fix-compiling-on-arm64.patch
44

55
helium/linux/change-chromium-branding.patch
6+
helium/linux/use-default-theme.patch

0 commit comments

Comments
 (0)