Bug 457585 - Changing a color scheme resets DPI scaling in the current session
Summary: Changing a color scheme resets DPI scaling in the current session
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_colors (other bugs)
Version First Reported In: 5.25.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 465166 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-07 11:54 UTC by pktriss03
Modified: 2024-09-17 11:40 UTC (History)
7 users (show)

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


Attachments
Recording showcasing the issue (1.70 MB, video/mp4)
2022-08-07 11:59 UTC, pktriss03
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pktriss03 2022-08-07 11:54:09 UTC
Changing a color scheme sets the dpi scaling to 100% in newly open programs.
Setting it to something else and reapplying or relogging fixes the issue. Having accent color set from wallpaper and background set as a slide-show will reset the scaling every time the wallpaper changes, making using those 2 things together a nuissance on HiDPI screens.

STEPS TO REPRODUCE
1. Have scaling set to something else than 100%
1. Change color scheme

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Void Linux, Plasma 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
The issue didn't appear originally, doing something in the settings made it start happening, I'm uncertain what but I didn't do anything unordinary (Only changed the wallpaper, scaling, played with breeze window decoration settings, didn't originally install any additional window decorations)
Comment 1 pktriss03 2022-08-07 11:59:58 UTC
Created attachment 151162 [details]
Recording showcasing the issue
Comment 2 Nate Graham 2022-08-08 17:46:31 UTC
That's odd. Some questions:
1. Are you manually setting your font DPI to anything non-default?
2. Does it happen on Wayland, or only X11?
Comment 3 pktriss03 2022-08-09 11:24:10 UTC
(In reply to Nate Graham from comment #2)
> That's odd. Some questions:
> 1. Are you manually setting your font DPI to anything non-default?
Nope, I only changed the scaling through the option in display settings. I believe I ticked it off and on though which is what could've been the thing that made it start happening, I didn't touch it afterwards and I left it to be controlled by display settings' scaling option
> 2. Does it happen on Wayland, or only X11?
I only tried X11, can't really run wayland currently
Comment 4 Nate Graham 2022-08-10 14:12:22 UTC
Any chance you can grit your teeth and try Wayland to see if it happens there?
Comment 5 David Edmundson 2022-08-10 15:42:05 UTC
both colours and text go via xrdb; we're presumably overwriting instead of merging into the DB

on wayland it might affect newly spawned xwayland apps but not others as there font dpi overrides are an env var
Comment 6 pktriss03 2022-08-10 18:41:47 UTC
(In reply to Nate Graham from comment #4)
> Any chance you can grit your teeth and try Wayland to see if it happens
> there?

I'd love to help, I tried but my framrate on wayland is measurable in fpm rather than fps
Comment 7 pktriss03 2022-08-11 12:16:44 UTC
More info I am able to give about this issue:
-Also seems to happen cursor is changed
-I wasn't able to test it in a wayland session (a frame every 3-5 seconds), but that seems to start with the default 1.0x scaling, so I guess it's related to xrdb
Comment 8 pktriss03 2022-08-20 10:42:10 UTC
This also seems to happen when changing a gtk theme, though in this instance I remember it happening on clean install as well
Comment 9 Bug Janitor Service 2022-09-04 04:36:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 pktriss03 2022-09-05 06:32:49 UTC
Ok i'll summerise what I know, the issue seems to appear when:
-changing a color scheme
-changing a cursor
-changing a gtk theme
-basically, whenever a gtk theme is updated
I wish I could test it on wayland but again, not possible for me, sorry. Hope that helps though.
Comment 11 pktriss03 2022-09-18 19:07:01 UTC
I was able to replicate it on a fresh install but I'm really unsure what made it happen in the first place, it doesn't seem it be one thing in particular since I tried checking stuff one by one and it didn't start happening until I started changing application/aurorae theme which wasn't even the case in the original post and didn't happen the first time I did it either. I'll try clicking around in a virtual machine until I'm able to 100% make it reproducible, but so far not so good
Comment 12 pktriss03 2022-09-23 19:23:49 UTC
Can't reproduce on the plasma 5.25.5, closing the issue since it probably has been fixed.
Comment 13 Nate Graham 2023-02-06 21:08:18 UTC
*** Bug 465166 has been marked as a duplicate of this bug. ***
Comment 14 Akseli Lahtinen 2024-09-17 11:40:20 UTC
Can't repro on Plasma 6 X11 or wayland. Closing as fixed.

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-200.fc40.x86_64 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600