Bug 143694 - Icons are not rendered as expected (depending on screen resolution ?)
Summary: Icons are not rendered as expected (depending on screen resolution ?)
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: HiDPI Customise-Dialog
  Show dependency treegraph
 
Reported: 2021-08-02 18:26 UTC by EL1962
Modified: 2021-08-06 21:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot with icon selection panel and toolbar (109.84 KB, image/png)
2021-08-02 18:29 UTC, EL1962
Details
Other screenshot with right rendering on other PC (90.31 KB, image/png)
2021-08-04 17:14 UTC, EL1962
Details
Other screenshot with bad rendering (394.35 KB, image/png)
2021-08-04 17:15 UTC, EL1962
Details

Note You need to log in before you can comment on or make changes to this bug.
Description EL1962 2021-08-02 18:26:14 UTC
Description:
I’ve just changed my laptop and my new one has a 4k display. It runs Windows 10.
When I try to set icons on personal toolbars, pictures in both the dialog and the toolbar are not rendered as expected. It’s hardly possible to select an icon. See attached screenshot. This applies with all icon size selection in options).
Is it a bad resolution detection ?
I’ve tried changing the zoom factor on Windows settings, but this has no effect.
I’m used to do the same on 3 other computers, and without any issue…

Steps to Reproduce:
1.Select a custom toolbar
2.Try to change icon (icons rendering in selection panel is wrong)
3.Select an icon (selected icon is not rendered with right size)

Actual Results:
Icon rendering provides tiny unreadable pictures.

Expected Results:
Icons should be rendered with the right size.


Reproducible: Always


User Profile Reset: No



Additional Info:
?
Comment 1 EL1962 2021-08-02 18:29:00 UTC
Created attachment 174031 [details]
Screenshot with icon selection panel and toolbar
Comment 2 Nina_Shtygailo 2021-08-03 10:56:20 UTC
I can't to reproduce the error because the reproduction steps are not detailed enough. For example, how specifically I need to change the icon (point 2)?
Comment 3 EL1962 2021-08-03 17:29:32 UTC
As you can see in the screenshot, the panel with the list of all available icons is not correct : size and rendering of icons make difficult/impossible the selection of the wanted icon since you can hardly see the real picture.

When an icon is selected (any icon from the panel), it's not rendered with the right size in the toolbar. In the screenshot, the last icon is a very little right oriented arrow that should be bigger.

I guess that the screen resolution (3840x2160) may impact this rendering. For now I've not detected any other effect in Calc. I've tried changing the zoom (scale factor) in the Windows's configuration, but it just impacts the global size of the windows and their content, icons are never displayed as expected.

The same dialog works as expected on all my other computers with lower screen resolution, and the same Calc version.
Comment 4 QA Administrators 2021-08-04 03:47:04 UTC Comment hidden (obsolete)
Comment 5 EL1962 2021-08-04 17:14:44 UTC
Created attachment 174083 [details]
Other screenshot with right rendering on other PC
Comment 6 EL1962 2021-08-04 17:15:40 UTC
Created attachment 174084 [details]
Other screenshot with bad rendering
Comment 7 EL1962 2021-08-04 17:17:39 UTC
I've added 2 new screenshots. One is from another computer with a correct rendering. The other one highlights the bad rendering on exactly same dialog and same icons.
Comment 8 V Stuart Foote 2021-08-06 18:55:11 UTC
The LibreOffice UI does respond to UI Scaling on Windows. However, the icon sets are provided in small 16px and large 24px and extra large 32px sizes--clearly too small for use with a 4K HiDPI laptop.

Instead, use the Tools -> Options -> View and select the 'Colibre (SVG)' icon style (or one of the other SVG icon themes).  The SVG based icons will be scaled to a size more appropriate for the UI scale in use and written out to PNG images held in LO user cache.

Eventually for bug 115439 we'll be defaulting to SVG icon themes, possibly no longer rasterizing them to bitmap.

Also, Windows UI scaling with the default Display Settings -> Scale and Layout listbox seems more troublesome than Windows 'Advanced scaling settings' and setting a 'Custom scaling' value between 100% - 500%, set something about 225% and logout/login of Windows--then relaunch LibreOffice with 'Colibre (SVG)' icon theme in use.

Should get better icon rendering from resampled SVG for use on Toolbars, Menus, Sidebar and Notebook Bar or in the displayed icon customize dialog.
Comment 9 EL1962 2021-08-06 21:37:35 UTC
(In reply to V Stuart Foote from comment #8)
> The LibreOffice UI does respond to UI Scaling on Windows. However, the icon
> sets are provided in small 16px and large 24px and extra large 32px
> sizes--clearly too small for use with a 4K HiDPI laptop.
> 
> Instead, use the Tools -> Options -> View and select the 'Colibre (SVG)'
> icon style (or one of the other SVG icon themes).  The SVG based icons will
> be scaled to a size more appropriate for the UI scale in use and written out
> to PNG images held in LO user cache.
> 
> Eventually for bug 115439 we'll be defaulting to SVG icon themes, possibly
> no longer rasterizing them to bitmap.
> 
> Also, Windows UI scaling with the default Display Settings -> Scale and
> Layout listbox seems more troublesome than Windows 'Advanced scaling
> settings' and setting a 'Custom scaling' value between 100% - 500%, set
> something about 225% and logout/login of Windows--then relaunch LibreOffice
> with 'Colibre (SVG)' icon theme in use.
> 
> Should get better icon rendering from resampled SVG for use on Toolbars,
> Menus, Sidebar and Notebook Bar or in the displayed icon customize dialog.

I've tried switching to one of SVG theme, but this doesn't change anything : both in the dialog panel and the toolbar it self my selected icon is not correctly rendered. I don't understand why icons already assigned to actions in toolbars are displayed with a right size, and why toolbars customized icons are not.