summaryrefslogtreecommitdiff
path: root/components/Button.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/Button.qml')
-rw-r--r--components/Button.qml14
1 files changed, 13 insertions, 1 deletions
diff --git a/components/Button.qml b/components/Button.qml
index 4ae591d1..730f2d05 100644
--- a/components/Button.qml
+++ b/components/Button.qml
@@ -59,14 +59,26 @@ BasicButton {
sunken: pressed || checked
raised: !(pressed || checked)
hover: containsMouse
- text: iconSource === "" ? "" : button.text
+// text: iconSource === "" ? "" : button.text
hasFocus: button.focus
hint: button.styleHint
// If no icon, let the style do the drawing
activeControl: defaultbutton ? "default" : "f"
+
+ Text {
+ id:text
+ color: textColor
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ text: button.text
+ horizontalAlignment: Text.Center
+ renderType: Desktop.nativeTextRendering ? Text.NativeRendering : Text.QtRendering
+ }
}
+
// ## TODO: move to style implementation
// label: Item {
// // Used as a fallback since I can't pass the imageURL