![]() |
Dev question
http://harmattan-dev.nokia.com/docs/...ation_view.png
Some simple questions i just cannot find the answer to! How do I change colour of the toolbar (4)? Is it possible for me to create some kind of theme that would simultaneously handle colours of my whole app (2-4)? And lastly, how do I show the status bar (1)? thanks! |
Re: Dev question
Nobody?
this is really starting to bug me :/ |
Re: Dev question
You can change the colours, enable developer mode on your phone and install the examples you can change the various colours using the menu.
The source code for this is here: http://qt.gitorious.org/qt-component...s/trees/master under examples/meego see: http://qt.gitorious.org/qt-component...y/qml/main.qml See the Menu {......} item Quote:
Quote:
Quote:
|
Re: Dev question
I guess we are talking about qml plugins, and not meego touch framework.
Toolbar only has two colours, one for light theme and one for the dark one. Only one toolbar element is instanced within the PageStack element, and it provides animations when changing page. Considering everything in qml is an "Item" element, you may create your own toolbar and put ToolIcons there if you need more customization. Theming your app is a bit time consuming. One option is to have a myTheme alias which binds to the current theme, which has to be a QtObject (or a QObject, don't remember how they are called in qml) which contains your values, like buttonsWidth, buttonGradientStartColour etc. Than your custom components just need to have their themable values binded to your alias, like width: myTheme.buttonWidth. When you need to change theme just change myTheme alias and all the customized components will switch theme accordly. Something in case you don't know, there are 19 colour themes for Meego components. Usage of themes is not directly possible in qml, you need to extend current components changing their images urls. A status bar is already instanced within a PageStack element, otherwise you can create one using Meego components. |
Re: Dev question
gionni88 It is possible to change the themes directly from QML see the second link in my post.
|
Re: Dev question
Quote:
EDIT: do you know in which PR this feature was included? |
Re: Dev question
Quote:
|
Re: Dev question
The annoying thing is that the command to change theme universally breaks simulator and ovi store support. By the way does anyone know how to include pr1.2 qt components in simulator?
|
Re: Dev question
Quote:
Using the qt update thing you can say include PR1.2 runtime which should include PR1.2 stuff. Or you can say import com.nokia.meego 1.0 instead of 1.1 for PR1.2 |
All times are GMT. The time now is 23:50. |
vBulletin® Version 3.8.8