Bug 447532 - Kate 21.12.0 on Windows doesn't save user color scheme
Summary: Kate 21.12.0 on Windows doesn't save user color scheme
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 21.12.0
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 451600 451969 452089 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-26 10:40 UTC by Gary Wang
Modified: 2022-03-31 02:05 UTC (History)
8 users (show)

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


Attachments
Kate Windows Theme discrepancy (146.42 KB, image/png)
2021-12-29 12:19 UTC, Jan Bidler
Details
Kate Default Scheme not in effect (59.85 KB, image/png)
2022-01-11 21:51 UTC, Jonathan Rubenstein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Wang 2021-12-26 10:40:49 UTC
SUMMARY

Kate 21.12.0 on Windows will always use its default color scheme. if I set it to Breeze Dark from the menu. It will be restored to the default one at the next launch.

STEPS TO REPRODUCE
1. Download kate-21.12.0-1514-windows-msvc2019_64-cl.exe from KDE binary factory
2. Launch Kate
3. From the menu, use Settings > Color Scheme > Breeze Dark, it will be using the Breeze Dark theme now
4. Close Kate
5. Launch Kate again

OBSERVED RESULT

After step 5, you will see Kate is using its default color scheme instead of Breeze Dark.

EXPECTED RESULT

It should use Breeze Dark at the next launch.

SOFTWARE/OS VERSIONS

Kate: kate-21.12.0-1514-windows-msvc2019_64-cl.exe from KDE binary factory
Windows: 11, 21H2, 22000.376
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

I upgraded Kate from kate-21.08.3-1472-windows-msvc2019_64-cl.exe, the old version works fine, 21.12.0 has this issue.

Removing %LOCALAPPDATA%/kate/ folder and try set the color scheme again seems still cannot fix this issue.

Let me know if you need any additional information.
Comment 1 Dominik Haumann 2021-12-27 07:53:07 UTC
This is by design: settings in the menu are for the file buffer only. If you want it changed persistent, you need to go into the settings dialog and change the default Color theme.

Can you confirm?
Comment 2 Gary Wang 2021-12-27 10:19:20 UTC
I got another PC with kate-21.12.0-1500-windows-msvc2019_64-cl.exe installed, that version doesn't have this bug. I try to upgrade to kate-21.12.0-1515-windows-msvc2019_64-cl.exe and this bug can now be reproduced after the upgrade, downgrade to kate-21.12.0-1500-windows-msvc2019_64-cl.exe can fix that. They are both 21.12.0 build with KDE Framework 5.88.0, not sure what's the difference.

> This is by design: settings in the menu are for the file buffer only. If you want it changed persistent, you need to go into the settings dialog and change the default Color theme.

I'm confused, the settings dialog could only change the edit area/buffer color scheme, what I want to do is change the color scheme of the whole application (to dark)...
Comment 3 Jan Bidler 2021-12-29 12:19:08 UTC
Created attachment 144929 [details]
Kate Windows Theme discrepancy

Have this issue as well, the Color Scheme options from the menu only changes the edit area, not the whole theme of kate.
Attached an image, top shows how Kate looks when using Breeze Dark from the Settings, bottom shows how it looks when using Breeze Dark from the Menubar
Comment 4 Jonathan Rubenstein 2022-01-11 21:51:15 UTC
Created attachment 145339 [details]
Kate Default Scheme not in effect

I've also experienced this issue in new builds of 21.12.1

The default theme is not taken into effect properly, I have to manually select Breeze Dark every time I open kate.
Comment 5 Jonathan Rubenstein 2022-01-31 15:44:11 UTC
I misunderstood how this is supposed to work. It is supposed to save and restore as the bug author has documented, and is not per file buffer.

Indeed, if you check on Linux, this is exactly how it behaves, it saves consistently for the entire application, but not on Windows.
Comment 6 nekonexus 2022-02-05 06:18:34 UTC
I can confirm that the Kate UI theme doesn't save across different sessions after being set (up to at least 21.12.1).
(Different sessions being: opening Kate, changing the UI theme, closing Kate, then re-opening Kate.)
Comment 7 Gary Wang 2022-02-22 06:43:05 UTC
This issue still exist in kate-21.12.2-1567-windows-msvc2019_64-cl.exe

Since kate-21.12.0-1500-windows-msvc2019_64-cl.exe works fine and after kate-21.12.0-1515-windows-msvc2019_64-cl.exe it got this issue, does anyone know what's changed between #1500 and #1515 these two builds?
Comment 8 AF 2022-03-23 22:45:20 UTC
I am seeing this same issue with version 21.12.3 on my Windows 10 (version 21H1) system. I have confirmed that my katerc file shows the correct theme (breeze dark) as the default but it always opens using the regular breeze color theme.
Comment 9 Nicolas Fella 2022-03-23 23:05:13 UTC
*** Bug 451600 has been marked as a duplicate of this bug. ***
Comment 10 Nicolas Fella 2022-03-23 23:15:22 UTC
https://invent.kde.org/utilities/kate/-/merge_requests/668 should fix this.

We probably should include that in 22.04

https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/117 is also related
Comment 11 Nicolas Fella 2022-03-28 11:47:36 UTC
*** Bug 451969 has been marked as a duplicate of this bug. ***
Comment 12 Nicolas Fella 2022-03-30 21:59:42 UTC
*** Bug 452089 has been marked as a duplicate of this bug. ***
Comment 13 Nicolas Fella 2022-03-30 22:09:53 UTC
This has been fixed and a new version of Kate for Windows was released
Comment 14 Gary Wang 2022-03-31 02:05:50 UTC
Tested and it's fixed on kate-21.12.3-1-1612-windows-msvc2019_64-cl.exe from the binary factory. Thanks for the fix!