mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Theme radio_button size
This commit is contained in:
parent
4e5d08f320
commit
6742348a95
2 changed files with 7 additions and 5 deletions
|
@ -147,19 +147,19 @@ ScrollView
|
||||||
|
|
||||||
indicator: Rectangle
|
indicator: Rectangle
|
||||||
{
|
{
|
||||||
implicitWidth: 16
|
implicitWidth: UM.Theme.getSize("radio_button").width
|
||||||
implicitHeight: 16
|
implicitHeight: UM.Theme.getSize("radio_button").height
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
radius: width / 2
|
radius: (width / 2) | 0
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
border.color: radioButton.hovered ? UM.Theme.getColor("small_button_text") : UM.Theme.getColor("small_button_text_hover")
|
border.color: radioButton.hovered ? UM.Theme.getColor("small_button_text") : UM.Theme.getColor("small_button_text_hover")
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
width: parent.width / 2
|
width: (parent.width / 2) | 0
|
||||||
height: width
|
height: width
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
radius: width / 2
|
radius: (width / 2) | 0
|
||||||
color: radioButton.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button")
|
color: radioButton.hovered ? UM.Theme.getColor("primary_button_hover") : UM.Theme.getColor("primary_button")
|
||||||
visible: radioButton.checked
|
visible: radioButton.checked
|
||||||
}
|
}
|
||||||
|
|
|
@ -513,6 +513,8 @@
|
||||||
"action_button_icon": [1.0, 1.0],
|
"action_button_icon": [1.0, 1.0],
|
||||||
"action_button_radius": [0.15, 0.15],
|
"action_button_radius": [0.15, 0.15],
|
||||||
|
|
||||||
|
"radio_button": [1.3, 1.3],
|
||||||
|
|
||||||
"small_button": [2, 2],
|
"small_button": [2, 2],
|
||||||
"small_button_icon": [1.5, 1.5],
|
"small_button_icon": [1.5, 1.5],
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue