This class contains Symbian platform specific style parameters for fonts, colors and layouts. These parameters should be used if you want to make your UI consistent with the platform style.
Symbian style is exposed as a context property called "platformStyle". It is not possible to instantiate a Style object in QML, but the style must be accessed through the context property.
Here's an example of how to use the parameters:
Item {
width: text.width + icon.width + platformStyle.paddingSmall + 2 * platformStyle.paddingMedium
height: Math.max(text.height, icon.height) + 2 * platformStyle.paddingMedium
Image {
id: icon
anchors.left: parent.left
anchors.leftMargin: platformStyle.paddingMedium
anchors.verticalCenter: parent.verticalCenter
width: platformStyle.graphicSizeSmall
height: platformStyle.graphicSizeSmall
...
}
Text {
id: text
anchors.left: icon.right
anchors.leftMargin: platformStyle.paddingSmall
anchors.right: parent.right
anchors.rightMargin: platformStyle.paddingMedium
anchors.verticalCenter: parent.verticalCenter
font.family: platformStyle.fontFamilyRegular
font.pixelSize: platformStyle.fontSizeLarge
color: platformStyle.colorNormalLight
...
}
}
The actual return values of the properties may vary between device configurations, e.g. if the resolutions of two devices are different it is probable that the pixel values of the properties are different.