From 8c4f0a070e6e592e63726079bb43118614843fc3 Mon Sep 17 00:00:00 2001 From: Jedi18 Date: Tue, 16 Feb 2021 11:52:03 +0530 Subject: change togglebutton size, set textarea color to colors.text --- resources/qml/RoomSettings.qml | 3 ++- resources/qml/ToggleButton.qml | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'resources/qml') diff --git a/resources/qml/RoomSettings.qml b/resources/qml/RoomSettings.qml index eebecebb..dd5c85d3 100644 --- a/resources/qml/RoomSettings.qml +++ b/resources/qml/RoomSettings.qml @@ -113,8 +113,9 @@ ApplicationWindow { wrapMode: TextEdit.WordWrap readOnly: true background: null - horizontalAlignment: TextEdit.AlignHCenter selectByMouse: true + color: colors.text + horizontalAlignment: TextEdit.AlignHCenter } } 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 -- cgit 1.4.1