Defines style of AppButton items. More...
Import Statement: | import Felgo 4.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 the Theme::tintColor. On iOS, the default is transparent
.
[since Felgo 4.0.0] backgroundColorHovered : color |
The background color when the button is hovered.
This property was introduced in Felgo 4.0.0.
[since Felgo 2.6.2] 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.
[since Felgo 2.7.1] 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.
[since Felgo 4.0.0] borderColorHovered : color |
The color of the border if the button is hovered.
This property was introduced in Felgo 4.0.0.
[since Felgo 2.6.2] 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, 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.
[since Felgo 2.6.2] dropShadow : bool |
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.
[since 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.
[since Felgo 2.6.2] 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.
[since 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.
[since Felgo 2.6.2] fontBold : bool |
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.
[since Felgo 2.6.2] fontCapitalization : int |
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.
[since 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.
[since Felgo 3.7.0] innerSpacing : real |
minimumHeight : real |
The minimum height of the AppButton, in pixels. The default value is 36 pixels.
[since Felgo 2.6.2] 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 4
on iOS and 0
on other platforms.
[since Felgo 2.18.2] 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 Theme::tintColor on iOS, and white
on other platforms.
[since Felgo 2.7.1] 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.
[since Felgo 4.0.0] textColorHovered : color |
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.
[since Felgo 2.6.2] 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 15
pixels on iOS and 12
pixels on other platforms.
[since Felgo 2.6.2] 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.
[since Felgo 2.7.0] 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.