
Defines style of AppButton items. More...
Import Statement: | import Felgo 3.0 |
Inherits: |
This type is used in the global Theme object for the appearance of AppButton items.
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 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 |
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.
borderColorPressed : color |
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 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 property was introduced in Felgo 2.6.2.
flatMinimumWidth : real |
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 |
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 |
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 |
Whether the button text should be bold. The default is true
.
This property was introduced in Felgo 2.6.2.
fontCapitalization : int |
The Text::font.capitalization setting of the button. The default is Font.AllUppercase
This property was introduced in Felgo 2.6.2.
horizontalMargin : real |
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 |
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 property was introduced in Felgo 2.6.2.
See also ThemeAppButton::flatMinimumWidth.
radius : real |
The corner radius of the button. The default value is no radius (0).
rippleEffect : bool |
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 white
.
textColorDisabled : color |
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.
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 property was introduced in Felgo 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 property was introduced in Felgo 2.6.2.
verticalPadding : real |
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.