LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2015, 06:19 AM   #1
caned_monkey
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Rep: Reputation: Disabled
Cant Edit Themes in Mint


Hello,

I am on Mint 17.1

I'm trying to customise my own theme. I have found a theme I like which is Black-n-Blue-GTK but I want to change some of the colours and other features as well. I copied the Black-n-Blue-GTK folder and renamed it My-Theme and then edited index theme so that it showed up in Themes, no problem. I can switch to My-Theme and it obviously looks exactly like Black-n-Blue-GTK.

So, Im trying to edit metacity-theme-1.xml, but no matter how small a change I make, once I click save the theme will no longer load. If I restore metacity-theme-1.xml back to the original, it then works perfectly again.

I tried editing the metacity-theme-1.xml file of other themes and the same thing happens.

I tried following the instructions in the first reply here:

http://forums.linuxmint.com/viewtopi...f=208&p=805220

I changed nbg_color in settings.ini but absolutely nothing happens

What am I doing wrong? Any help would be greatly appreciated!

Thanks
Steven

Last edited by caned_monkey; 10-16-2015 at 06:20 AM.
 
Old 10-16-2015, 01:38 PM   #2
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
please post the original part of the .xml file, and your modified.
(not the whole file, just the lines you modified, plus a few lines of context )
please use code tags for code.

ps: what a cruel username!
 
Old 10-16-2015, 02:15 PM   #3
caned_monkey
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
I donít think it's the code that is the issue. I donít have to change the code, only click save and it stops working.

I'm not trying to make major changes Iím only changing colours. So, from this:

Code:
<draw_ops name="title_text_unfocused">
	  <title color="#000000" x="(3 `max` (width-title_width)) / 2" y="1 `max` ((height-title_height)/2)+1"/>
	  <title color="#9B9B9B" x="(3 `max` (width-title_width)) / 2" y="0 `max` ((height-title_height)/2)"/>
  </draw_ops>
To this:

Code:
<draw_ops name="title_text_unfocused">
	  <title color="#FFFFFF" x="(3 `max` (width-title_width)) / 2" y="1 `max` ((height-title_height)/2)+1"/>
	  <title color="#9B9B9B" x="(3 `max` (width-title_width)) / 2" y="0 `max` ((height-title_height)/2)"/>
  </draw_ops>
 
Old 10-16-2015, 05:52 PM   #4
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
yeah the syntax looks ok.
how are you editing the file, how are you saving it, are you closing the editor afterwards?
where is the file in your tree? and you are absolutely positive that the file works when you undo everything? do you undo from the text editor, or by re-copying the original file?
is the theme named differently than the original inside the index.theme? it should, otherwise the system decides on using only one of the two.
is the xml file the exact same name as the xml file from the original theme?

what else is in the theme folder?

Last edited by ondoho; 10-16-2015 at 05:53 PM.
 
Old 10-16-2015, 06:01 PM   #5
caned_monkey
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
I'm using XML Copy Editor. If I open up the file place the cursor anywhere, hit space and then delete. I save a file that is identical to the original but it will no longer work. If I go to the original install archive file for the theme and copy the original xml file from there back into the folder in ./themes then the theme will work again.

This happens for every theme I try to edit.
 
Old 10-17-2015, 02:54 AM   #6
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
Quote:
Originally Posted by caned_monkey View Post
I'm using XML Copy Editor.
never heard of it.
it probably messed up the formatting/encoding of your file.

anyhow, please try the same with a plain text editor that already came with your distro (leafpad, mousepad) or some ide known to work on linux, like geany.

i know that xml is a pita to edit manually, but if you use sth like geany, you get syntax highlighting (choose a dark theme!) and it becomes much easier.

i'm not sure about the validating stuff, but you could also look at
xmlstarlet
bluefish
 
Old 10-17-2015, 08:53 AM   #7
caned_monkey
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Top marks! Thank you! It was the editor, everything works fine in gedit :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Themes for linux mint I3 wm? cluesade Linux - Newbie 3 03-08-2015 02:34 PM
LXer: 12 Awesome Themes for Mint 17.1 Cinnamon LXer Syndicated Linux News 0 11-21-2014 10:00 AM
Mint 13 themes not changing. kabuki.mono Linux - Newbie 3 07-28-2012 11:22 PM
themes in linux mint 10 Upendra Pratap Singh Linux - Newbie 1 09-04-2011 03:55 AM
can I customize a linux mint iso so that it includes more software and themes? tylerrrrrrr Linux - Software 3 08-23-2009 03:42 PM


All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration