summary refs log tree commit diff
path: root/resources/qml/ToggleButton.qml
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-16 22:22:55 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-16 22:22:55 +0530
commitf76f7b7f8adaf6fd1727b30c0e1af5e5adacfe7b (patch)
treed43f5051ea94b798ca4732f0add1432fddc25ade /resources/qml/ToggleButton.qml
parentchange togglebutton size, set textarea color to colors.text (diff)
downloadnheko-f76f7b7f8adaf6fd1727b30c0e1af5e5adacfe7b.tar.xz
fixed roomsettings spacing and toggle button right align bug
Diffstat (limited to 'resources/qml/ToggleButton.qml')
-rw-r--r--resources/qml/ToggleButton.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/qml/ToggleButton.qml b/resources/qml/ToggleButton.qml
index 59ec1a12..dfef6207 100644
--- a/resources/qml/ToggleButton.qml
+++ b/resources/qml/ToggleButton.qml
@@ -5,8 +5,10 @@ import im.nheko 1.0
 
 Switch {
     id: toggleButton
+    implicitWidth: indicatorItem.width
 
 	indicator: Item {
+        id: indicatorItem
         implicitWidth: 48
         implicitHeight: 24
         y: parent.height / 2 - height / 2