Bug 219027 - custom colors can't be disabled
Summary: custom colors can't be disabled
Status: RESOLVED DUPLICATE of bug 219795
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 152892 200491 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-17 08:42 UTC by Samoilenko Yuri
Modified: 2012-02-27 13:42 UTC (History)
4 users (show)

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 Samoilenko Yuri 2009-12-17 08:42:23 UTC
Version:            (using KDE 4.3.4)
Compiler:          gcc-4.3.4 
OS:                Linux
Installed from:    Gentoo Packages

Kate by default used system-wide color scheme, and when I change something in "Fonts and Colors" it used custom prefs. 

But if I want to use system-wide colors again I can't reach this because there is no way to "Restore default color".

The way to resolve is to remove *rc-files for kate.

May be needed button to each color with reset-to-default(remove from config file) functionality?

This bug/feature shared with other applications used kate(for example kdevelop).
Comment 1 Matthew Woehlke 2010-01-13 21:38:30 UTC
I think you can create a new scheme also, but that's inelegant.

I had thought at one time about a scheme that cannot be modified and always follows system colors, but 'reset' is maybe better. Or both.
Comment 2 Matthew Woehlke 2010-02-18 00:34:34 UTC
*** Bug 200491 has been marked as a duplicate of this bug. ***
Comment 3 Matthew Woehlke 2010-02-18 00:38:49 UTC
I knew this had come up before. After revisiting bug 200491, I'm thinking about this for a solution:

Replace the "default" scheme with "use system colors". In this state, the color scheme is immutable and cannot be changed. (And we REALLY need a way to... encourage hl authors to not hard-code colors.)

To edit the colors, one must create a new scheme. Doing so will pop up a message (with 'don't show again') informing the user that the colors of the new scheme will default to current system colors but will NOT change if the system color scheme is changed.

The floor is open for any objections/suggestions/etc.
Comment 4 Samoilenko Yuri 2010-02-24 08:00:05 UTC
nice.

Can I change only one color to custom, and remain other system-dependent by that solution?
Comment 5 Matthew Woehlke 2010-02-24 21:15:55 UTC
(In reply to comment #4)
> Can I change only one color to custom, and remain other system-dependent by
> that solution?

No, there is no provision for that now, and I think it would be fairly complicated. (Right now, once we save, we save everything. That would have to change.)

I'm also not sure it would be a good idea, since you could change a color, then change your system scheme so that your one changed color results in an unusable kate scheme.

That said, I think you *could* do it already by creating a scheme, making that change, then hand-editing the .rc's to remove all but the one color you want to override. (Then you just have to be careful to not edit the scheme again.) If you do this, I wouldn't expect it to break with the change I suggested (i.e. we will still fall back on the scheme for missing entries).
Comment 6 Dominik Haumann 2011-06-29 22:18:08 UTC
*** Bug 152892 has been marked as a duplicate of this bug. ***
Comment 7 Dominik Haumann 2012-02-27 13:42:19 UTC

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