Bug 463734 - Icons in left sidebar are too big with screen scaling
Summary: Icons in left sidebar are too big with screen scaling
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-02 16:04 UTC by Ralf Jung
Modified: 2023-01-02 19:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
a screenshot demonstrating the problem (190.99 KB, image/png)
2023-01-02 16:04 UTC, Ralf Jung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Jung 2023-01-02 16:04:09 UTC
Created attachment 154962 [details]
a screenshot demonstrating the problem

SUMMARY

Icons in the sidebar to the left are too big when screen scaling is enabled. See the attached screenshot for how it looks with a scaling factor of 2.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.0-6-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Xeon® CPU E3-1505M v5 @ 2.80GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P530
Manufacturer: LENOVO
Product Name: 20ENCTO1WW
System Version: ThinkPad P50
Comment 1 Waqar Ahmed 2023-01-02 16:56:19 UTC
There is no problem here.

Change the setting via (or search "sidebar" in the configure dialog, search bar at the top):
Configure Kate -> Behaviour -> Sidebars
Comment 2 Ralf Jung 2023-01-02 17:03:44 UTC
I think it is a bug if an application does not properly handle scaling by default. Are you saying that each time I switch between a screen with 1x scaling and a screen with 2x scaling (i.e., several times a day, as I plug in external screens and unplug them again), I should also change the Kate settings? That's clearly not a proper solution. Just imagine having to adjust scaling by hand in every single application, that's clearly not how scaling is supposed to work.
Comment 3 Ralf Jung 2023-01-02 17:06:38 UTC
Also note that the icons are scaled twice as much as they should be (rather than being unscaled, which is what one would expect for such hard-coded pixel values). I don't know how that happens, but the icon size is currently set to 32 pixels and the actual size is around 64 pixels.
Comment 4 Waqar Ahmed 2023-01-02 17:11:51 UTC
Then please explain what is the issue. Your screenshot as I see it, looks 100% ok. Perhaps record a video demonstrating the difference/problem.
Comment 5 Christoph Cullmann 2023-01-02 17:25:54 UTC
The screen shot for me looks like expected, too.
The icons on the left are per default larger then e.g. on the bottom and for me they scale like they should.
Comment 6 Ralf Jung 2023-01-02 17:37:46 UTC
A few days ago, before the last update and before I used scaling, the icons on the left had the same size as the ones at the bottom. That is the default behavior I would expect.

But I guess I got fooled by the fact that I did a system update and set up scaling basically at the same time. Is having a separate size for these sidebar icons a recent(-ish) change? I can confirm that they indeed scale with the display scaling. Thanks for pointing that out!

So this is a different bug than I thought -- I would say it is rather strange that these icons have a different default size than all the others. I doubt I will not be the only one who will see these icons and assume that this must be a bug since they look out-of-place and this there is no clear reason for them to be that big.

But this is definitely much more a matter of opinion than the display scaling issue I thought I was seeing.
Comment 7 Christoph Cullmann 2023-01-02 17:40:19 UTC
The left icons have per default no text, we make them larger to be better clickable and as you see one can still tune this like on personally wants it, therefore I consider this is fine.
Comment 8 Waqar Ahmed 2023-01-02 17:50:38 UTC
> Is having a separate size for these sidebar icons a recent(-ish) change?

6 months old, part of 22.08 release. You can change the size or switch to old behaviour from the place I mentioned in my first comment
Comment 9 Ralf Jung 2023-01-02 19:12:01 UTC
Changing the setting works for me, thanks! :)