This repository has been archived by the owner. It is now read-only.
Commit 20b584b
committed
Apply new platform palette without overriding app palette
Currently when a palette is set by qt6ct, it can in some cases override
an app-specific palette. It would be nice if qt6ct would only set the
platform palette (i.e. QPlatformTheme::SystemPalette) and still allow
apps to set/adjust their own palette when desired.
Test case: start Audacious and select Dark theme in Audacious settings.
Then in qt6ct configuration, select "dusk" or "sand" color scheme. It
partially applies to Audacious (where it should not) and you end up with
an unusable mix of Audacious's color scheme and qt6ct's.
Port of the qt5ct patch from https://sourceforge.net/p/qt5ct/tickets/97/.
I have been using the patch in both qt5ct and qt6ct for quite some time
and have not seen any ill side effects.1 parent 55dba87 commit 20b584b
File tree
2 files changed
+9
-28
lines changed- src/qt6ct-qtplugin
2 files changed
+9
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | 160 | | |
171 | 161 | | |
172 | 162 | | |
| |||
182 | 172 | | |
183 | 173 | | |
184 | 174 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 175 | | |
192 | 176 | | |
193 | 177 | | |
| |||
209 | 193 | | |
210 | 194 | | |
211 | 195 | | |
| 196 | + | |
212 | 197 | | |
| 198 | + | |
| 199 | + | |
213 | 200 | | |
214 | 201 | | |
215 | 202 | | |
| |||
218 | 205 | | |
219 | 206 | | |
220 | 207 | | |
221 | | - | |
222 | | - | |
223 | 208 | | |
224 | 209 | | |
225 | 210 | | |
| |||
250 | 235 | | |
251 | 236 | | |
252 | 237 | | |
253 | | - | |
254 | | - | |
255 | 238 | | |
256 | 239 | | |
257 | 240 | | |
258 | 241 | | |
| 242 | + | |
259 | 243 | | |
260 | 244 | | |
261 | 245 | | |
262 | 246 | | |
263 | | - | |
| 247 | + | |
264 | 248 | | |
265 | 249 | | |
266 | 250 | | |
| |||
338 | 322 | | |
339 | 323 | | |
340 | 324 | | |
341 | | - | |
342 | | - | |
343 | 325 | | |
344 | 326 | | |
345 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
0 commit comments