Skip to content
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

Unmatching icons #106

Closed
re-hub opened this issue Aug 14, 2022 · 5 comments
Closed

Unmatching icons #106

re-hub opened this issue Aug 14, 2022 · 5 comments

Comments

@re-hub
Copy link

re-hub commented Aug 14, 2022

I was wondering how to change the icon theme. Mine looks like this:

I am using Gnome 42.4 on archlinux

I tried changing org > gnome > desktop > interface > icon-theme in dconf editor but even though it is already "Adwaita" without alteration, kde apps do not honour it.

@grulja
Copy link
Collaborator

grulja commented Aug 15, 2022

I usually configure icons and theme with gnome-tweaks.

Can you run any Qt app in a terminal with QT_LOGGING_RULES='qt.qpa.qgnomeplatform*.debug=true'?

For example QT_LOGGING_RULES='qt.qpa.qgnomeplatform*.debug=true' partitionmanager and include here the output? It should say what icon theme it loaded.

@re-hub
Copy link
Author

re-hub commented Aug 15, 2022

Thanks for looking into this!

It says "Adwaita" for icon theme but that is not what the programme uses, it is still breeze-light icons.

The output is:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.qgnomeplatform: String name:  "Noto Sans 12"
qt.qpa.qgnomeplatform: Font name:  "Noto Sans"  (size  12 )
qt.qpa.qgnomeplatform: String name:  "Hack 12"
qt.qpa.qgnomeplatform: Monospace font name:  "Hack"  (size  12 )
qt.qpa.qgnomeplatform: String name:  "Noto Sans 12"
qt.qpa.qgnomeplatform: TitleBar font name:  "Noto Sans"  (size  12 )
qt.qpa.qgnomeplatform: Cursor blink time:  1200
qt.qpa.qgnomeplatform: Double click time:  400
qt.qpa.qgnomeplatform: Long press time:  500
qt.qpa.qgnomeplatform: Double click distance:  5
qt.qpa.qgnomeplatform: Dnd drag threshold:  8
qt.qpa.qgnomeplatform: Password hint timeout:  0
qt.qpa.qgnomeplatform: Icon theme:  "Adwaita"
qt.qpa.qgnomeplatform: Theme name:  "Adwaita-dark"
qt.qpa.qgnomeplatform: Dark version:  yes
Loaded backend plugin:  "pmsfdiskbackendplugin"
"Using backend plugin: pmsfdiskbackendplugin (1)"
"Scanning devices..."
"Device found: SAMSUNG MZVLB256HAHQ-000L7"
getting temp failed for  "/dev/nvme0n1" :  Success
getting powered on time failed for  "/dev/nvme0n1" :  Success
getting power cycles failed for  "/dev/nvme0n1" :  Success
unknown file system type  ""  on  "/dev/nvme0n1p2"
62339175 51466628 4096
144895 22982 4096
"Partition ‘/dev/nvme0n1p3’ is not properly aligned (last sector: 498,953,016, modulo: 825)."
"Device found: SAMSUNG MZVLB256HBHQ-00000"
getting temp failed for  "/dev/nvme1n1" :  Success
getting powered on time failed for  "/dev/nvme1n1" :  Success
getting power cycles failed for  "/dev/nvme1n1" :  Success
"Device found: HGST HTS721010A9E630"
69395711 69370693 4096
"Device found: zram0"
smartctl initialization failed for  "/dev/zram0" :  No such file or directory
error during smart output parsing for  "/dev/zram0" :  No such file or directory
"Scan finished."

@re-hub
Copy link
Author

re-hub commented Aug 15, 2022

I can change the icon theme to breeze dark through gnome tweaks but not to Adwaita. In addition, there is no fallback icon theme so if I choose breeze-dark some icons are just missing in other programmes.

@grulja grulja closed this as completed in e67b629 Aug 16, 2022
@petersaints
Copy link

I think that this issue should be reopened. As someone else mentioned here a couple of months ago, this is still an issue: https://www.reddit.com/r/gnome/comments/111w66x/how_to_fix_broken_darkmode_qt_theming_in_gnome_w/

I also just tested this behavior in a fully up-to-date Fedora 38 install and the result is the same.

QtGnomePlatform uses Adwaita icons by default but whenever it needs an icon that does not exist in Adwaita it falls back to Breeze icons. This would perfectly fine if it detected QGnomePlatform detected that a Dark Theme is being used and it selected the Breeze Dark icon theme instead of the regular Breeze Icon.

@grulja grulja reopened this May 8, 2023
@grulja
Copy link
Collaborator

grulja commented May 11, 2023

It is fixed with #137 (I referenced a wrong bug there) and with https://codereview.qt-project.org/c/qt/qtbase/+/476542.

@grulja grulja closed this as completed May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants