mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 19:35:29 +02:00
allow specifying fontSize for uit-controls Button, expose impliciTextWidth to allow adjust-to-content type of sizing
This commit is contained in:
parent
5ebe26887d
commit
a88a851f15
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,8 @@ Original.Button {
|
|||
|
||||
property int color: 0
|
||||
property int colorScheme: hifi.colorSchemes.light
|
||||
property int fontSize: hifi.fontSizes.buttonLabel
|
||||
property alias implicitTextWidth: buttonText.implicitWidth
|
||||
property string buttonGlyph: "";
|
||||
|
||||
width: hifi.dimensions.buttonWidth
|
||||
|
@ -108,7 +110,7 @@ Original.Button {
|
|||
font.capitalization: Font.AllUppercase
|
||||
color: enabled ? hifi.buttons.textColor[control.color]
|
||||
: hifi.buttons.disabledTextColor[control.colorScheme]
|
||||
size: hifi.fontSizes.buttonLabel
|
||||
size: control.fontSize
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: control.text
|
||||
|
|
Loading…
Reference in a new issue