Bug 219027

Summary: custom colors can't be disabled
Product: [Applications] kate Reporter: Samoilenko Yuri <kinnalru>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: bluedzins, kinnalru, mwoehlke.floss, robert
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***