summaryrefslogtreecommitdiffstats
path: root/resources/qml/ToggleButton.qml
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-16 11:52:03 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-16 11:52:03 +0530
commit8c4f0a070e6e592e63726079bb43118614843fc3 (patch)
tree046f165e4d39899544bf0acb2b09df4b11a48fc4 /resources/qml/ToggleButton.qml
parentb5e351ab025fe751cd230371714cdee24125bfc4 (diff)
change togglebutton size, set textarea color to colors.text
Diffstat (limited to 'resources/qml/ToggleButton.qml')
-rw-r--r--resources/qml/ToggleButton.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/qml/ToggleButton.qml b/resources/qml/ToggleButton.qml
index 01aef4c6..59ec1a12 100644
--- a/resources/qml/ToggleButton.qml
+++ b/resources/qml/ToggleButton.qml
@@ -8,10 +8,11 @@ Switch {
indicator: Item {
implicitWidth: 48
- implicitHeight: 26
+ implicitHeight: 24
+ y: parent.height / 2 - height / 2
Rectangle {
- height: parent.height/2
+ height: 3 * parent.height/4
radius: height/2
width: parent.width - height
x: radius
@@ -22,11 +23,12 @@ Switch {
Rectangle {
x: toggleButton.checked ? parent.width - width : 0
+ y: parent.height / 2 - height / 2
width: parent.height
height: width
radius: width/2
color: toggleButton.down ? "whitesmoke" : "whitesmoke"
- border.color: "#999999"
+ border.color: "#ebebeb"
}
}
} \ No newline at end of file