Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I don't know what I'm doing wrong. I'm using a custom theme called Twilight for Gedit and I'm trying to change some of the colors of the theme.

I went to: /home/user/.local/share/gedit/twilight.xml

The default color I'm trying to change is:

<color name="steelblue3" value="#4f94cd"/>

to

<color name="moon_grey" value="#f7f7f7">

The code I'm changing:

<style name="bracket-match" background="steelblue3"/>

To this:

<style name="bracket-match" background="moon_grey"/>

But after I do use the line above, nothing happens. It still comes out as steel blue. I exited out completely and came back in and it was still the same color. I also tried "reseting" but repicking the theme in the Preferences > Fonts & Colors but nothing happened again. I also deleted the steel blue line but even than it stayed as is.

What's going on? How do I change a color of the theme?

UPDATE

I restarted the computer and things have changed. I have 2 files now - the regular twilight.xml and another twilight.xml~ file. I cannot open twilight.xml~ as it gives me the error:

Could not display "/home/user/.local/share/gedit/styles/twilight.xml~".

But I can click on the regular file. My changes are still there but it switched to a different theme and the Twilight theme is unavailable in the preferences. What happened to it?

share|improve this question
    
Can you reopen the files and check whether your edit was saved? Can you pick another color theme and then switch back to the one you edited? –  don.joey Mar 12 '13 at 11:27
    
@Private OK, I gave you an update when I tried both of the things you said. –  Jryl Mar 12 '13 at 15:27
    
Can you run the command ls -al in the directory in which you find twilight.xml and give use the first eight characters (the permissions) of the line of twilight.xml and the same with the ~ version. This looks like a permissions issue. –  don.joey Mar 12 '13 at 15:30
1  
Your twilight.xml~is just a temp file. You can safely delete it. There have been several suggestions on what to do about these files. –  carnendil Mar 12 '13 at 15:35
1  
Why don't you get the source of your original theme, make a copy of it (with a different name), change/tweak whatever you want and install it. Perhaps it would let you focus on how to craft your new theme instead of worrying on possible breaks or damages to what's already installed and working fine. –  carnendil Mar 12 '13 at 15:42

1 Answer 1

You made some small mistakes:

<color name="moon_grey" value="#f7f7f7">

On this line, you missed the closing /

And you should not overwrite the steelblue3-definition, but just add the correct line, because steelblue is needed at other places as well.

<color name="moon_grey" value="#f7f7f7"/>

Basically, that’s it, now your brackets should be better viewable.

P.S. Posting this link to the source of the Twilight-Theme would have been helpful.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.