ThemeAppButton

Defines style of AppButton items. More...

Import Statement: import VPlayApps 1.0
Inherits:

QtObject

Properties

Detailed Description

This type is used in the global Theme object for the appearance of AppButton items.

Property Documentation

backgroundColor : color

The background color fills the AppButton's background.

By default the backgroundColor matches Theme::tintColor.


backgroundColorPressed : color

The background color when the button is pressed.

This QML property was introduced in V-Play 2.6.2.


borderColor : color

The color of the border if borderWidth is greater than 0. By default the border color matches the textColor.


borderColorDisabled : color

The color of the border if borderWidth is greater than 0 and the button is disabled. Matches Theme::disabledColor by default.

This QML property was introduced in V-Play 2.7.1.


borderColorPressed : color

The color of the border if borderWidth is greater than 0. By default the border color matches the textColor.

This QML property was introduced in V-Play 2.6.2.


borderWidth : int

The width of the border. By default no border is shown (width is 0).


disabledColor : color

The disabled color fills the AppButton's background when AppButton::enabled is set to false.

By default the disabledColor matches platform-specific values.


dropShadow : bool

Whether a drop shadow should be added to the button. The default value is true.

This QML property was introduced in V-Play 2.6.2.


flatMinimumWidth : real

Specifies the minimum AppButton width if AppButton::flat is set to true. The default value is 64 pixels.

This QML property was introduced in V-Play 2.6.2.

See also ThemeAppButton::minimumWidth.


flatTextColor : color

The text color of the text displayed as label of the button if AppButton::flat is set to true. Matches Theme::tintColor by default.

This QML property was introduced in V-Play 2.6.2.


flatTextColorPressed : color

The text color of the text if the button is pressed and AppButton::flat is set to true. A derived value of the ThemeAppButton::flatTextColor is used by default.

This QML property was introduced in V-Play 2.6.2.


fontBold : bool

Whether the button text should be bold. The default is true.

This QML property was introduced in V-Play 2.6.2.


fontCapitalization : int

The Text::font.capitalization setting of the button. The default is Font.AllUppercase

This QML property was introduced in V-Play 2.6.2.


horizontalMargin : real

The margin to the left and right of the button. The default value is 8 pixels.

This QML property was introduced in V-Play 2.6.2.


horizontalPadding : real

The horizontal padding around the button's text, in pixels. The default padding is 8 pixels.


minimumHeight : real

The minimum height of the AppButton, in pixels. The default value is 36 pixels.


minimumWidth : real

Specifies the minimum AppButton width if AppButton::flat is set to false. The default value is 96 pixels.

This QML property was introduced in V-Play 2.6.2.

See also ThemeAppButton::flatMinimumWidth.


radius : real

The corner radius of the button. The default value is no radius (0).


textColor : color

The text color of the text displayed as label of the button if AppButton::flat is set to false.

By default this is set to white.


textColorDisabled : color

The text color of the text if the button is disabled. Matches Theme::disabledColor by default.

This QML property was introduced in V-Play 2.7.1.


textColorPressed : color

The text color of the text if the button is pressed. A derived value of the ThemeAppButton::textColor is used by default.

This QML property was introduced in V-Play 2.6.2.


textSize : int

The size of the button's text, in pixels. The default text size is 12 pixels.


verticalMargin : real

The margin at the top and the bottom of the button. The default value is 6 pixels.

This QML property was introduced in V-Play 2.6.2.


verticalPadding : real

The vertical padding around the button's text, in pixels. The default value is 3 pixels.

This QML property was introduced in V-Play 2.7.0.


Videos

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support