View Single Post
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#909
Okay,

here's short how-to about converting ANY other theme to act like Plastic Scheme. Things needed in this turorial:
ON DEVICE:
rootsh (install from extras)

1. you must have the theme installed onto the phone which you want to convert to be Plastic Scheme
2. locate the theme (type these into terminal):
Code:
sudo gainroot
cd /usr/share/themes/
ls
That will output you directories of themes you have installed like this:
Code:
Nokia-N900:/opt/usr/share/themes# ls
Default                     alpha
Emacs                       beta
MurrinaNightOrange          blackplastictheme-themedir
Raleigh                     default
Nokia-N900:/opt/usr/share/themes#
In this case we shall make the default NSeries theme to be Plastic Scheme. It's directory is called "alpha".

3. Create a directory for the scheme under /opt/plastic-schemes/, you can name the direcotry to what you want, name of the directory is shown as scheme name in Plastic Theme Setup. Type this into xterm:
Code:
mkdir /opt/plastic-schemes/NSeries
4. Copy the contents of the theme to /opt/plastic-schemes/NSeries/ (or what ever you decided to name the directory in previous step), type these into terminal:
Code:
cp -rf /usr/share/themes/alpha/* /opt/plastic-schemes/NSeries/
That's the easy part. Now we need to manually edit one file so that the theme will actually work as scheme. You can use what ever editor you want, I prefer leafpad since it can be easily be launched from terminal. Edit this file:
/opt/plastic-schemes/NSeries/gtk-2.0/gtkrc

If you're using leafpad too, then the command to edit this file would be:
Code:
leafpad /opt/plastic-schemes/NSeries/gtk-2.0/gtkrc
When you have the gtkrc-file opened into some editor, locate these three lines (they are almost at the beginning of the file):
Code:
pixmap_path "/usr/share/themes/alpha/images"
gtk-theme-name = "Nokia Nseries"
gtk-icon-theme-name = "hicolor"
Replace those three lines with these:
Code:
pixmap_path "/usr/share/themes/blackplastictheme-themedir/images"
gtk-theme-name = "Black Plastic Theme"
gtk-icon-theme-name = "black-plastic-icons"
When done, save the file and close the text editor and return to terminal. Next we need to search and replace all entries of "Nokia Sans" with "Droid Sans" in few files. Copy and paste these commands into terminal (you still must be gainrooted), these are both one-lines, the forum software seems to automaticly break the lines... but copy-paste works here:
Code:
perl -pi -e "s/Nokia Sans/Droid Sans/g" /opt/plastic-schemes/NSeries/gtk-2.0/gtkrc
perl -pi -e "s/Nokia Sans/Droid Sans/g" /opt/plastic-schemes/NSeries/css/colors.css
Finally we need to remove some unwanted files. Type these into terminal:
Code:
rm -rf /opt/plastic-schemes/NSeries/backgrounds/theme_bg.desktop
rm -rf /opt/plastic-schemes/NSeries/index.theme
rm -rf /opt/plastic-schemes/NSeries/matchbox
rm -rf /opt/plastic-schemes/NSeries/matchbox2
That's it!

Now the NSeries -theme will be shown @ Plastic Theme Setup and you can customize it same way like all other schemes.

I personally use openssh-server and WinSCP -program where transferring and editing files is much easies when you can do all this with GUI.
Attached Images
 
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE

Last edited by d-iivil; 2010-08-13 at 07:07.
 

The Following 9 Users Say Thank You to d-iivil For This Useful Post: