maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings) (https://talk.maemo.org/showthread.php?t=85710)

Vesuri 2012-08-10 10:40

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by Kozzi (Post 1250033)
Can I alter configurations in meegotouchhome.css or statusarea.css from base theme using custom theme that inherits blanco ?

Yes. Blanco inherits and overrides base, so if your theme inherits blanco, you can override things defined in blanco and base.

Quote:

Originally Posted by Kozzi (Post 1250033)
Can you post a guide how to package a custom theme to .deb using Qt Creator ? This would seriously help many users in creating themes from custom icons.

The original post mentions the example theme:

Quote:

Originally Posted by Vesuri (Post 1243249)
An example theme package that changes the background color of each home screen page (not recommended to be done in a theme) is provided on the support page of Theme settings.

The source package for the theme is provided as well. It includes an application which checks whether Theme settings is installed and if not, asks the user whether to install it from the Store, which of course doesn't work anymore since the application has been removed from the Store. There's also a source package which doesn't include the checker application.

Refer to the existing themes (blanco, mostly) to see where to put which files and what the modifiable items are. Most icons are in themename/meegotouch/icons and library/application specific styles in themename/meegotouch/binaryname/style. Theme wide constants are in themename/meegotouch/constants.ini.

It should be noted that if there's a problem with a CSS file the application probably won't start. This means that if you break a CSS file needed by a system application (like the home screen) the system application won't start and the device may go to an unrecoverable reboot loop. It's a good idea to do theme development on a single custom application that isn't critical for the system OR to be ready to flash the device when things go wrong. :)

ThraxZzz 2012-08-25 11:22

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Hey vesuri,is there a way to download v 0.1.1 manually? Because i cant seem to update it,Thanks :)

thedead1440 2012-08-30 15:54

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Hi Vesuri is there any limit on the number of themes that theme settings is able to display? On my device it can display a maximum of 19 themes before it stops displaying any newer themes...

I'm asking this instead of investigating whether something is wrong with the theme(s) [I've checked the theme(s) too but can't find anything irregular in them compared to the others on my system] as ThemeChanger only displays a maximum of 10 themes...


Edit: Also as you have mentioned above that blanco overrides base, it means any theme that inherits blanco should override base too then why do the boot and splash images even when placed in the custom theme still read from blanco and not the custom theme?

Vesuri 2012-08-30 16:28

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by ThraxZzz (Post 1255554)
Hey vesuri,is there a way to download v 0.1.1 manually? Because i cant seem to update it,Thanks :)

It's available on the Theme Settings page.

Quote:

Originally Posted by thedead1440 (Post 1257986)
Hi Vesuri is there any limit on the number of themes that theme settings is able to display? On my device it can display a maximum of 19 themes before it stops displaying any newer themes...

There shouldn't be such a limit there. Interesting. It does use a standard libmeegotouch component (MComboBox) for the theme selection UI, so maybe there's a limit there. That sounds weird as well, though. Interesting :O

thedead1440 2012-08-30 16:31

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
I've uninstalled 13 themes from my system yet newer themes don't get detected...even those that previously used to work now after uninstallation and re-installation don't get detected...Strange indeed...
Maybe I broke some functionality? The folders are in /usr/share/themes/ and both theme settings and ThemeChanger don't detect them...

Vesuri 2012-08-30 16:32

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1257986)
Also as you have mentioned above that blanco overrides base, it means any theme that inherits blanco should override base too then why do the boot and splash images even when placed in the custom theme still read from blanco and not the custom theme?

Which files do you mean exactly by boot and splash images?

If you mean the NOKIA logo shown at startup and the startup animation, those are not coming from the theme. The very first NOKIA logo comes from the boot loader (NOLO) and can't really be changed. Then the same logo gets displayed by MProgressIndicator and that stuff is under /usr/share/MProgressIndicator. It can only be changed the ugly way by modifying and replacing some files there, not by theming.

thedead1440 2012-08-30 16:35

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by Vesuri (Post 1258006)
Which files do you mean exactly by boot and splash images?

If you mean the NOKIA logo shown at startup and the startup animation, those are not coming from the theme. The very first NOKIA logo comes from the boot loader (NOLO) and can't really be changed. Then the same logo gets displayed by MProgressIndicator and that stuff is under /usr/share/MProgressIndicator. It can only be changed the ugly way by modifying and replacing some files there, not by theming.

Yup I understand about /usr/share/MProgressIndicator...

I didn't know about the NOLO images...

These are the files that can't be changed using a custom theme:

/usr/share/themes/blanco/meegotouch/images/splash/*ALL*

/usr/share/themes/blanco/meegotouch/images/system-services/booting.png

Vesuri 2012-08-30 16:36

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1258004)
The folders are in /usr/share/themes/ and both theme settings and ThemeChanger don't detect them...

Check the permissions of the folders. The folders and the files in them need to be user readable, not just root. Maybe they're now only readable by root?

thedead1440 2012-08-30 16:46

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Code:

RM696-21-3_PR_005:~# ls -l /usr/share/themes/
total 40
drwxr-xr-x    4 root    root          4096 Aug 10 21:43 base
drwxr-xr-x    3 root    root          4096 Aug 10 21:43 blanco
drwxrwxr-x    3 root    root          4096 Aug 17 01:26 faenza
drwxr-xr-x    3 root    root          4096 Aug 18 20:11 fdb-bluev7.0a8
drwxr-xr-x    3 root    root          4096 Jul 23 01:53 fdb-green
drwxr-xr-x    3 root    root          4096 Aug 18 20:12 fdb-originalv7.0a8
drwxr-xr-x    3 root    root          4096 Aug 31 00:14 fdb-originalv7.1a1
drwxr-xr-x    3 root    root          4096 Jul 23 01:43 fdb-red
drwxrwxr-x    3 root    root          4096 Aug 31 00:40 fdb-red-test
lrwxrwxrwx    1 root    root            50 Jul 31 13:28 magenta -> /opt/meegotouchtheme-settings/share/themes/magenta
drwxr-xr-x    3 root    root          4096 Aug 16 09:53 vistav2

From the above fdb-red-test has the same permissions as faenza yet faenza gets detected...

Originally fdb-red-test was drwxrwxrwx but i chmod 775 it yet no difference...Anything I'm doing wrong?

Thanks...


Edit: fdb-originalv7.1a1 doesn't get detected too while fdb-originalv7.0a8 does :confused:


Edit2: doing as user in terminal:
Code:

gconftool -s --type=string /meegotouch/theme/name fdb-originalv7.1a1
doesn't change the theme to fdb-originalv7.1a1 but theme settings shows blanco as being applied when in reality my previous applied theme (fdb-originalv7.0a8) was still applied...

Vesuri 2012-08-30 16:54

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Check the index.theme files in those folders as well. Those are the files that matter for the detection.

thedead1440 2012-08-30 17:01

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by Vesuri (Post 1258017)
Check the index.theme files in those folders as well. Those are the files that matter for the detection.

Code:

RM696-21-3_PR_005:~# ls -l /usr/share/themes/fdb-red-test/
total 12
-rwxrwxr-x    1 root    root          237 Aug 31 00:40 index.theme
-rw-------    1 root    root          232 Aug 31 00:40 index.theme~
drwxrwxr-x  43 root    root          4096 Aug 31 00:40 meegotouch
RM696-21-3_PR_005:~# ls -l /usr/share/themes/fdb-originalv7.1a1/
total 8
-rwxrwxr-x    1 root    root          246 Aug 31 00:10 index.theme
drwxrwxr-x  43 root    root          4096 Aug 31 00:14 meegotouch
RM696-21-3_PR_005:~# ls -l /usr/share/themes/fdb-originalv7.0a8/
total 8
-rw-r--r--    1 root    root          243 Aug 18 20:14 index.theme
drwxr-xr-x  35 root    root          4096 Aug 18 21:51 meegotouch
RM696-21-3_PR_005:~# ls -l /usr/share/themes/faenza/
total 12
-rw-rw-r--    1 root    root          270 Aug 16 04:48 index.theme
-rw-rw-r--    1 root    root          238 Aug 16 04:24 index.theme~
drwxrwxrwx    6 root    root          4096 Aug 17 01:26 meegotouch

I can see something's wrong here...Could you help? [fdb-red-test and fdb-originalv7.1a1 are the offending one's here]

Edit: Could you also help me in identifying what I might have done wrong during the packaging for the differing permissions? I use your meegotouchtheme-example for packaging and for fdb-originalv7.1a1 I used fdb-originalv7.0a8 as the base...fdb-red-test was just copied manually over to test...

Vesuri 2012-08-30 17:23

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Can you show the contents of the index.theme files for the themes that don't get detected?

Also note that if you add/remove a theme the changes won't be visible in the Settings application (in case of Theme Settings) until you leave the Theme settings applet and show it again (in case it was already visible).

thedead1440 2012-08-30 17:28

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by Vesuri (Post 1258028)
Can you show the contents of the index.theme files for the themes that don't get detected?

Also note that if you add/remove a theme the changes won't be visible in the Settings application (in case of Theme Settings) until you leave the Theme settings applet and show it again (in case it was already visible).

Ya i leave the Theme settings applet before opening it again...

Contents of fdb-originalv7.1a1 :
Code:

[Desktop Entry]
Type=X-MeeGoTouch-Metatheme
Name=FDB Original v7.1a1
Encoding=UTF-8

[X-MeeGoTouch-Metatheme]
X-Inherits=blanco
X-Icon="icon-l-fdborig"
X-Visible=true

[X-DUI-Metatheme]
X-Icon="icon-l-fdborig"
X-Inherits=blanco
X-Visible=true

contents of fdb-originalv7.0a8 :

Code:

[Desktop Entry]
Type=X-MeeGoTouch-Metatheme
Name=FDB Original v7.0a8
Encoding=UTF-8

[X-MeeGoTouch-Metatheme]
X-Inherits=blanco
X-Icon="icon-l-fdbblue"
X-Visible=true

[X-DUI-Metatheme]
X-Icon="icon-l-fdbblue"
X-Inherits=blanco
X-Visible=true


Contents of fdb-red-test:

Code:

[Desktop Entry]
Type=X-MeeGoTouch-Metatheme
Name=FDB Red Test
Encoding=UTF-8

[X-MeeGoTouch-Metatheme]
X-Inherits=blanco
X-Icon="icon-l-fdbred"
X-Visible=true

[X-DUI-Metatheme]
X-Icon="icon-l-fdbred"
X-Inherits=blanco
X-Visible=true


Contents of faenza:

Code:

[Desktop Entry]
Type=X-MeeGoTouch-Metatheme
Name=Faenza
Encoding=UTF-8

[X-MeeGoTouch-Metatheme]
X-Inherits=blanco
X-Icon=icon-l-meegotouchtheme-blanco
X-Visible=true

[X-DUI-Metatheme]
X-Icon=icon-l-meegotouchtheme-blanco
X-Inherits=blanco
X-Visible=true


In the above the first and third ones don't get detected while second and fourth work...


Edit: Don't you think that something is wrong in the permissions from my earlier post?

Vesuri 2012-08-30 17:44

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1258029)
Don't you think that something is wrong in the permissions from my earlier post?

Well yeah, the ones that don't work seem to have the execute permission for the index.theme file. I don't know why it would matter, but you can of course try saying

Code:

chmod ugo-x /usr/share/themes/fdb-red-test/index.theme /usr/share/themes/fdb-originalv7.1a1/index.theme
and see if that helps. If it does, then QSettings refuses to load files which have the execute permission set.

Vesuri 2012-08-30 17:49

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by Vesuri (Post 1258039)
Well yeah, the ones that don't work seem to have the execute permission for the index.theme file. I don't know why it would matter, but you can of course try saying

Code:

chmod ugo-x /usr/share/themes/fdb-red-test/index.theme /usr/share/themes/fdb-originalv7.1a1/index.theme
and see if that helps. If it does, then QSettings refuses to load files which have the execute permission set.

The execute permission doesn't seem to make a difference for me, at least. Could you package all the index.theme files and send them over, like

Code:

tar zvcf indexes.tar.gz /usr/share/themes/*/index.theme
?

thedead1440 2012-08-30 17:52

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Nope it doesn't fix it...I did a reboot just in case too before and after the chmod but still no luck...Weird thing is that fdb-red-test is the same fdb-red i already have on my system just added "-test" to it after no themes were getting detected even after uninstalling a number of themes...

thedead1440 2012-08-30 17:56

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
1 Attachment(s)
Attached the indexes.tar.gz in this post...


Also the tar.gz package for fdb-originalv7.1a1 [not working] can be downloaded from: http://db.tt/hjimP0vp

tar.gz package for fdb-originalv7.0a8 [working]: http://db.tt/wZBfk9rG

Vesuri 2012-08-30 18:07

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1258048)
Attached the indexes.tar.gz in this post...


Also the tar.gz package for fdb-originalv7.1a1 [not working] can be downloaded from: http://db.tt/hjimP0vp

tar.gz package for fdb-originalv7.0a8 [working]: http://db.tt/wZBfk9rG

Code:

# diff usr/share/themes/fdb-originalv7.0a8/index.theme usr/share/themes/fdb-originalv7.1a1/index.theme
--- usr/share/themes/fdb-originalv7.0a8/index.theme
+++ usr/share/themes/fdb-originalv7.1a1/index.theme
@@ -1,14 +1,14 @@
-[Desktop Entry]
+[Desktop Entry]

You have a byte order mark in the beginning of the file in those themes that don't work:

Code:

00000000  EF BB BF 5B  44 65 73 6B  74 6F 70 20  45 6E 74 72  79 5D 0A 54  79 70 65 3D  58 2D 4D 65  ...[Desktop Entry].Type=X-Me
Use an editor that doesn't put any byte order marks there.

thedead1440 2012-08-30 18:13

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Could you correct me on this as I couldn't find any white spaces at the end of the lines...pressing delete after the "]" brought up the next line to the same level...

Doing a diff gave:

Code:

RM696-21-3_PR_005:~# diff /usr/share/themes/fdb-originalv7.0a8/index.theme
 /usr/share/themes/fdb-originalv7.1a1/index.theme
--- /usr/share/themes/fdb-originalv7.0a8/index.theme
+++ /usr/share/themes/fdb-originalv7.1a1/index.theme
@@ -1,14 +1,14 @@
-[Desktop Entry]
+[Desktop Entry]
 Type=X-MeeGoTouch-Metatheme
-Name=FDB Original v7.0a8
+Name=FDB Original v7.1a1
 Encoding=UTF-8
 
 [X-MeeGoTouch-Metatheme]
 X-Inherits=blanco
-X-Icon="icon-l-fdbblue"
+X-Icon="icon-l-fdborig"
 X-Visible=true
 
 [X-DUI-Metatheme]
-X-Icon="icon-l-fdbblue"
+X-Icon="icon-l-fdborig"
 X-Inherits=blanco
 X-Visible=true


Edit: I was using nano and after deleting the whole line and re-adding it on fdb-originalv7.1a1 it WORKED! Fdb-red-test works too after doing the same!

Thanks a ton Vesuri!

Vesuri 2012-08-30 18:16

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1258058)
Could you correct me on this as I couldn't find any white spaces at the end of the lines...pressing delete after the "]" brought up the next line to the same level...

No white spaces at the end of the as I originally wrote, sorry. There's a byte order mark in the beginning of the file (before [Desktop Entry]) which confuses QSettings.

thedead1440 2012-08-30 18:22

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Vesuri sorry to bug you further :D

Could you help in why phone and mail don't work on fdb-originalv7.1a1 while working on fdb-originalv7.0a8 (Its a theme deficiency but I can't pinpoint what's wrong with them)...The tar.gz packages are in my earlier post...

Vesuri 2012-08-30 18:30

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Not right now but maybe later :)

thedead1440 2012-09-01 14:10

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Vesuri, F2thak fixed the problems with the themes...

Last two questions for you :D;

- can't the splash images located in /usr/share/themes/blanco/images/splash/ be added to a custom theme and then used from there? I've tried putting it into F2thak's fdb theme but it doesnt read from ~/fdb-original/meegotouch/images/splash/

- I saw your magenta theme is symlinked from the /opt folder. Does this have a signifcant increase in performance?


Thanks

Vesuri 2012-09-01 15:13

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
I don't know about the splash issue, sorry.

The symlinking has no performance benefits; it's only done that way because Store packages can only contain files under /opt/packagename (and a strict set of other directories, which does not contain /usr/share/themes/magenta).

efion 2012-12-28 09:47

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1259157)
Vesuri, F2thak fixed the problems with the themes...

Last two questions for you :D;

- can't the splash images located in /usr/share/themes/blanco/images/splash/ be added to a custom theme and then used from there? I've tried putting it into F2thak's fdb theme but it doesnt read from ~/fdb-original/meegotouch/images/splash/
- I saw your magenta theme is symlinked from the /opt folder. Does this have a signifcant increase in performance?


Thanks

same problem here
trying to copy statusarea.css from base to my blanco custom theme, but the status bar still won't change

trying the same method to blueliteinverted theme, it works
looks like there's dependencies issue on the blanco based theme


All times are GMT. The time now is 09:51.

vBulletin® Version 3.8.8