-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy paste bug in BaseStyle.cpp #4765
Comments
Phantom bug. https://github.com/randrew/phantomstyle |
I've fixed this upstream at randrew/phantomstyle@22c58ee |
You should be able to apply this fix without any visual changes occurring in your UI. I think these are the palette values you're using: keepassxc/src/gui/styles/light/LightStyle.cpp Lines 33 to 39 in 5c69875
keepassxc/src/gui/styles/dark/DarkStyle.cpp Lines 32 to 38 in 5c69875
For these palettes, and my own test palettes, and all of the palettes I've seen in the wild, Thanks for finding this bug. Unrelated aside: I saw that you're using |
Text and WindowText are the same, yes. It's true that QStringLiteral is not optimal for strings which are not necessarily unique, perhaps we could be using QLatin1String or so instead. The reason why these are not numerical colour values is because hex codes are easier to copy-paste in and from graphics applications, where we can tweak and optimise them. |
BTW, @randrew, we just tried Qt 5.15 and it completely fails to apply the palette. I believe this to be a Qt bug, rather major one. |
@phoerious you can use hex literals, which is what those strings are emulating -- just replace @droidmonkey I don't have access to a Qt 5.15 installation right now. Are you saying you tried the KeePassXC code and the palettes didn't apply, or you tried the PhantomStyle code (probably the 'funhouse' project) and it didn't work? (Or both?) |
Good point. We should do that.
That. |
* Fixes keepassxreboot#4765 * Fixes keepassxreboot#4766
Probably second occurrence of
colors[S_text]
should be removedkeepassxc/src/gui/styles/base/BaseStyle.cpp
Lines 398 to 400 in 26ea274
The text was updated successfully, but these errors were encountered: