Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

ThemeAppButton

Defines style of AppButton items. More...

Import Statement: import Felgo 4.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 the Theme::tintColor. On iOS, the default is transparent.


backgroundColorHovered : color [since Felgo 4.0.0]

The background color when the button is hovered.

This property was introduced in Felgo 4.0.0.


backgroundColorPressed : color [since Felgo 2.6.2]

The background color when the button is pressed.

This property was introduced in Felgo 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 [since Felgo 2.7.1]

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

This property was introduced in Felgo 2.7.1.


borderColorHovered : color [since Felgo 4.0.0]

The color of the border if the button is hovered.

This property was introduced in Felgo 4.0.0.


borderColorPressed : color [since Felgo 2.6.2]

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

This property was introduced in Felgo 2.6.2.


borderWidth : int

The width of the border. By default, the width is 1 on iOS and 0 on other platforms.


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 [since Felgo 2.6.2]

Whether a drop shadow should be added to the button. The default value is false on iOS and true on other platforms.

This property was introduced in Felgo 2.6.2.


flatMinimumWidth : real [since Felgo 2.6.2]

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

This property was introduced in Felgo 2.6.2.

See also ThemeAppButton::minimumWidth.


flatTextColor : color [since Felgo 2.6.2]

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 property was introduced in Felgo 2.6.2.


flatTextColorPressed : color [since Felgo 2.6.2]

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 property was introduced in Felgo 2.6.2.


fontBold : bool [since Felgo 2.6.2]

Whether the button text should be bold. The default is true on Android and false on other platforms.

This property was introduced in Felgo 2.6.2.


fontCapitalization : int [since Felgo 2.6.2]

The Text::font.capitalization setting of the button. The default is Font.AllUppercase on Android and Font.MixedCase on other platforms.

This property was introduced in Felgo 2.6.2.


horizontalMargin : real [since Felgo 2.6.2]

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

This property was introduced in Felgo 2.6.2.


horizontalPadding : real

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


innerSpacing : real [since Felgo 3.7.0]

The spacing between custom AppButton.leftItem or AppButton.rightItem and button text. The default value is

This property was introduced in Felgo 3.7.0.


minimumHeight : real

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


minimumWidth : real [since Felgo 2.6.2]

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

This property was introduced in Felgo 2.6.2.

See also ThemeAppButton::flatMinimumWidth.


radius : real

The corner radius of the button. The default value 4 on iOS and 0 on other platforms.


rippleEffect : bool [since Felgo 2.18.2]

Whether to show a ripple effect for the button. The default value is true for Android, false otherwise.

This property was introduced in Felgo 2.18.2.


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 Theme::tintColor on iOS, and white on other platforms.


textColorDisabled : color [since Felgo 2.7.1]

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

This property was introduced in Felgo 2.7.1.


textColorHovered : color [since Felgo 4.0.0]

The text color of the text if the button is hovered. ThemeAppButton::textColor is used by default.

This property was introduced in Felgo 4.0.0.


textColorPressed : color [since Felgo 2.6.2]

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

This property was introduced in Felgo 2.6.2.


textSize : int

The size of the button's text, in pixels. The default text size is 15 pixels on iOS and 12 pixels on other platforms.


verticalMargin : real [since Felgo 2.6.2]

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

This property was introduced in Felgo 2.6.2.


verticalPadding : real [since Felgo 2.7.0]

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

This property was introduced in Felgo 2.7.0.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded