Bug 493975 - Breeze Icons 6.6 makes `dialog-information` display at too large a size toolbar of Virtual Machine Manager app
Summary: Breeze Icons 6.6 makes `dialog-information` display at too large a size toolb...
Status: RESOLVED FIXED
Alias: None
Product: Breeze
Classification: Plasma
Component: Icons (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: visual-design
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-10-02 16:20 UTC by jackyzy823
Modified: 2025-05-10 00:27 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.16
Sentry Crash Report:


Attachments
virt-manager with breeze icons 6.6 under scale 200% (25.69 KB, image/png)
2024-10-02 16:20 UTC, jackyzy823
Details
virt-manager with breeze icons 6.0 (13.04 KB, image/png)
2024-10-02 16:22 UTC, jackyzy823
Details
virt-manager with breeze icons 6.6 under scale 100% (6.38 KB, image/png)
2024-10-03 04:56 UTC, jackyzy823
Details
virt-manager create vm UI, minus become X with breeze icon 6.6 (24.18 KB, image/png)
2024-10-03 06:05 UTC, jackyzy823
Details
virt-manager create vm UI, correct minus icon with breeze icon 6.0 (21.96 KB, image/png)
2024-10-03 06:06 UTC, jackyzy823
Details
Change from dialog-information to showinfo (7.65 KB, image/png)
2024-10-03 06:22 UTC, jackyzy823
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jackyzy823 2024-10-02 16:20:15 UTC
Created attachment 174322 [details]
virt-manager with breeze icons 6.6 under scale 200%

SUMMARY

Breeze Icons 6.6 makes Virtual machine manager display weird under 200% scale.

STEPS TO REPRODUCE
1. Fedora 40 + KDE
2. Display scale  set to 200% (This is important)
3. breeze-icon-theme-6.6.0-1.fc40.noarch

OBSERVED RESULT

The second icon display weird.
See attachment virt-manager with breeze icons 6.6 

EXPECTED RESULT
After downgrade to breeze-icon-theme-6.0.0-1.fc40.noarch ,the second icon display normally.
See attachment virt-manager with breeze icons 6.0

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora 40 
KDE Plasma Version:  6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION

Some ref:
The icon used by virt-manager is "dialog-information"
https://github.com/virt-manager/virt-manager/blob/2ee2dda124b6d86823e8bbede9701b9473adc2c1/ui/vmwindow.ui#L316
Comment 1 jackyzy823 2024-10-02 16:22:06 UTC
Created attachment 174324 [details]
virt-manager with breeze icons 6.0
Comment 2 Nate Graham 2024-10-02 16:35:36 UTC
virt-manager is definitely using the wrong icon here; `dialog-information` is supposed to be used at a large size in dialogs and popups. The `info` or `showinfo` icons are probably the right ones to use here. If you can communicate that to its developer, it would helpful.

Still, this is a regression and we should fix it. Unfortunately I'm not able to test this because virt-manager doesn't seem to have that icon for me, and I don't seem to be smart enough to figure out how to successfully add a new VM in the app, in case that's a requirement for showing the icon.

There's a chance this is fixed with Frameworks 6.7 already with https://invent.kde.org/frameworks/breeze-icons/-/commit/da53b1d78dee7444b9297016dba4eb8fe428da0b. Any chance you can test that once Frameworks 6.7 is released in a little over a week?
Comment 3 jackyzy823 2024-10-03 04:54:38 UTC
Hi , not sure if it is useful or not.

I use `strace -e openat -f virt-manager` to trace which icon resource is opened.

Here's the result

1. With Breeze icon theme 6.6
    a. 200% ( a big *square* info)
    [pid  6014] openat(AT_FDCWD, "/usr/share/icons/breeze/status/16@3x/dialog-information.svg", O_RDONLY|O_CLOEXEC) = 21

    b. 100% (Display normal, with a correct size *circle* info )
    [pid  6151] openat(AT_FDCWD, "/usr/share/icons/breeze/status/64/dialog-information.svg", O_RDONLY|O_CLOEXEC) = 20

2. With Breeze icons  6.0
    a. 200%
    [pid  6395] openat(AT_FDCWD, "/usr/share/icons/breeze/status/16@2x/dialog-information.svg", O_RDONLY|O_CLOEXEC) = 21

    b. 100%
    [pid  6291] openat(AT_FDCWD, "/usr/share/icons/breeze/status/24/dialog-information.svg", O_RDONLY|O_CLOEXEC) = 20

-----------------------------

I tested the commit (6.7) you mentioned  by replace the content of `/usr/share/icons/breeze/status/ 64/dialog-information.svg` to the commit's one however it seems not work.


------------------------------------

How to test:
1. Using Fedora 40 KDE Spin
2. Install virtmanager via `dnf group install virtualization`
3. Upgrade breeze icons `dnf upgrade breeze-icon-theme` to 6.6
4. make virtmanager work via `systemctl enable --now libvirtd`
5. Set `Display configuration`  -> `Scale` to 200%
6. Open virt-manager and create a dummy VM ,Steps: Menu -> File -> New Virtual Machine -> Manual Install -> Input "fedora"  and select one -> set up memory and cpu ->  Dsiable storage on this vm -> Finish . Then it will auto start the VM , and you  could see the UI.
Comment 4 jackyzy823 2024-10-03 04:56:59 UTC
Created attachment 174348 [details]
virt-manager with breeze icons 6.6 under scale 100%

Under 100% scale, the dialog-information display correctly ( normal size , circle one)
Comment 5 jackyzy823 2024-10-03 06:05:05 UTC
Created attachment 174353 [details]
virt-manager create vm UI, minus become X with breeze icon 6.6

Another virt-manager UI problem due to breeze icon update.

When creating VM, on the CPU/MEM page, the adjust button looks wrong.

See attachments.

Using strace:

I traced to 
```
[pid  5606] openat(AT_FDCWD, "/usr/share/icons/breeze/actions/16@2x/list-remove-symbolic.svg", O_RDONLY|O_CLOEXEC) = 22
[pid  5606] openat(AT_FDCWD, "/usr/share/icons/breeze/actions/16@2x/list-remove-symbolic.svg", O_RDONLY|O_CLOEXEC) = 22
[pid  5606] openat(AT_FDCWD, "/usr/share/icons/breeze/actions/16@2x/list-add-symbolic.svg", O_RDONLY|O_CLOEXEC) = 22
[pid  5606] openat(AT_FDCWD, "/usr/share/icons/breeze/actions/16@2x/list-add-symbolic.svg", O_RDONLY|O_CLOEXEC) = 22
```

Previously list-remove-symbolic is a "-"(minus) mark, now it is a "x" mark.

This may from https://invent.kde.org/frameworks/breeze-icons/-/commit/486a6fcffa4705aaeed2f7c9def0bc5f5d9f40d9

Some Ref:
https://github.com/virt-manager/virt-manager/blob/fe09e8f47e37982aa284c07123124d3f11803941/ui/createvm.ui#L1883
Since it is a GtkSpinButton widget , i think virt-manager project can do nothing on this.
Comment 6 jackyzy823 2024-10-03 06:06:16 UTC
Created attachment 174354 [details]
virt-manager create vm UI, correct minus icon with breeze icon 6.0
Comment 7 jackyzy823 2024-10-03 06:20:28 UTC
Changing `dialog-information` to `showinfo`  in /usr/share/virt-manager/ui/vmwindow.ui  works (under both scale)

However I'm not sure if changing the icon will affect other DE or not.
Comment 8 jackyzy823 2024-10-03 06:22:54 UTC
Created attachment 174355 [details]
Change from dialog-information to showinfo
Comment 9 Nate Graham 2024-10-03 21:34:14 UTC
The issue with the list-remove icon appears to be a bug in GTK, as I can reproduce it in gtk3-widget-factory even with the default Adwaita style. There's even an Adwaita icon meant to be used here that always looks like a minus sign; it should be using that instead of relying on `list-remove` to look like a minus sign. That would be good to report to GTK.
Comment 10 jackyzy823 2024-10-04 03:59:05 UTC
I'm not sure how this is a GTK bug.

As far i can search ,  the Adwaita's list-remove-symbolic https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/blob/master/Adwaita/symbolic/actions/list-remove-symbolic.svg is still minus mark.


Some ref:

For gtk3, spinbutton  still uses list-remove-symbolic
https://github.com/GNOME/gtk/blob/v3.22.20/gtk/gtkspinbutton.c#L815

For gtk4 spinbutton uses value-decrease-symbolic
https://github.com/GNOME/gtk/blob/3b027cf466f7fd606ad2c962cb787dc280ca6642/gtk/gtkspinbutton.c#L1094
Comment 11 Cole Robinson 2024-11-20 20:34:35 UTC
FWIW `virt-manager --connect test:///default` lets you interact with a mock test driver, so you don't need any VMs on the host.
Comment 12 Bug Janitor Service 2025-04-26 11:35:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/breeze-icons/-/merge_requests/466