mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
change togglebutton size, set textarea color to colors.text
This commit is contained in:
parent
b5e351ab02
commit
8c4f0a070e
2 changed files with 7 additions and 4 deletions
|
@ -113,8 +113,9 @@ ApplicationWindow {
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
readOnly: true
|
readOnly: true
|
||||||
background: null
|
background: null
|
||||||
horizontalAlignment: TextEdit.AlignHCenter
|
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
color: colors.text
|
||||||
|
horizontalAlignment: TextEdit.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,11 @@ Switch {
|
||||||
|
|
||||||
indicator: Item {
|
indicator: Item {
|
||||||
implicitWidth: 48
|
implicitWidth: 48
|
||||||
implicitHeight: 26
|
implicitHeight: 24
|
||||||
|
y: parent.height / 2 - height / 2
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
height: parent.height/2
|
height: 3 * parent.height/4
|
||||||
radius: height/2
|
radius: height/2
|
||||||
width: parent.width - height
|
width: parent.width - height
|
||||||
x: radius
|
x: radius
|
||||||
|
@ -22,11 +23,12 @@ Switch {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
x: toggleButton.checked ? parent.width - width : 0
|
x: toggleButton.checked ? parent.width - width : 0
|
||||||
|
y: parent.height / 2 - height / 2
|
||||||
width: parent.height
|
width: parent.height
|
||||||
height: width
|
height: width
|
||||||
radius: width/2
|
radius: width/2
|
||||||
color: toggleButton.down ? "whitesmoke" : "whitesmoke"
|
color: toggleButton.down ? "whitesmoke" : "whitesmoke"
|
||||||
border.color: "#999999"
|
border.color: "#ebebeb"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue