Bug 266465 - Kate honours system colour scheme incompletely.
Summary: Kate honours system colour scheme incompletely.
Status: RESOLVED DUPLICATE of bug 219795
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 15:52 UTC by Michael Tsang
Modified: 2012-03-04 19:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tsang 2011-02-16 15:52:54 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

Kate honours system colour scheme only for the first time I use the package, after that, it uses that set of colours, no matter how I change the system colours.

The problem is that, the name of the schema is misleading. The default schemas are <app name> - Normal and <app name> - Printing. When you open a katepart in an application, these 2 schemas are automatically generated from the system colours. Once you click OK (even without modifying anything inside), all the colours are written into that file. The next time you run Kate, the settings will be read from that file but not from the system settings. As a user, it is confusing that the "default" scheme is different in initial runs of Kate under different system colours, but the same in subsequent runs of Kate under different system colours. Therefore, without that file, you will see only the default schemas for that apps, but, after you click OK in the Kate configuration window, you will see the schemas for Kate in Konqueror which has a text file opened and active.

To minimize user confusion, the application should either
1. set a default colour schema for Kate regardless what the system colours are.
2. continue to honour the system colour settings for the default schemas, but make it unmodifiable (any changes to the default colours should result in a new schema automatically created).

Reproducible: Always

Steps to Reproduce:
Let A be the original KDE system colour scheme.
1. Delete the file `~/.kde/share/config/kateschemarc'.
2. Run Kate.
3. Click on `Settings' -> `Configure Kate' -> `Fonts & Colours'. You should see that the colours of set A.
4. Close the configuration window.
5. Close Kate
6. Change the KDE system colour scheme. Let B be the new KDE system colour scheme.
7. Repeat step 2 to 3. You should see the new colour scheme now, which is set B.
8. Without doing any change to the configuration, click OK.
9. Close Kate.
10. Change the KDE system colour scheme back to A now.
11. Repeat step 2 to 3. You should still see the new colour scheme now, which is still set B.
12. Close the configuration window.
13. Close Kate.
14. Repeat step 1 to 3. You should see colour scheme A now.

For the best results, you should use colour schemes which are very different, for example, the `Honeycomb' scheme and the `zvon black' scheme.

Note that the same result can be reproduced by opening a katepart under different KDE applications, like opening a text file in Konqueror, editing sources in KDevelop, etc, with only slight modifications on the wordings.




OS: Linux (x86_64) release 2.6.32-5-amd64
Compiler: cc
Comment 1 Dominik Haumann 2012-03-04 19:41:06 UTC

*** This bug has been marked as a duplicate of bug 219795 ***