-
Notifications
You must be signed in to change notification settings - Fork 48
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
Lighter (disabled?) text drawn for unfocused views. #126
Comments
I pushed e671e8e, which fixes it for QTreeView, but I was unable to find a solution for QTableView and QListView. They seem to be rendered differently and I already spent hours trying to find a solution. I will keep this opened, but I have no idea at this moment how to fix it. |
Colors in QTreeView and QTableViw are now changing from inactive to active in unforeseeable ways depending on the focus. Maybe caused by the recent commits during Apr 2020 targeting unfocused views? |
The reason why I did it this way is that Qt doesn't distinguish between inactive widget and inactive window. For example you could have a tree view in your app, the app had focus on a different widget and the tree view was grey, looking like the whole application not having focus. To fix that, I just check whether the main window has focus and set inactive palette to have colors from the active one. Why Mixxx use grey color for text when it's active? |
The screenshots were taken with Mixxx in fullscreen mode. I need to check whether switching the window modes affects the behavior. Maybe @ronso0 could provide some insights how the focus handling between different views in Mixxx works. |
Ok, I think I know why this is happening. You probably set some custom color to the view and we change it back to Adwaita default palette when the window looses focus. I will fix it during the weekend. |
Can you try e5dfd0b for the Mixxx issue? |
That works, but I can only get the theme to apply to Qt applications when I run them from KDE... now my fonts are all tiny after changing something in KDE system settings... even erasing ~/.config didn't fix it 😢 |
You can force the theme with QT_STYLE_OVERRIDE=adwaita. No idea why your fonts are tiny, this is unfortunately not related to Adwaita at all. |
Ah, okay. Maybe this helps:
|
@grulja the light text is no longer an issue with KeePassXC 2.6.0 |
Fixed in #183 |
As can be seen in the following kid3-qt screenshot, a ligher grey text is used to draw views that currently don't have focus. This looks odd, and (espcially in kd3-qt's case) makes the app harder to use.
The vie won th eleft also does not have focus, so not sure exactly what is going on. But, if the table-view within the right had side vide gets focus, then its text turns black.
The text was updated successfully, but these errors were encountered: