Theme
The Theme class provides facilities to interact with the current theme. More...
Properties
Methods
- Component createStyleComponent(string styleName, object parent)
Detailed Description
A global instance is exposed as the Theme context property.
The theme defines the visual aspect of the Ubuntu components.
Example changing the current theme:
import QtQuick 2.0 import Ubuntu.Components 0.1 Item { Button { onClicked: Theme.name = "Ubuntu.Components.Themes.Ambiance" } }
Example creating a style component:
import QtQuick 2.0 import Ubuntu.Components 0.1 StyledItem { id: myItem style: Theme.createStyleComponent("MyItemStyle.qml", myItem) }
See also StyledItem.
Property Documentation
Method Documentation
Returns an instance of the style component named styleName.