Bug 380508 - Using the Breeze icon theme for LibreOffice results in small icons always being used even when large ones should be used--and are available (visible in Task Switcher with Large Icons)
Summary: Using the Breeze icon theme for LibreOffice results in small icons always bei...
Alias: None
Product: Breeze
Classification: Unclassified
Component: Icons (show other bugs)
Version: 5.10.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: visual-design
URL: https://bugs.documentfoundation.org/s...
Depends on:
Reported: 2017-06-03 16:46 UTC by Nate Graham
Modified: 2017-11-16 22:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:

Task Switcher showing ugly pixellated icons for LibreOffice programs (1.33 MB, image/png)
2017-06-03 16:49 UTC, Nate Graham
`xprop` output (8.08 KB, text/plain)
2017-06-03 16:50 UTC, Nate Graham

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2017-06-03 16:46:25 UTC
Linux distribution: openSUSE Tumbleweed
Desktop environment: KDE Plasma 5.10
LibreOffice version:

Steps to reproduce
1. Use the Large Icons Task Switcher style (System Settings > Window Management > Task Switcher > Visualization > Large Icons
2. Install LibreOffice
3. Install the breeze icon theme ('libreoffice-icon-theme-breeze' package in openSUSE)
4. Tell LibreOffice to use the Breeze icon theme (LibreOffice > Tools > Options > LibreOffice/View > Icon Style > Breeze)
5. Restart LibreOffice
6. Hit alt-tab to bring up the Task Switcher

Expected results:
- The Task Switcher viewer shows nice pretty large icons for all programs

Actual results:
- All programs except for LibreOffice programs have nice icons; LibreOffice programs have ugly pixellated small icons that come from e.g. /usr/share/libreoffice/share/config/images_breeze.zip/res/odg_16_8.png

- Only happens when using the Breeze icon theme in LibreOffice. If you change the theme to Oxygen (LibreOffice > Tools > Options > LibreOffice/View > Icon Style > Oxygen a correct large icon is shown in the Task Switcher.

Additional information:
I've attached the output of `xprop` on an affected LibreOffice window. It shows that a small icon is used for the large icon sizes.

There are already many perfectly nice large icons available on the system, including one within the Breeze theme icon set itself:

One of these should be shown instead--probably the first.
Comment 1 Nate Graham 2017-06-03 16:49:47 UTC
Created attachment 105866 [details]
Task Switcher showing ugly pixellated icons for LibreOffice programs
Comment 2 Nate Graham 2017-06-03 16:50:22 UTC
Created attachment 105867 [details]
`xprop` output
Comment 3 Nate Graham 2017-06-10 20:19:06 UTC
Reproduces with (K)Ubuntu's packages for LibreOffice and Breeze, so this isn't an openSUSE-specific issue.
Comment 4 Nate Graham 2017-10-15 05:04:15 UTC
Investigating deeper, this isn't an issue with Breeze.

In [libreoffice source dir]/vcl/unx/generic/window/salframe.cxx, Libreoffice is setting NET_WM_ICON (which KWin consumes) to point to a low-res bitmap icon inside a theme zip file provided by the libreoffice-style-[style] packages; e.g. /usr/share/libreoffice/share/config/images_breeze.zip/res/odt_48_8.png

This icon looks *awful* in the Large Icons task switcher. It's particularly bad for the Breeze theme icon they provide, but it's not particularly good for any of the others either.

Irrespective of what icon theme is chosen internally, LibreOffice should populate NET_WM_ICON with an icon chosen by the system theme, e.g. /usr/share/icons/breeze/apps/48/libreoffice-writer.svg

This issue is triggered by KWin's icon handling behavior, as explained in https://bugs.kde.org/show_bug.cgi?id=351055

Basically, rather than displaying the icons specified in their .Desktop files, KWin lets programs choose their own icons for their windows in the Task Switcher, and a lot of programs make really bad choices or provide terrible, low-res icons.

Either way, this isn't Breeze's fault. Either LibreOffice needs to make better icon choices, or KWin needs to give up and use the icons specified in the .desktop file.
Comment 5 Nate Graham 2017-11-16 22:47:48 UTC
The upstream bug for LibreOffice is https://bugs.documentfoundation.org/show_bug.cgi?id=65754