[MeeGo-dev] How to customize a theme for an application?

2011-06-09 Thread fiona.c.chan
Hi,

I am new to Meego dev and was wondering if it is possible to customize a theme 
for an application? I am trying to use a customized set of graphics for an 
application. I tried to create a similar theme structure and use MTheme class 
but was not very successful.

Thanks in advance!
Fiona Chan



___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Re: [MeeGo-dev] How to customize a theme for an application?

2011-06-09 Thread Michael Hasselmann
On Thu, 2011-06-09 at 21:14 +, fiona.c.c...@nokia.com wrote:
 Hi,
  
 I am new to Meego dev and was wondering if it is possible to customize
 a theme for an application? I am trying to use a customized set of
 graphics for an application. I tried to create a similar theme
 structure and use MTheme class but was not very successful.

MTheme and /usr/share/themes/*/meegotouch is only relevant for MeeGo
Touch applications, but since MeeGo Touch is on its way out, for MeeGo
1.3, you might not want to spend too much time with that.

OTOH, there will be no official theming engine for MeeGo 1.3, as far as
I know ...

Anyway, to answer your question, you should only have to replace the
SVG's (make sure you keep the id's inside valid! And also, only group
elements can have id's) and the PNG's. If you create a new theme, you
can switch to it with:

$ gconftool-2 -s /meegotouch/theme/name -t string name-of-my-theme

If you also tap into the CSS files or even MeeGo Touch views (requires C
++), theming can change the behaviour of all MeeGo Touch apps even :-)

regards,
Michael


___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] How to customize a theme for an application?

2011-06-09 Thread fiona.c.chan
Thanks for the info, Michael. 

For your suggestion on replacing the SVGs, this will affect all other 
applications?  Is there perhaps a way that I can have the themeserver load a 
customized theme when only a particular application is launched?

Thanks  Regards
Fiona

-Original Message-
From: ext Michael Hasselmann [mailto:micha...@openismus.com] 
Sent: Thursday, June 09, 2011 2:31 PM
To: Chan Fiona.C (Nokia-S/Vancouver)
Cc: meego-dev@meego.com
Subject: Re: [MeeGo-dev] How to customize a theme for an application?

On Thu, 2011-06-09 at 21:14 +, fiona.c.c...@nokia.com wrote:
 Hi,
  
 I am new to Meego dev and was wondering if it is possible to customize
 a theme for an application? I am trying to use a customized set of
 graphics for an application. I tried to create a similar theme
 structure and use MTheme class but was not very successful.

MTheme and /usr/share/themes/*/meegotouch is only relevant for MeeGo
Touch applications, but since MeeGo Touch is on its way out, for MeeGo
1.3, you might not want to spend too much time with that.

OTOH, there will be no official theming engine for MeeGo 1.3, as far as
I know ...

Anyway, to answer your question, you should only have to replace the
SVG's (make sure you keep the id's inside valid! And also, only group
elements can have id's) and the PNG's. If you create a new theme, you
can switch to it with:

$ gconftool-2 -s /meegotouch/theme/name -t string name-of-my-theme

If you also tap into the CSS files or even MeeGo Touch views (requires C
++), theming can change the behaviour of all MeeGo Touch apps even :-)

regards,
Michael


___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines