maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Themes (https://talk.maemo.org/forumdisplay.php?f=49)
-   -   [Release] Plastic Theme + Addon Packs - change of direction (https://talk.maemo.org/showthread.php?t=57456)

navsin 2010-08-14 05:01

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Hi,

I have just started using video - live wallpaper.... and even though it eats battery slightly faster, it's a pretty cool thing. I was wondering if it is possible to include the video wallpaper option in Plastic theme pack??

percy 2010-08-16 07:30

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Quote:

Originally Posted by shazosbourne (Post 785997)
I wanted a slightly different blue so I adjusted the CSS in /opt/usr/share/themes/blackplastictheme-themedir/css/colors.css but those widgets have kept their "DarkBlue" colour setting.

Make sure you also changed the color in "/opt/usr/share/themes/blackplastictheme-themedir/gtk-2.0/gtkrc".

After that run "hildon-theme-cacher /opt/usr/share/themes/blackplastictheme-themedir" to regenerate the gtkrc.cache.

d-iivil 2010-08-16 08:03

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Quote:

Originally Posted by shazosbourne (Post 785997)
Hey D-Ilvil,

Do you happen to know where the text colour for the Personal Dataplan Monitor and IP address widgets comes from?

I wanted a slightly different blue so I adjusted the CSS in /opt/usr/share/themes/blackplastictheme-themedir/css/colors.css but those widgets have kept their "DarkBlue" colour setting.

I'm also wanting to make those widgets transparent but haven't heard back from the author about where the files are.

Cheers

Instead edit these files (you need to edit all three, search for the active text color):
/opt/plastic-schemes/DarkBlue/css/colors.css
/opt/plastic-schemes/DarkBlue/gtk2.0/gtkrc
/opt/plastic-schemes/DarkBlue/colors.config

And then run the Plastic Theme Setup again selecting the DarkBlue -scheme to use.

Bratag 2010-08-16 18:47

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Quote:

Originally Posted by D-Iivil (Post 784985)
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.

Would a symlink work rather than copying?

dagee04 2010-08-16 19:29

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Question. When converting a theme to work for plastic theme, how do you know which directory the theme is in? For instance, you said that the NSeries theme was in the "alpha". How did you know that? Because I'm trying to do the same for my other themes but don't know which directory names to use.

d-iivil 2010-08-16 20:11

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Quote:

Originally Posted by Bratag (Post 788414)
Would a symlink work rather than copying?

Not really since some files needs to be left out and we really don't want to mess with the "original" files in case something goes wrong, so copy is safer.


@dagee, if you go into any folder located at /usr/share/themes/ and edit file called "index.theme" you will see :)

magullo 2010-08-16 20:41

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
pleego is truly amazing, i love it.
i wish the background was a bit darker, but great color scheme nonetheless.
thanks

http://media.share.ovi.com/m1/s/2367...30ba11a183.jpg

ps where's coffee?

jorjino 2010-08-17 06:11

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Quote:

Originally Posted by magullo (Post 788530)
pleego is truly amazing, i love it.
i wish the background was a bit darker, but great color scheme nonetheless.
thanks

ps where's coffee?

Coffee is in Addon Pack 1.
Regards.

ricardo8 2010-08-17 06:40

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Hi!
How can i copy the layouts in your virtual keyboard to another themes? For example, i want the color highlight when i press a letter in virtual keyboard.What are the files i need to copy?
(like i did, i copy the TaskSwitcherNotificationThumbnail.png to another theme. But this time, i want to copy the keyboard layouts to an0ther theme)
Sorry, im just newbie in optimizing n900.

Carlito 2010-08-17 07:55

Re: [Release] Plastic Theme + Addon Packs - change of direction
 
Quote:

Originally Posted by D-Iivil (Post 769037)
After playing around a bit I have to give up with this. It's impossible to use light buttons since main font that's also light will not be visible on some situations. Sorry.

You can't change the font color?


All times are GMT. The time now is 22:01.

vBulletin® Version 3.8.8