diff options
32 files changed, 819 insertions, 35 deletions
diff --git a/.reuse/dep5 b/.reuse/dep5 index e2ee4f456..5251870fb 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 | |||
| @@ -41,20 +41,18 @@ Files: dist/qt_themes/*/icons/16x16/connected.png | |||
| 41 | dist/qt_themes/*/icons/48x48/sd_card.png | 41 | dist/qt_themes/*/icons/48x48/sd_card.png |
| 42 | dist/qt_themes/*/icons/48x48/star.png | 42 | dist/qt_themes/*/icons/48x48/star.png |
| 43 | dist/qt_themes/*/icons/256x256/plus_folder.png | 43 | dist/qt_themes/*/icons/256x256/plus_folder.png |
| 44 | dist/qt_themes/colorful/icons/48x48/plus.png | 44 | dist/qt_themes/colorful/icons/48x48/list-add.png |
| 45 | dist/qt_themes/default/icons/16x16/checked.png | 45 | dist/qt_themes/default/icons/16x16/checked.png |
| 46 | dist/qt_themes/default/icons/16x16/failed.png | 46 | dist/qt_themes/default/icons/16x16/failed.png |
| 47 | Copyright: https://icons8.com | 47 | Copyright: https://icons8.com |
| 48 | License: CC-BY-ND-3.0 | 48 | License: CC-BY-ND-3.0 |
| 49 | 49 | ||
| 50 | Files: dist/qt_themes/*/icons/16x16/refresh.png | 50 | Files: dist/qt_themes/*/icons/16x16/view-refresh.png |
| 51 | dist/qt_themes/*/icons/16x16/view-refresh.png | ||
| 52 | Copyright: Google, Inc. | 51 | Copyright: Google, Inc. |
| 53 | License: Apache-2.0 | 52 | License: Apache-2.0 |
| 54 | 53 | ||
| 55 | Files: dist/qt_themes/default/icons/48x48/plus.png | 54 | Files: dist/qt_themes/default/icons/48x48/list-add.png |
| 56 | dist/qt_themes/qdarkstyle/icons/48x48/plus.png | 55 | dist/qt_themes/qdarkstyle/icons/48x48/list-add.png |
| 57 | dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/plus.png | ||
| 58 | Copyright: BreadFish64 | 56 | Copyright: BreadFish64 |
| 59 | License: CC0-1.0 | 57 | License: CC0-1.0 |
| 60 | 58 | ||
diff --git a/dist/qt_themes/colorful/icons/48x48/plus.png b/dist/qt_themes/colorful/icons/48x48/list-add.png index bc2c47c91..bc2c47c91 100644 --- a/dist/qt_themes/colorful/icons/48x48/plus.png +++ b/dist/qt_themes/colorful/icons/48x48/list-add.png | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/colorful/style.qrc b/dist/qt_themes/colorful/style.qrc index 4b3f28d89..507e0e58b 100644 --- a/dist/qt_themes/colorful/style.qrc +++ b/dist/qt_themes/colorful/style.qrc | |||
| @@ -13,7 +13,7 @@ SPDX-License-Identifier: GPL-2.0-or-later | |||
| 13 | <file alias="48x48/bad_folder.png">icons/48x48/bad_folder.png</file> | 13 | <file alias="48x48/bad_folder.png">icons/48x48/bad_folder.png</file> |
| 14 | <file alias="48x48/chip.png">icons/48x48/chip.png</file> | 14 | <file alias="48x48/chip.png">icons/48x48/chip.png</file> |
| 15 | <file alias="48x48/folder.png">icons/48x48/folder.png</file> | 15 | <file alias="48x48/folder.png">icons/48x48/folder.png</file> |
| 16 | <file alias="48x48/plus.png">icons/48x48/plus.png</file> | 16 | <file alias="48x48/list-add.png">icons/48x48/list-add.png</file> |
| 17 | <file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file> | 17 | <file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file> |
| 18 | <file alias="48x48/star.png">icons/48x48/star.png</file> | 18 | <file alias="48x48/star.png">icons/48x48/star.png</file> |
| 19 | <file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file> | 19 | <file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file> |
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 --- a/dist/qt_themes/colorful_dark/icons/16x16/refresh.png +++ /dev/null | |||
| Binary files 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 | |||
| 3 | Comment=Colorful theme (Dark style) | 3 | Comment=Colorful theme (Dark style) |
| 4 | Inherits=colorful | 4 | Inherits=colorful |
| 5 | Directories=16x16 | 5 | Directories=16x16 |
| 6 | 6 | ||
| 7 | [16x16] | 7 | [16x16] |
| 8 | Size=16 | 8 | 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 | |||
| 15 | <file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file> | 15 | <file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file> |
| 16 | <file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file> | 16 | <file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file> |
| 17 | <file alias="48x48/no_avatar.png">../qdarkstyle/icons/48x48/no_avatar.png</file> | 17 | <file alias="48x48/no_avatar.png">../qdarkstyle/icons/48x48/no_avatar.png</file> |
| 18 | <file alias="48x48/plus.png">../colorful/icons/48x48/plus.png</file> | 18 | <file alias="48x48/list-add.png">../colorful/icons/48x48/list-add.png</file> |
| 19 | <file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file> | 19 | <file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file> |
| 20 | <file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file> | 20 | <file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file> |
| 21 | </qresource> | 21 | </qresource> |
diff --git a/dist/qt_themes/colorful_midnight_blue/icons/16x16/refresh.png b/dist/qt_themes/colorful_midnight_blue/icons/16x16/refresh.png deleted file mode 100644 index d4afd76f9..000000000 --- a/dist/qt_themes/colorful_midnight_blue/icons/16x16/refresh.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/colorful_midnight_blue/style.qrc b/dist/qt_themes/colorful_midnight_blue/style.qrc index ac8cb0d49..1081d281d 100644 --- a/dist/qt_themes/colorful_midnight_blue/style.qrc +++ b/dist/qt_themes/colorful_midnight_blue/style.qrc | |||
| @@ -11,7 +11,7 @@ SPDX-License-Identifier: GPL-2.0-or-later | |||
| 11 | <file alias="48x48/bad_folder.png">../colorful/icons/48x48/bad_folder.png</file> | 11 | <file alias="48x48/bad_folder.png">../colorful/icons/48x48/bad_folder.png</file> |
| 12 | <file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file> | 12 | <file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file> |
| 13 | <file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file> | 13 | <file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file> |
| 14 | <file alias="48x48/plus.png">../colorful/icons/48x48/plus.png</file> | 14 | <file alias="48x48/list-add.png">../colorful/icons/48x48/list-add.png</file> |
| 15 | <file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file> | 15 | <file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file> |
| 16 | <file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file> | 16 | <file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file> |
| 17 | </qresource> | 17 | </qresource> |
diff --git a/dist/qt_themes/default/default.qrc b/dist/qt_themes/default/default.qrc index ef080c221..a07f2a9c1 100644 --- a/dist/qt_themes/default/default.qrc +++ b/dist/qt_themes/default/default.qrc | |||
| @@ -17,7 +17,7 @@ SPDX-License-Identifier: GPL-2.0-or-later | |||
| 17 | <file alias="48x48/chip.png">icons/48x48/chip.png</file> | 17 | <file alias="48x48/chip.png">icons/48x48/chip.png</file> |
| 18 | <file alias="48x48/folder.png">icons/48x48/folder.png</file> | 18 | <file alias="48x48/folder.png">icons/48x48/folder.png</file> |
| 19 | <file alias="48x48/no_avatar.png">icons/48x48/no_avatar.png</file> | 19 | <file alias="48x48/no_avatar.png">icons/48x48/no_avatar.png</file> |
| 20 | <file alias="48x48/plus.png">icons/48x48/plus.png</file> | 20 | <file alias="48x48/list-add.png">icons/48x48/list-add.png</file> |
| 21 | <file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file> | 21 | <file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file> |
| 22 | <file alias="48x48/star.png">icons/48x48/star.png</file> | 22 | <file alias="48x48/star.png">icons/48x48/star.png</file> |
| 23 | <file alias="256x256/yuzu.png">icons/256x256/yuzu.png</file> | 23 | <file alias="256x256/yuzu.png">icons/256x256/yuzu.png</file> |
diff --git a/dist/qt_themes/default/icons/16x16/refresh.png b/dist/qt_themes/default/icons/16x16/refresh.png deleted file mode 100644 index 69f9474ac..000000000 --- a/dist/qt_themes/default/icons/16x16/refresh.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/default/icons/48x48/plus.png b/dist/qt_themes/default/icons/48x48/list-add.png index dbc74687b..dbc74687b 100644 --- a/dist/qt_themes/default/icons/48x48/plus.png +++ b/dist/qt_themes/default/icons/48x48/list-add.png | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/default_dark/icons/index.theme b/dist/qt_themes/default_dark/icons/index.theme new file mode 100644 index 000000000..60a072d1d --- /dev/null +++ b/dist/qt_themes/default_dark/icons/index.theme | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | [Icon Theme] | ||
| 2 | Name=default_dark | ||
| 3 | Comment=Colorful theme (Dark style) | ||
| 4 | Inherits=colorful | ||
| 5 | Directories=16x16 | ||
| 6 | |||
| 7 | [16x16] | ||
| 8 | Size=16 | ||
diff --git a/dist/qt_themes/default_dark/style.qrc b/dist/qt_themes/default_dark/style.qrc new file mode 100644 index 000000000..7de4737c2 --- /dev/null +++ b/dist/qt_themes/default_dark/style.qrc | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | <!-- | ||
| 2 | SPDX-FileCopyrightText: 2022 yuzu Emulator Project | ||
| 3 | SPDX-License-Identifier: GPL-2.0-or-later | ||
| 4 | --> | ||
| 5 | <RCC> | ||
| 6 | <qresource prefix="icons/default_dark"> | ||
| 7 | <file alias="16x16/connected.png">../colorful/icons/16x16/connected.png</file> | ||
| 8 | <file alias="16x16/connected_notification.png">../colorful/icons/16x16/connected_notification.png</file> | ||
| 9 | <file alias="16x16/disconnected.png">../colorful/icons/16x16/disconnected.png</file> | ||
| 10 | <file alias="index.theme">icons/index.theme</file> | ||
| 11 | <file alias="16x16/lock.png">../colorful_dark/icons/16x16/lock.png</file> | ||
| 12 | <file alias="16x16/view-refresh.png">../colorful_dark/icons/16x16/view-refresh.png</file> | ||
| 13 | <file alias="48x48/bad_folder.png">../colorful/icons/48x48/bad_folder.png</file> | ||
| 14 | <file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file> | ||
| 15 | <file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file> | ||
| 16 | <file alias="48x48/no_avatar.png">../qdarkstyle/icons/48x48/no_avatar.png</file> | ||
| 17 | <file alias="48x48/list-add.png">../colorful/icons/48x48/list-add.png</file> | ||
| 18 | <file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file> | ||
| 19 | <file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file> | ||
| 20 | </qresource> | ||
| 21 | |||
| 22 | <qresource prefix="default_dark"> | ||
| 23 | <file>style.qss</file> | ||
| 24 | </qresource> | ||
| 25 | </RCC> | ||
diff --git a/dist/qt_themes/default_dark/style.qss b/dist/qt_themes/default_dark/style.qss new file mode 100644 index 000000000..356996357 --- /dev/null +++ b/dist/qt_themes/default_dark/style.qss | |||
| @@ -0,0 +1,689 @@ | |||
| 1 | /* | ||
| 2 | * SPDX-FileCopyrightText: 2018 yuzu Emulator Project | ||
| 3 | * SPDX-License-Identifier: GPL-2.0-or-later | ||
| 4 | */ | ||
| 5 | QAbstractSpinBox { | ||
| 6 | min-height: 19px; | ||
| 7 | } | ||
| 8 | |||
| 9 | QPushButton#TogglableStatusBarButton { | ||
| 10 | color: #959595; | ||
| 11 | border: 1px solid transparent; | ||
| 12 | background-color: transparent; | ||
| 13 | padding: 0px 3px 0px 3px; | ||
| 14 | text-align: center; | ||
| 15 | } | ||
| 16 | |||
| 17 | /* | ||
| 18 | QPushButton#TogglableStatusBarButton:checked { | ||
| 19 | color: #000000; | ||
| 20 | } | ||
| 21 | */ | ||
| 22 | |||
| 23 | QPushButton#TogglableStatusBarButton:hover { | ||
| 24 | border: 1px solid #76797C; | ||
| 25 | } | ||
| 26 | |||
| 27 | QPushButton#RendererStatusBarButton { | ||
| 28 | color: #656565; | ||
| 29 | border: 1px solid transparent; | ||
| 30 | background-color: transparent; | ||
| 31 | padding: 0px 3px 0px 3px; | ||
| 32 | text-align: center; | ||
| 33 | } | ||
| 34 | |||
| 35 | QPushButton#RendererStatusBarButton:hover { | ||
| 36 | border: 1px solid #76797C; | ||
| 37 | } | ||
| 38 | |||
| 39 | QPushButton#RendererStatusBarButton:checked { | ||
| 40 | color: #e85c00; | ||
| 41 | } | ||
| 42 | |||
| 43 | QPushButton#RendererStatusBarButton:!checked { | ||
| 44 | color: #0066ff; | ||
| 45 | } | ||
| 46 | |||
| 47 | QPushButton#GPUStatusBarButton { | ||
| 48 | color: #656565; | ||
| 49 | border: 1px solid transparent; | ||
| 50 | background-color: transparent; | ||
| 51 | padding: 0px 3px 0px 3px; | ||
| 52 | text-align: center; | ||
| 53 | } | ||
| 54 | |||
| 55 | QPushButton#GPUStatusBarButton:hover { | ||
| 56 | border: 1px solid #76797C; | ||
| 57 | } | ||
| 58 | |||
| 59 | QPushButton#GPUStatusBarButton:checked { | ||
| 60 | color: #b06020; | ||
| 61 | } | ||
| 62 | |||
| 63 | QPushButton#GPUStatusBarButton:!checked { | ||
| 64 | color: #109010; | ||
| 65 | } | ||
| 66 | |||
| 67 | QPushButton#DockingStatusBarButton { | ||
| 68 | min-width: 0px; | ||
| 69 | /*color: #000000;*/ | ||
| 70 | border: 1px solid transparent; | ||
| 71 | background-color: transparent; | ||
| 72 | padding: 0px 3px 0px 3px; | ||
| 73 | text-align: center; | ||
| 74 | } | ||
| 75 | |||
| 76 | QPushButton#DockingStatusBarButton:hover { | ||
| 77 | border: 1px solid #76797C; | ||
| 78 | } | ||
| 79 | |||
| 80 | QPushButton#buttonRefreshDevices { | ||
| 81 | min-width: 21px; | ||
| 82 | min-height: 21px; | ||
| 83 | max-width: 21px; | ||
| 84 | max-height: 21px; | ||
| 85 | } | ||
| 86 | |||
| 87 | QWidget#bottomPerGameInput, | ||
| 88 | QWidget#topControllerApplet, | ||
| 89 | QWidget#bottomControllerApplet, | ||
| 90 | QGroupBox#groupPlayer1Connected:checked, | ||
| 91 | QGroupBox#groupPlayer2Connected:checked, | ||
| 92 | QGroupBox#groupPlayer3Connected:checked, | ||
| 93 | QGroupBox#groupPlayer4Connected:checked, | ||
| 94 | QGroupBox#groupPlayer5Connected:checked, | ||
| 95 | QGroupBox#groupPlayer6Connected:checked, | ||
| 96 | QGroupBox#groupPlayer7Connected:checked, | ||
| 97 | QGroupBox#groupPlayer8Connected:checked { | ||
| 98 | background-color: #f5f5f5; | ||
| 99 | } | ||
| 100 | |||
| 101 | QWidget#topControllerApplet { | ||
| 102 | border-bottom: 1px solid #828790 | ||
| 103 | } | ||
| 104 | |||
| 105 | QWidget#bottomPerGameInput, | ||
| 106 | QWidget#bottomControllerApplet { | ||
| 107 | border-top: 1px solid #828790 | ||
| 108 | } | ||
| 109 | |||
| 110 | QWidget#topPerGameInput, | ||
| 111 | QWidget#middleControllerApplet { | ||
| 112 | background-color: #fff; | ||
| 113 | } | ||
| 114 | |||
| 115 | QWidget#topPerGameInput QComboBox, | ||
| 116 | QWidget#middleControllerApplet QComboBox { | ||
| 117 | width: 120px; | ||
| 118 | } | ||
| 119 | |||
| 120 | QWidget#connectedControllers { | ||
| 121 | background: transparent; | ||
| 122 | } | ||
| 123 | |||
| 124 | QWidget#playersSupported, | ||
| 125 | QWidget#controllersSupported, | ||
| 126 | QWidget#controllerSupported1, | ||
| 127 | QWidget#controllerSupported2, | ||
| 128 | QWidget#controllerSupported3, | ||
| 129 | QWidget#controllerSupported4, | ||
| 130 | QWidget#controllerSupported5, | ||
| 131 | QWidget#controllerSupported6 { | ||
| 132 | border: none; | ||
| 133 | background: transparent; | ||
| 134 | } | ||
| 135 | |||
| 136 | QGroupBox#groupPlayer1Connected, | ||
| 137 | QGroupBox#groupPlayer2Connected, | ||
| 138 | QGroupBox#groupPlayer3Connected, | ||
| 139 | QGroupBox#groupPlayer4Connected, | ||
| 140 | QGroupBox#groupPlayer5Connected, | ||
| 141 | QGroupBox#groupPlayer6Connected, | ||
| 142 | QGroupBox#groupPlayer7Connected, | ||
| 143 | QGroupBox#groupPlayer8Connected { | ||
| 144 | border: 1px solid #828790; | ||
| 145 | border-radius: 3px; | ||
| 146 | padding: 0px; | ||
| 147 | min-height: 98px; | ||
| 148 | max-height: 98px; | ||
| 149 | } | ||
| 150 | |||
| 151 | QGroupBox#groupPlayer1Connected:unchecked, | ||
| 152 | QGroupBox#groupPlayer2Connected:unchecked, | ||
| 153 | QGroupBox#groupPlayer3Connected:unchecked, | ||
| 154 | QGroupBox#groupPlayer4Connected:unchecked, | ||
| 155 | QGroupBox#groupPlayer5Connected:unchecked, | ||
| 156 | QGroupBox#groupPlayer6Connected:unchecked, | ||
| 157 | QGroupBox#groupPlayer7Connected:unchecked, | ||
| 158 | QGroupBox#groupPlayer8Connected:unchecked { | ||
| 159 | border: 1px solid #d9d9d9; | ||
| 160 | } | ||
| 161 | |||
| 162 | QGroupBox#groupPlayer1Connected::title, | ||
| 163 | QGroupBox#groupPlayer2Connected::title, | ||
| 164 | QGroupBox#groupPlayer3Connected::title, | ||
| 165 | QGroupBox#groupPlayer4Connected::title, | ||
| 166 | QGroupBox#groupPlayer5Connected::title, | ||
| 167 | QGroupBox#groupPlayer6Connected::title, | ||
| 168 | QGroupBox#groupPlayer7Connected::title, | ||
| 169 | QGroupBox#groupPlayer8Connected::title { | ||
| 170 | subcontrol-origin: margin; | ||
| 171 | subcontrol-position: top left; | ||
| 172 | padding-left: 0px; | ||
| 173 | padding-right: 0px; | ||
| 174 | padding-top: 1px; | ||
| 175 | margin-left: 0px; | ||
| 176 | margin-right: -4px; | ||
| 177 | margin-bottom: 4px; | ||
| 178 | } | ||
| 179 | |||
| 180 | QCheckBox#checkboxPlayer1Connected, | ||
| 181 | QCheckBox#checkboxPlayer2Connected, | ||
| 182 | QCheckBox#checkboxPlayer3Connected, | ||
| 183 | QCheckBox#checkboxPlayer4Connected, | ||
| 184 | QCheckBox#checkboxPlayer5Connected, | ||
| 185 | QCheckBox#checkboxPlayer6Connected, | ||
| 186 | QCheckBox#checkboxPlayer7Connected, | ||
| 187 | QCheckBox#checkboxPlayer8Connected { | ||
| 188 | spacing: 0px; | ||
| 189 | } | ||
| 190 | |||
| 191 | QWidget#Player1LEDs QCheckBox, | ||
| 192 | QWidget#Player2LEDs QCheckBox, | ||
| 193 | QWidget#Player3LEDs QCheckBox, | ||
| 194 | QWidget#Player4LEDs QCheckBox, | ||
| 195 | QWidget#Player5LEDs QCheckBox, | ||
| 196 | QWidget#Player6LEDs QCheckBox, | ||
| 197 | QWidget#Player7LEDs QCheckBox, | ||
| 198 | QWidget#Player8LEDs QCheckBox { | ||
| 199 | spacing: 0px; | ||
| 200 | } | ||
| 201 | |||
| 202 | QWidget#Player1LEDs QCheckBox::indicator, | ||
| 203 | QWidget#Player2LEDs QCheckBox::indicator, | ||
| 204 | QWidget#Player3LEDs QCheckBox::indicator, | ||
| 205 | QWidget#Player4LEDs QCheckBox::indicator, | ||
| 206 | QWidget#Player5LEDs QCheckBox::indicator, | ||
| 207 | QWidget#Player6LEDs QCheckBox::indicator, | ||
| 208 | QWidget#Player7LEDs QCheckBox::indicator, | ||
| 209 | QWidget#Player8LEDs QCheckBox::indicator { | ||
| 210 | width: 6px; | ||
| 211 | height: 6px; | ||
| 212 | margin-left: 0px; | ||
| 213 | } | ||
| 214 | |||
| 215 | QWidget#bottomPerGameInput QCheckBox#checkboxPlayer1Connected::indicator, | ||
| 216 | QWidget#bottomPerGameInput QCheckBox#checkboxPlayer2Connected::indicator, | ||
| 217 | QWidget#bottomPerGameInput QCheckBox#checkboxPlayer3Connected::indicator, | ||
| 218 | QWidget#bottomPerGameInput QCheckBox#checkboxPlayer4Connected::indicator, | ||
| 219 | QWidget#bottomPerGameInput QCheckBox#checkboxPlayer5Connected::indicator, | ||
| 220 | QWidget#bottomPerGameInput QCheckBox#checkboxPlayer6Connected::indicator, | ||
| 221 | QWidget#bottomPerGameInput QCheckBox#checkboxPlayer7Connected::indicator, | ||
| 222 | QWidget#bottomPerGameInput QCheckBox#checkboxPlayer8Connected::indicator { | ||
| 223 | width: 12px; | ||
| 224 | height: 12px; | ||
| 225 | } | ||
| 226 | |||
| 227 | QCheckBox#checkboxPlayer1Connected::indicator, | ||
| 228 | QCheckBox#checkboxPlayer2Connected::indicator, | ||
| 229 | QCheckBox#checkboxPlayer3Connected::indicator, | ||
| 230 | QCheckBox#checkboxPlayer4Connected::indicator, | ||
| 231 | QCheckBox#checkboxPlayer5Connected::indicator, | ||
| 232 | QCheckBox#checkboxPlayer6Connected::indicator, | ||
| 233 | QCheckBox#checkboxPlayer7Connected::indicator, | ||
| 234 | QCheckBox#checkboxPlayer8Connected::indicator { | ||
| 235 | width: 14px; | ||
| 236 | height: 14px; | ||
| 237 | } | ||
| 238 | |||
| 239 | QGroupBox#groupPlayer1Connected::indicator, | ||
| 240 | QGroupBox#groupPlayer2Connected::indicator, | ||
| 241 | QGroupBox#groupPlayer3Connected::indicator, | ||
| 242 | QGroupBox#groupPlayer4Connected::indicator, | ||
| 243 | QGroupBox#groupPlayer5Connected::indicator, | ||
| 244 | QGroupBox#groupPlayer6Connected::indicator, | ||
| 245 | QGroupBox#groupPlayer7Connected::indicator, | ||
| 246 | QGroupBox#groupPlayer8Connected::indicator { | ||
| 247 | width: 16px; | ||
| 248 | height: 16px; | ||
| 249 | } | ||
| 250 | |||
| 251 | QWidget#Player1LEDs QCheckBox::indicator:checked, | ||
| 252 | QWidget#Player2LEDs QCheckBox::indicator:checked, | ||
| 253 | QWidget#Player3LEDs QCheckBox::indicator:checked, | ||
| 254 | QWidget#Player4LEDs QCheckBox::indicator:checked, | ||
| 255 | QWidget#Player5LEDs QCheckBox::indicator:checked, | ||
| 256 | QWidget#Player6LEDs QCheckBox::indicator:checked, | ||
| 257 | QWidget#Player7LEDs QCheckBox::indicator:checked, | ||
| 258 | QWidget#Player8LEDs QCheckBox::indicator:checked, | ||
| 259 | QGroupBox#groupPlayer1Connected::indicator:checked, | ||
| 260 | QGroupBox#groupPlayer2Connected::indicator:checked, | ||
| 261 | QGroupBox#groupPlayer3Connected::indicator:checked, | ||
| 262 | QGroupBox#groupPlayer4Connected::indicator:checked, | ||
| 263 | QGroupBox#groupPlayer5Connected::indicator:checked, | ||
| 264 | QGroupBox#groupPlayer6Connected::indicator:checked, | ||
| 265 | QGroupBox#groupPlayer7Connected::indicator:checked, | ||
| 266 | QGroupBox#groupPlayer8Connected::indicator:checked, | ||
| 267 | QCheckBox#checkboxPlayer1Connected::indicator:checked, | ||
| 268 | QCheckBox#checkboxPlayer2Connected::indicator:checked, | ||
| 269 | QCheckBox#checkboxPlayer3Connected::indicator:checked, | ||
| 270 | QCheckBox#checkboxPlayer4Connected::indicator:checked, | ||
| 271 | QCheckBox#checkboxPlayer5Connected::indicator:checked, | ||
| 272 | QCheckBox#checkboxPlayer6Connected::indicator:checked, | ||
| 273 | QCheckBox#checkboxPlayer7Connected::indicator:checked, | ||
| 274 | QCheckBox#checkboxPlayer8Connected::indicator:checked, | ||
| 275 | QGroupBox#groupConnectedController::indicator:checked { | ||
| 276 | border-radius: 2px; | ||
| 277 | border: 1px solid #929192; | ||
| 278 | background: #39ff14; | ||
| 279 | image: none; | ||
| 280 | } | ||
| 281 | |||
| 282 | QWidget#Player1LEDs QCheckBox::indicator:unchecked, | ||
| 283 | QWidget#Player2LEDs QCheckBox::indicator:unchecked, | ||
| 284 | QWidget#Player3LEDs QCheckBox::indicator:unchecked, | ||
| 285 | QWidget#Player4LEDs QCheckBox::indicator:unchecked, | ||
| 286 | QWidget#Player5LEDs QCheckBox::indicator:unchecked, | ||
| 287 | QWidget#Player6LEDs QCheckBox::indicator:unchecked, | ||
| 288 | QWidget#Player7LEDs QCheckBox::indicator:unchecked, | ||
| 289 | QWidget#Player8LEDs QCheckBox::indicator:unchecked, | ||
| 290 | QGroupBox#groupPlayer1Connected::indicator:unchecked, | ||
| 291 | QGroupBox#groupPlayer2Connected::indicator:unchecked, | ||
| 292 | QGroupBox#groupPlayer3Connected::indicator:unchecked, | ||
| 293 | QGroupBox#groupPlayer4Connected::indicator:unchecked, | ||
| 294 | QGroupBox#groupPlayer5Connected::indicator:unchecked, | ||
| 295 | QGroupBox#groupPlayer6Connected::indicator:unchecked, | ||
| 296 | QGroupBox#groupPlayer7Connected::indicator:unchecked, | ||
| 297 | QGroupBox#groupPlayer8Connected::indicator:unchecked, | ||
| 298 | QCheckBox#checkboxPlayer1Connected::indicator:unchecked, | ||
| 299 | QCheckBox#checkboxPlayer2Connected::indicator:unchecked, | ||
| 300 | QCheckBox#checkboxPlayer3Connected::indicator:unchecked, | ||
| 301 | QCheckBox#checkboxPlayer4Connected::indicator:unchecked, | ||
| 302 | QCheckBox#checkboxPlayer5Connected::indicator:unchecked, | ||
| 303 | QCheckBox#checkboxPlayer6Connected::indicator:unchecked, | ||
| 304 | QCheckBox#checkboxPlayer7Connected::indicator:unchecked, | ||
| 305 | QCheckBox#checkboxPlayer8Connected::indicator:unchecked, | ||
| 306 | QGroupBox#groupConnectedController::indicator:unchecked { | ||
| 307 | border-radius: 2px; | ||
| 308 | border: 1px solid #929192; | ||
| 309 | background: transparent; | ||
| 310 | image: none; | ||
| 311 | } | ||
| 312 | |||
| 313 | QWidget#controllerPlayer1, | ||
| 314 | QWidget#controllerPlayer2, | ||
| 315 | QWidget#controllerPlayer3, | ||
| 316 | QWidget#controllerPlayer4, | ||
| 317 | QWidget#controllerPlayer5, | ||
| 318 | QWidget#controllerPlayer6, | ||
| 319 | QWidget#controllerPlayer7, | ||
| 320 | QWidget#controllerPlayer8 { | ||
| 321 | background: transparent; | ||
| 322 | } | ||
| 323 | |||
| 324 | QDialog#QtSoftwareKeyboardDialog, | ||
| 325 | QStackedWidget#topOSK { | ||
| 326 | background: rgba(51, 51, 51, .9); | ||
| 327 | } | ||
| 328 | |||
| 329 | |||
| 330 | QDialog#OverlayDialog, | ||
| 331 | QStackedWidget#stackedDialog { | ||
| 332 | background: rgba(51, 51, 51, .7); | ||
| 333 | } | ||
| 334 | |||
| 335 | QWidget#boxOSK, | ||
| 336 | QWidget#lineOSK, | ||
| 337 | QWidget#richDialog, | ||
| 338 | QWidget#lineDialog { | ||
| 339 | background: transparent; | ||
| 340 | } | ||
| 341 | |||
| 342 | QStackedWidget#bottomOSK, | ||
| 343 | QWidget#contentDialog, | ||
| 344 | QWidget#contentRichDialog { | ||
| 345 | background: rgba(240, 240, 240, 1); | ||
| 346 | } | ||
| 347 | |||
| 348 | QWidget#contentDialog, | ||
| 349 | QWidget#contentRichDialog { | ||
| 350 | margin: 5px; | ||
| 351 | border-radius: 6px; | ||
| 352 | } | ||
| 353 | |||
| 354 | QWidget#buttonsDialog, | ||
| 355 | QWidget#buttonsRichDialog { | ||
| 356 | margin: 5px; | ||
| 357 | border-top: 2px solid rgba(44, 44, 44, 1); | ||
| 358 | } | ||
| 359 | |||
| 360 | QWidget#legendOSKnum { | ||
| 361 | border-top: 1px solid rgba(44, 44, 44, 1); | ||
| 362 | } | ||
| 363 | |||
| 364 | QStackedWidget#stackedDialog QTextBrowser QScrollBar::vertical { | ||
| 365 | background: #cdcdcd; | ||
| 366 | width: 15px; | ||
| 367 | margin: 15px 3px 15px 3px; | ||
| 368 | border: 1px transparent; | ||
| 369 | border-radius: 4px; | ||
| 370 | } | ||
| 371 | |||
| 372 | QStackedWidget#stackedDialog QTextBrowser QScrollBar::horizoncal { | ||
| 373 | background: #cdcdcd; | ||
| 374 | height: 15px; | ||
| 375 | margin: 3px 15px 3px 15px; | ||
| 376 | border: 1px transparent; | ||
| 377 | border-radius: 4px; | ||
| 378 | } | ||
| 379 | |||
| 380 | QStackedWidget#stackedDialog QTextBrowser QScrollBar::handle { | ||
| 381 | background: #fff; | ||
| 382 | border-radius: 4px; | ||
| 383 | min-height: 5px; | ||
| 384 | min-width: 5px; | ||
| 385 | } | ||
| 386 | |||
| 387 | QStackedWidget#stackedDialog QTextBrowser QScrollBar::add-line, | ||
| 388 | QStackedWidget#stackedDialog QTextBrowser QScrollBar::sub-line, | ||
| 389 | QStackedWidget#stackedDialog QTextBrowser QScrollBar::add-page, | ||
| 390 | QStackedWidget#stackedDialog QTextBrowser QScrollBar::sub-page { | ||
| 391 | background: none; | ||
| 392 | } | ||
| 393 | |||
| 394 | QWidget#inputOSK { | ||
| 395 | border-bottom: 3px solid rgba(255, 255, 255, .9); | ||
| 396 | } | ||
| 397 | |||
| 398 | QWidget#inputOSK QLineEdit { | ||
| 399 | background: transparent; | ||
| 400 | border: none; | ||
| 401 | color: #ccc; | ||
| 402 | } | ||
| 403 | |||
| 404 | QWidget#inputBoxOSK { | ||
| 405 | border: 2px solid rgba(255, 255, 255, .9); | ||
| 406 | } | ||
| 407 | |||
| 408 | QWidget#inputBoxOSK QTextEdit { | ||
| 409 | background: transparent; | ||
| 410 | border: none; | ||
| 411 | color: #ccc; | ||
| 412 | } | ||
| 413 | |||
| 414 | QWidget#richDialog QTextBrowser { | ||
| 415 | background: transparent; | ||
| 416 | border: none; | ||
| 417 | padding: 35px 65px; | ||
| 418 | } | ||
| 419 | |||
| 420 | |||
| 421 | QWidget#lineOSK QLabel#label_header { | ||
| 422 | color: #f0f0f0; | ||
| 423 | } | ||
| 424 | |||
| 425 | QWidget#lineOSK QLabel#label_sub, | ||
| 426 | QWidget#lineOSK QLabel#label_characters, | ||
| 427 | QWidget#boxOSK QLabel#label_characters_box { | ||
| 428 | color: #ccc; | ||
| 429 | } | ||
| 430 | |||
| 431 | QWidget#contentDialog QLabel#label_title, | ||
| 432 | QWidget#contentRichDialog QLabel#label_title_rich { | ||
| 433 | color: #888; | ||
| 434 | } | ||
| 435 | |||
| 436 | QWidget#contentDialog QLabel#label_dialog { | ||
| 437 | padding: 20px 65px; | ||
| 438 | } | ||
| 439 | |||
| 440 | QWidget#contentDialog QLabel#label_title, | ||
| 441 | QWidget#contentRichDialog QLabel#label_title_rich { | ||
| 442 | padding: 0px 65px; | ||
| 443 | } | ||
| 444 | |||
| 445 | QDialog#OverlayDialog QPushButton { | ||
| 446 | color: rgba(49, 79, 239, 1); | ||
| 447 | background: transparent; | ||
| 448 | border: none; | ||
| 449 | padding: 0px; | ||
| 450 | min-width: 0px; | ||
| 451 | } | ||
| 452 | |||
| 453 | QDialog#OverlayDialog QPushButton:focus, | ||
| 454 | QDialog#OverlayDialog QPushButton:hover { | ||
| 455 | color: rgba(49, 79, 239, 1); | ||
| 456 | background: rgba(255, 255, 255, 1); | ||
| 457 | border: 5px solid rgba(148, 250, 202, 1); | ||
| 458 | border-radius: 6px; | ||
| 459 | outline: none; | ||
| 460 | } | ||
| 461 | |||
| 462 | QDialog#OverlayDialog QPushButton:pressed { | ||
| 463 | color: rgba(240, 240, 240, 1); | ||
| 464 | background: rgba(150, 150, 150, 1); | ||
| 465 | border: 5px solid rgba(148, 250, 202, 1); | ||
| 466 | border-radius: 6px; | ||
| 467 | outline: none; | ||
| 468 | } | ||
| 469 | |||
| 470 | QDialog#QtSoftwareKeyboardDialog QPushButton { | ||
| 471 | background: rgba(232, 232, 232, 1); | ||
| 472 | border: 2px solid rgba(240, 240, 240, 1); | ||
| 473 | } | ||
| 474 | |||
| 475 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift, | ||
| 476 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return, | ||
| 477 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space, | ||
| 478 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift, | ||
| 479 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift, | ||
| 480 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift { | ||
| 481 | background: rgba(218, 218, 218, 1); | ||
| 482 | border: 2px solid rgba(240, 240, 240, 1); | ||
| 483 | } | ||
| 484 | |||
| 485 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace, | ||
| 486 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift, | ||
| 487 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num { | ||
| 488 | color: rgba(240, 240, 240, 1); | ||
| 489 | background: rgba(44, 44, 44, 1); | ||
| 490 | border: 2px solid rgba(240, 240, 240, 1); | ||
| 491 | } | ||
| 492 | |||
| 493 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok, | ||
| 494 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift, | ||
| 495 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num { | ||
| 496 | color: rgba(240, 240, 240, 1); | ||
| 497 | background: rgba(49, 79, 239, 1); | ||
| 498 | border: 2px solid rgba(240, 240, 240, 1); | ||
| 499 | } | ||
| 500 | |||
| 501 | QDialog#QtSoftwareKeyboardDialog QPushButton:focus, | ||
| 502 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:focus, | ||
| 503 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift:focus, | ||
| 504 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:focus, | ||
| 505 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:focus, | ||
| 506 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:focus, | ||
| 507 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:focus, | ||
| 508 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift:focus, | ||
| 509 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:focus, | ||
| 510 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift:focus, | ||
| 511 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:focus, | ||
| 512 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:focus, | ||
| 513 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:focus, | ||
| 514 | |||
| 515 | QDialog#QtSoftwareKeyboardDialog QPushButton:hover, | ||
| 516 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:hover, | ||
| 517 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift:hover, | ||
| 518 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:hover, | ||
| 519 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:hover, | ||
| 520 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:hover, | ||
| 521 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:hover, | ||
| 522 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift:hover, | ||
| 523 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:hover, | ||
| 524 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift:hover, | ||
| 525 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:hover, | ||
| 526 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:hover, | ||
| 527 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:hover { | ||
| 528 | color: rgba(0, 0, 0, 1); | ||
| 529 | background: rgba(255, 255, 255, 1); | ||
| 530 | border: 5px solid rgba(148, 250, 202, 1); | ||
| 531 | border-radius: 6px; | ||
| 532 | outline: none; | ||
| 533 | } | ||
| 534 | |||
| 535 | QDialog#QtSoftwareKeyboardDialog QPushButton:pressed, | ||
| 536 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:pressed, | ||
| 537 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift:pressed, | ||
| 538 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:pressed, | ||
| 539 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:pressed, | ||
| 540 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:pressed, | ||
| 541 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:pressed, | ||
| 542 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift:pressed, | ||
| 543 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:pressed, | ||
| 544 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift:pressed, | ||
| 545 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:pressed, | ||
| 546 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:pressed, | ||
| 547 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:pressed { | ||
| 548 | color: rgba(240, 240, 240, 1); | ||
| 549 | background: rgba(150, 150, 150, 1); | ||
| 550 | border: 5px solid rgba(148, 250, 202, 1); | ||
| 551 | border-radius: 6px; | ||
| 552 | } | ||
| 553 | |||
| 554 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace, | ||
| 555 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift, | ||
| 556 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num { | ||
| 557 | image: url(:/overlay/osk_button_B.png); | ||
| 558 | image-position: right; | ||
| 559 | qproperty-icon: url(:/overlay/osk_button_backspace.png); | ||
| 560 | qproperty-iconSize: 36px; | ||
| 561 | } | ||
| 562 | |||
| 563 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space, | ||
| 564 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift { | ||
| 565 | image: url(:/overlay/osk_button_Y.png); | ||
| 566 | image-position: right; | ||
| 567 | } | ||
| 568 | |||
| 569 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok, | ||
| 570 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift, | ||
| 571 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num { | ||
| 572 | image: url(:/overlay/osk_button_plus.png); | ||
| 573 | image-position: right; | ||
| 574 | } | ||
| 575 | |||
| 576 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift { | ||
| 577 | image: url(:/overlay/osk_button_shift_lock_off.png); | ||
| 578 | image-position: left; | ||
| 579 | qproperty-icon: url(:/overlay/osk_button_shift.png); | ||
| 580 | qproperty-iconSize: 36px; | ||
| 581 | } | ||
| 582 | |||
| 583 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_shift_shift { | ||
| 584 | image: url(:/overlay/osk_button_shift_lock_off.png); | ||
| 585 | image-position: left; | ||
| 586 | qproperty-icon: url(:/overlay/osk_button_shift_on.png); | ||
| 587 | qproperty-iconSize: 36px; | ||
| 588 | } | ||
| 589 | |||
| 590 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_left_bracket, | ||
| 591 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_right_bracket, | ||
| 592 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_left_parenthesis, | ||
| 593 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_right_parenthesis { | ||
| 594 | padding-bottom: 7px; | ||
| 595 | } | ||
| 596 | |||
| 597 | QDialog#QtSoftwareKeyboardDialog QWidget#titleOSK QLabel { | ||
| 598 | background: transparent; | ||
| 599 | color: #ccc; | ||
| 600 | } | ||
| 601 | |||
| 602 | QDialog#QtSoftwareKeyboardDialog QWidget#button_L, | ||
| 603 | QDialog#QtSoftwareKeyboardDialog QWidget#button_L_shift, | ||
| 604 | QDialog#QtSoftwareKeyboardDialog QWidget#button_L_num { | ||
| 605 | image: url(:/overlay/button_L.png); | ||
| 606 | } | ||
| 607 | |||
| 608 | QDialog#QtSoftwareKeyboardDialog QWidget#arrow_left, | ||
| 609 | QDialog#QtSoftwareKeyboardDialog QWidget#arrow_left_shift, | ||
| 610 | QDialog#QtSoftwareKeyboardDialog QWidget#arrow_left_num { | ||
| 611 | image: url(:/overlay/arrow_left.png); | ||
| 612 | } | ||
| 613 | |||
| 614 | QDialog#QtSoftwareKeyboardDialog QWidget#button_R, | ||
| 615 | QDialog#QtSoftwareKeyboardDialog QWidget#button_R_shift, | ||
| 616 | QDialog#QtSoftwareKeyboardDialog QWidget#button_R_num { | ||
| 617 | image: url(:/overlay/button_R.png); | ||
| 618 | } | ||
| 619 | |||
| 620 | QDialog#QtSoftwareKeyboardDialog QWidget#arrow_right, | ||
| 621 | QDialog#QtSoftwareKeyboardDialog QWidget#arrow_right_shift, | ||
| 622 | QDialog#QtSoftwareKeyboardDialog QWidget#arrow_right_num { | ||
| 623 | image: url(:/overlay/arrow_right.png); | ||
| 624 | } | ||
| 625 | |||
| 626 | QDialog#QtSoftwareKeyboardDialog QWidget#button_press_stick, | ||
| 627 | QDialog#QtSoftwareKeyboardDialog QWidget#button_press_stick_shift { | ||
| 628 | image: url(:/overlay/button_press_stick.png); | ||
| 629 | } | ||
| 630 | |||
| 631 | QDialog#QtSoftwareKeyboardDialog QWidget#button_X, | ||
| 632 | QDialog#QtSoftwareKeyboardDialog QWidget#button_X_shift, | ||
| 633 | QDialog#QtSoftwareKeyboardDialog QWidget#button_X_num { | ||
| 634 | image: url(:/overlay/button_X.png); | ||
| 635 | } | ||
| 636 | |||
| 637 | QDialog#QtSoftwareKeyboardDialog QWidget#button_A, | ||
| 638 | QDialog#QtSoftwareKeyboardDialog QWidget#button_A_shift, | ||
| 639 | QDialog#QtSoftwareKeyboardDialog QWidget#button_A_num { | ||
| 640 | image: url(:/overlay/button_A.png); | ||
| 641 | } | ||
| 642 | |||
| 643 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:disabled, | ||
| 644 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:disabled, | ||
| 645 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:disabled, | ||
| 646 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:disabled, | ||
| 647 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:disabled, | ||
| 648 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:disabled, | ||
| 649 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return_shift:disabled, | ||
| 650 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:disabled, | ||
| 651 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:disabled, | ||
| 652 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:disabled { | ||
| 653 | color: rgba(164, 164, 164, 1); | ||
| 654 | background-color: rgba(218, 218, 218, 1); | ||
| 655 | } | ||
| 656 | |||
| 657 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_at:disabled, | ||
| 658 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_slash:disabled, | ||
| 659 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_percent:disabled, | ||
| 660 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_1:disabled, | ||
| 661 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_2:disabled, | ||
| 662 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_3:disabled, | ||
| 663 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_4:disabled, | ||
| 664 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_5:disabled, | ||
| 665 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_6:disabled, | ||
| 666 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_7:disabled, | ||
| 667 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_8:disabled, | ||
| 668 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_9:disabled, | ||
| 669 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_0:disabled, | ||
| 670 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_return:disabled { | ||
| 671 | color: rgba(164, 164, 164, 1); | ||
| 672 | } | ||
| 673 | |||
| 674 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok:disabled, | ||
| 675 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_shift:disabled, | ||
| 676 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_ok_num:disabled { | ||
| 677 | image: url(:/overlay/osk_button_plus_disabled.png); | ||
| 678 | } | ||
| 679 | |||
| 680 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace:disabled, | ||
| 681 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_shift:disabled, | ||
| 682 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_backspace_num:disabled { | ||
| 683 | image: url(:/overlay/osk_button_B_disabled.png); | ||
| 684 | } | ||
| 685 | |||
| 686 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space:disabled, | ||
| 687 | QDialog#QtSoftwareKeyboardDialog QPushButton#button_space_shift:disabled { | ||
| 688 | image: url(:/overlay/osk_button_Y_disabled.png); | ||
| 689 | } | ||
diff --git a/dist/qt_themes/qdarkstyle/icons/16x16/refresh.png b/dist/qt_themes/qdarkstyle/icons/16x16/refresh.png deleted file mode 100644 index d4afd76f9..000000000 --- a/dist/qt_themes/qdarkstyle/icons/16x16/refresh.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle/icons/48x48/plus.png b/dist/qt_themes/qdarkstyle/icons/48x48/list-add.png index 16cc8b4f4..16cc8b4f4 100644 --- a/dist/qt_themes/qdarkstyle/icons/48x48/plus.png +++ b/dist/qt_themes/qdarkstyle/icons/48x48/list-add.png | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle/style.qrc b/dist/qt_themes/qdarkstyle/style.qrc index f770e09fd..a89fb26c6 100644 --- a/dist/qt_themes/qdarkstyle/style.qrc +++ b/dist/qt_themes/qdarkstyle/style.qrc | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | <file alias="48x48/chip.png">icons/48x48/chip.png</file> | 10 | <file alias="48x48/chip.png">icons/48x48/chip.png</file> |
| 11 | <file alias="48x48/folder.png">icons/48x48/folder.png</file> | 11 | <file alias="48x48/folder.png">icons/48x48/folder.png</file> |
| 12 | <file alias="48x48/no_avatar.png">icons/48x48/no_avatar.png</file> | 12 | <file alias="48x48/no_avatar.png">icons/48x48/no_avatar.png</file> |
| 13 | <file alias="48x48/plus.png">icons/48x48/plus.png</file> | 13 | <file alias="48x48/list-add.png">icons/48x48/list-add.png</file> |
| 14 | <file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file> | 14 | <file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file> |
| 15 | <file alias="48x48/star.png">icons/48x48/star.png</file> | 15 | <file alias="48x48/star.png">icons/48x48/star.png</file> |
| 16 | <file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file> | 16 | <file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file> |
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/lock.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/lock.png deleted file mode 100644 index c750a39e8..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/lock.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/refresh.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/refresh.png deleted file mode 100644 index d4afd76f9..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/refresh.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/view-refresh.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/view-refresh.png deleted file mode 100644 index d4afd76f9..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/16x16/view-refresh.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/256x256/plus_folder.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/256x256/plus_folder.png deleted file mode 100644 index 303f9a321..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/256x256/plus_folder.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/bad_folder.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/bad_folder.png deleted file mode 100644 index 4a9709623..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/bad_folder.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/chip.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/chip.png deleted file mode 100644 index 973fabd05..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/chip.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/folder.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/folder.png deleted file mode 100644 index 0f1e987d6..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/folder.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/plus.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/plus.png deleted file mode 100644 index 16cc8b4f4..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/plus.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/sd_card.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/sd_card.png deleted file mode 100644 index 0291c6542..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/sd_card.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/star.png b/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/star.png deleted file mode 100644 index 90d423a1d..000000000 --- a/dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/star.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/style.qrc b/dist/qt_themes/qdarkstyle_midnight_blue/style.qrc index 142dd3288..dc3d7fecb 100644 --- a/dist/qt_themes/qdarkstyle_midnight_blue/style.qrc +++ b/dist/qt_themes/qdarkstyle_midnight_blue/style.qrc | |||
| @@ -1,15 +1,16 @@ | |||
| 1 | <RCC> | 1 | <RCC> |
| 2 | <qresource prefix="icons/qdarkstyle_midnight_blue"> | 2 | <qresource prefix="icons/qdarkstyle_midnight_blue"> |
| 3 | <file alias="index.theme">icons/index.theme</file> | 3 | <file alias="index.theme">icons/index.theme</file> |
| 4 | <file alias="16x16/lock.png">icons/16x16/lock.png</file> | 4 | <file alias="16x16/lock.png">../qdarkstyle/icons/16x16/lock.png</file> |
| 5 | <file alias="16x16/view-refresh.png">icons/16x16/view-refresh.png</file> | 5 | <file alias="16x16/view-refresh.png">../qdarkstyle/icons/16x16/view-refresh.png</file> |
| 6 | <file alias="48x48/bad_folder.png">icons/48x48/bad_folder.png</file> | 6 | <file alias="48x48/bad_folder.png">../qdarkstyle/icons/48x48/bad_folder.png</file> |
| 7 | <file alias="48x48/chip.png">icons/48x48/chip.png</file> | 7 | <file alias="48x48/chip.png">../qdarkstyle/icons/48x48/chip.png</file> |
| 8 | <file alias="48x48/folder.png">icons/48x48/folder.png</file> | 8 | <file alias="48x48/folder.png">../qdarkstyle/icons/48x48/folder.png</file> |
| 9 | <file alias="48x48/plus.png">icons/48x48/plus.png</file> | 9 | <file alias="48x48/no_avatar.png">../qdarkstyle/icons/48x48/no_avatar.png</file> |
| 10 | <file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file> | 10 | <file alias="48x48/list-add.png">../qdarkstyle/icons/48x48/list-add.png</file> |
| 11 | <file alias="48x48/star.png">icons/48x48/star.png</file> | 11 | <file alias="48x48/sd_card.png">../qdarkstyle/icons/48x48/sd_card.png</file> |
| 12 | <file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file> | 12 | <file alias="48x48/star.png">../qdarkstyle/icons/48x48/star.png</file> |
| 13 | <file alias="256x256/plus_folder.png">../qdarkstyle/icons/256x256/plus_folder.png</file> | ||
| 13 | </qresource> | 14 | </qresource> |
| 14 | <qresource prefix="qss_icons"> | 15 | <qresource prefix="qss_icons"> |
| 15 | <file>rc/arrow_down.png</file> | 16 | <file>rc/arrow_down.png</file> |
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 041e6ac11..c4b1f65bd 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp | |||
| @@ -286,7 +286,7 @@ void GameList::OnUpdateThemedIcons() { | |||
| 286 | } | 286 | } |
| 287 | case GameListItemType::AddDir: | 287 | case GameListItemType::AddDir: |
| 288 | child->setData( | 288 | child->setData( |
| 289 | QIcon::fromTheme(QStringLiteral("plus")) | 289 | QIcon::fromTheme(QStringLiteral("list-add")) |
| 290 | .pixmap(icon_size) | 290 | .pixmap(icon_size) |
| 291 | .scaled(icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), | 291 | .scaled(icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), |
| 292 | Qt::DecorationRole); | 292 | Qt::DecorationRole); |
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index e7667cf60..0e19be22d 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h | |||
| @@ -294,7 +294,7 @@ public: | |||
| 294 | 294 | ||
| 295 | const int icon_size = UISettings::values.folder_icon_size.GetValue(); | 295 | const int icon_size = UISettings::values.folder_icon_size.GetValue(); |
| 296 | 296 | ||
| 297 | setData(QIcon::fromTheme(QStringLiteral("plus")) | 297 | setData(QIcon::fromTheme(QStringLiteral("list-add")) |
| 298 | .pixmap(icon_size) | 298 | .pixmap(icon_size) |
| 299 | .scaled(icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), | 299 | .scaled(icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), |
| 300 | Qt::DecorationRole); | 300 | Qt::DecorationRole); |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index f8c234082..e473ac6da 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -257,6 +257,18 @@ static QString PrettyProductName() { | |||
| 257 | return QSysInfo::prettyProductName(); | 257 | return QSysInfo::prettyProductName(); |
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | bool GMainWindow::check_dark_mode() { | ||
| 261 | #ifdef __linux__ | ||
| 262 | const QPalette test_palette(qApp->palette()); | ||
| 263 | const QColor text_color = test_palette.color(QPalette::Active, QPalette::Text); | ||
| 264 | const QColor window_color = test_palette.color(QPalette::Active, QPalette::Window); | ||
| 265 | return (text_color.value() > window_color.value()); | ||
| 266 | #else | ||
| 267 | // TODO: Windows | ||
| 268 | return false; | ||
| 269 | #endif // __linux__ | ||
| 270 | } | ||
| 271 | |||
| 260 | GMainWindow::GMainWindow(bool has_broken_vulkan) | 272 | GMainWindow::GMainWindow(bool has_broken_vulkan) |
| 261 | : ui{std::make_unique<Ui::MainWindow>()}, system{std::make_unique<Core::System>()}, | 273 | : ui{std::make_unique<Ui::MainWindow>()}, system{std::make_unique<Core::System>()}, |
| 262 | input_subsystem{std::make_shared<InputCommon::InputSubsystem>()}, | 274 | input_subsystem{std::make_shared<InputCommon::InputSubsystem>()}, |
| @@ -274,6 +286,13 @@ GMainWindow::GMainWindow(bool has_broken_vulkan) | |||
| 274 | ui->setupUi(this); | 286 | ui->setupUi(this); |
| 275 | statusBar()->hide(); | 287 | statusBar()->hide(); |
| 276 | 288 | ||
| 289 | // Check dark mode before a theme is loaded | ||
| 290 | os_dark_mode = check_dark_mode(); | ||
| 291 | startup_icon_theme = QIcon::themeName(); | ||
| 292 | // fallback can only be set once, colorful theme icons are okay on both light/dark | ||
| 293 | QIcon::setFallbackThemeName(QStringLiteral("colorful")); | ||
| 294 | QIcon::setFallbackSearchPaths(QStringList(QStringLiteral(":/icons"))); | ||
| 295 | |||
| 277 | default_theme_paths = QIcon::themeSearchPaths(); | 296 | default_theme_paths = QIcon::themeSearchPaths(); |
| 278 | UpdateUITheme(); | 297 | UpdateUITheme(); |
| 279 | 298 | ||
| @@ -3930,8 +3949,21 @@ void GMainWindow::filterBarSetChecked(bool state) { | |||
| 3930 | emit(OnToggleFilterBar()); | 3949 | emit(OnToggleFilterBar()); |
| 3931 | } | 3950 | } |
| 3932 | 3951 | ||
| 3952 | static void AdjustLinkColor() { | ||
| 3953 | QPalette new_pal(qApp->palette()); | ||
| 3954 | if (UISettings::IsDarkTheme()) { | ||
| 3955 | new_pal.setColor(QPalette::Link, QColor(0, 190, 255, 255)); | ||
| 3956 | } else { | ||
| 3957 | new_pal.setColor(QPalette::Link, QColor(0, 140, 200, 255)); | ||
| 3958 | } | ||
| 3959 | if (qApp->palette().color(QPalette::Link) != new_pal.color(QPalette::Link)) { | ||
| 3960 | qApp->setPalette(new_pal); | ||
| 3961 | } | ||
| 3962 | } | ||
| 3963 | |||
| 3933 | void GMainWindow::UpdateUITheme() { | 3964 | void GMainWindow::UpdateUITheme() { |
| 3934 | const QString default_theme = QStringLiteral("default"); | 3965 | const QString default_theme = |
| 3966 | QString::fromUtf8(UISettings::themes[static_cast<size_t>(Config::default_theme)].second); | ||
| 3935 | QString current_theme = UISettings::values.theme; | 3967 | QString current_theme = UISettings::values.theme; |
| 3936 | QStringList theme_paths(default_theme_paths); | 3968 | QStringList theme_paths(default_theme_paths); |
| 3937 | 3969 | ||
| @@ -3939,6 +3971,23 @@ void GMainWindow::UpdateUITheme() { | |||
| 3939 | current_theme = default_theme; | 3971 | current_theme = default_theme; |
| 3940 | } | 3972 | } |
| 3941 | 3973 | ||
| 3974 | #ifdef _WIN32 | ||
| 3975 | QIcon::setThemeName(current_theme); | ||
| 3976 | AdjustLinkColor(); | ||
| 3977 | #else | ||
| 3978 | if (current_theme == QStringLiteral("default") || current_theme == QStringLiteral("colorful")) { | ||
| 3979 | QIcon::setThemeName(current_theme == QStringLiteral("colorful") ? current_theme | ||
| 3980 | : startup_icon_theme); | ||
| 3981 | QIcon::setThemeSearchPaths(theme_paths); | ||
| 3982 | if (check_dark_mode()) { | ||
| 3983 | current_theme = QStringLiteral("default_dark"); | ||
| 3984 | } | ||
| 3985 | } else { | ||
| 3986 | QIcon::setThemeName(current_theme); | ||
| 3987 | QIcon::setThemeSearchPaths(QStringList(QStringLiteral(":/icons"))); | ||
| 3988 | AdjustLinkColor(); | ||
| 3989 | } | ||
| 3990 | #endif | ||
| 3942 | if (current_theme != default_theme) { | 3991 | if (current_theme != default_theme) { |
| 3943 | QString theme_uri{QStringLiteral(":%1/style.qss").arg(current_theme)}; | 3992 | QString theme_uri{QStringLiteral(":%1/style.qss").arg(current_theme)}; |
| 3944 | QFile f(theme_uri); | 3993 | QFile f(theme_uri); |
| @@ -3961,17 +4010,6 @@ void GMainWindow::UpdateUITheme() { | |||
| 3961 | qApp->setStyleSheet({}); | 4010 | qApp->setStyleSheet({}); |
| 3962 | setStyleSheet({}); | 4011 | setStyleSheet({}); |
| 3963 | } | 4012 | } |
| 3964 | |||
| 3965 | QPalette new_pal(qApp->palette()); | ||
| 3966 | if (UISettings::IsDarkTheme()) { | ||
| 3967 | new_pal.setColor(QPalette::Link, QColor(0, 190, 255, 255)); | ||
| 3968 | } else { | ||
| 3969 | new_pal.setColor(QPalette::Link, QColor(0, 140, 200, 255)); | ||
| 3970 | } | ||
| 3971 | qApp->setPalette(new_pal); | ||
| 3972 | |||
| 3973 | QIcon::setThemeName(current_theme); | ||
| 3974 | QIcon::setThemeSearchPaths(theme_paths); | ||
| 3975 | } | 4013 | } |
| 3976 | 4014 | ||
| 3977 | void GMainWindow::LoadTranslation() { | 4015 | void GMainWindow::LoadTranslation() { |
| @@ -4022,6 +4060,26 @@ void GMainWindow::SetDiscordEnabled([[maybe_unused]] bool state) { | |||
| 4022 | discord_rpc->Update(); | 4060 | discord_rpc->Update(); |
| 4023 | } | 4061 | } |
| 4024 | 4062 | ||
| 4063 | void GMainWindow::changeEvent(QEvent* event) { | ||
| 4064 | #ifdef __linux__ | ||
| 4065 | // PaletteChange event appears to only reach so far into the GUI, explicitly asking to | ||
| 4066 | // UpdateUITheme is a decent work around | ||
| 4067 | if (event->type() == QEvent::PaletteChange) { | ||
| 4068 | const QPalette test_palette(qApp->palette()); | ||
| 4069 | const QString current_theme = UISettings::values.theme; | ||
| 4070 | // Keeping eye on QPalette::Window to avoid looping. QPalette::Text might be useful too | ||
| 4071 | static QColor last_window_color; | ||
| 4072 | const QColor window_color = test_palette.color(QPalette::Active, QPalette::Window); | ||
| 4073 | if (last_window_color != window_color && (current_theme == QStringLiteral("default") || | ||
| 4074 | current_theme == QStringLiteral("colorful"))) { | ||
| 4075 | UpdateUITheme(); | ||
| 4076 | } | ||
| 4077 | last_window_color = window_color; | ||
| 4078 | } | ||
| 4079 | #endif // __linux__ | ||
| 4080 | QWidget::changeEvent(event); | ||
| 4081 | } | ||
| 4082 | |||
| 4025 | #ifdef main | 4083 | #ifdef main |
| 4026 | #undef main | 4084 | #undef main |
| 4027 | #endif | 4085 | #endif |
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 23b67a14e..2d1c8857b 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h | |||
| @@ -251,6 +251,7 @@ private: | |||
| 251 | bool ConfirmForceLockedExit(); | 251 | bool ConfirmForceLockedExit(); |
| 252 | void RequestGameExit(); | 252 | void RequestGameExit(); |
| 253 | void RequestGameResume(); | 253 | void RequestGameResume(); |
| 254 | void changeEvent(QEvent* event) override; | ||
| 254 | void closeEvent(QCloseEvent* event) override; | 255 | void closeEvent(QCloseEvent* event) override; |
| 255 | 256 | ||
| 256 | #ifdef __linux__ | 257 | #ifdef __linux__ |
| @@ -392,6 +393,10 @@ private: | |||
| 392 | QTimer mouse_hide_timer; | 393 | QTimer mouse_hide_timer; |
| 393 | QTimer mouse_center_timer; | 394 | QTimer mouse_center_timer; |
| 394 | 395 | ||
| 396 | QString startup_icon_theme; | ||
| 397 | bool os_dark_mode = false; | ||
| 398 | bool check_dark_mode(); | ||
| 399 | |||
| 395 | // FS | 400 | // FS |
| 396 | std::shared_ptr<FileSys::VfsFilesystem> vfs; | 401 | std::shared_ptr<FileSys::VfsFilesystem> vfs; |
| 397 | std::unique_ptr<FileSys::ManualContentProvider> provider; | 402 | std::unique_ptr<FileSys::ManualContentProvider> provider; |