From b51db125676fb1257e3bacbd19df3ae686ae69df Mon Sep 17 00:00:00 2001
From: Kyle K <190571+Docteh@users.noreply.github.com>
Date: Thu, 28 Jul 2022 07:50:20 -0700
Subject: Linux: handle dark system themes nicely
yuzu's default theme doesn't specify everything, which is fine for
windows, but in linux anything unspecified is set to the users theme.
Symptoms of this are that a linux user with a dark theme won't think
to change the theme to a dark theme when first using yuzu
Idea here is to try and support arbitrary themes on linux.
preliminary work on a "default_dark" theme, used only as overlay
for any themes that are measured to be dark mode.
Other work done:
FreeDesktop standard icon names:
plus -> list-add
delete refresh, we use view-refresh
remove duplicated icons for qdarkstyle_midnight_blue
referencing icon aliases in the qrc files is the way to go
Note:
Dynamic style changing doesn't appear to work with AppImage
---
dist/qt_themes/colorful_dark/icons/16x16/refresh.png | Bin 362 -> 0 bytes
dist/qt_themes/colorful_dark/icons/index.theme | 2 +-
dist/qt_themes/colorful_dark/style.qrc | 2 +-
3 files changed, 2 insertions(+), 2 deletions(-)
delete mode 100644 dist/qt_themes/colorful_dark/icons/16x16/refresh.png
(limited to 'dist/qt_themes/colorful_dark')
diff --git a/dist/qt_themes/colorful_dark/icons/16x16/refresh.png b/dist/qt_themes/colorful_dark/icons/16x16/refresh.png
deleted file mode 100644
index d4afd76f9..000000000
Binary files a/dist/qt_themes/colorful_dark/icons/16x16/refresh.png and /dev/null differ
diff --git a/dist/qt_themes/colorful_dark/icons/index.theme b/dist/qt_themes/colorful_dark/icons/index.theme
index 19dc0369a..b37a06df7 100644
--- a/dist/qt_themes/colorful_dark/icons/index.theme
+++ b/dist/qt_themes/colorful_dark/icons/index.theme
@@ -3,6 +3,6 @@ Name=colorful_dark
Comment=Colorful theme (Dark style)
Inherits=colorful
Directories=16x16
-
+
[16x16]
Size=16
diff --git a/dist/qt_themes/colorful_dark/style.qrc b/dist/qt_themes/colorful_dark/style.qrc
index 50e78c37b..9853fd438 100644
--- a/dist/qt_themes/colorful_dark/style.qrc
+++ b/dist/qt_themes/colorful_dark/style.qrc
@@ -15,7 +15,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
../colorful/icons/48x48/chip.png
../colorful/icons/48x48/folder.png
../qdarkstyle/icons/48x48/no_avatar.png
- ../colorful/icons/48x48/plus.png
+ ../colorful/icons/48x48/list-add.png
../colorful/icons/48x48/sd_card.png
../colorful/icons/256x256/plus_folder.png
--
cgit v1.2.3