mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 15:03:15 +08:00
More layout and font fixes
This commit is contained in:
parent
1476e95adc
commit
4f77b2ea6d
@ -96,7 +96,7 @@ SettingItem
|
|||||||
{
|
{
|
||||||
text: modelData.value
|
text: modelData.value
|
||||||
color: control.contentItem.color
|
color: control.contentItem.color
|
||||||
font: control.font
|
font: UM.Theme.getFont("default")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ SettingItem
|
|||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
color: UM.Theme.getColor("setting_control_text")
|
color: UM.Theme.getColor("setting_control_text")
|
||||||
font: control.font
|
font: UM.Theme.getFont("default")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ SettingItem
|
|||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
color: UM.Theme.getColor("setting_control_text")
|
color: UM.Theme.getColor("setting_control_text")
|
||||||
font: control.font
|
font: UM.Theme.getFont("default")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
@ -175,13 +175,10 @@ Rectangle
|
|||||||
anchors.leftMargin: model.index * Math.floor(settingsModeSelection.width / 2)
|
anchors.leftMargin: model.index * Math.floor(settingsModeSelection.width / 2)
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
text: model.text
|
|
||||||
|
|
||||||
ButtonGroup.group: modeMenuGroup
|
ButtonGroup.group: modeMenuGroup
|
||||||
|
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: base.currentModeIndex == index
|
checked: base.currentModeIndex == index
|
||||||
|
|
||||||
onClicked: base.currentModeIndex = index
|
onClicked: base.currentModeIndex = index
|
||||||
|
|
||||||
onHoveredChanged:
|
onHoveredChanged:
|
||||||
@ -201,7 +198,7 @@ Rectangle
|
|||||||
|
|
||||||
contentItem: Text
|
contentItem: Text
|
||||||
{
|
{
|
||||||
text: control.text
|
text: model.text
|
||||||
color: (control.checked || control.pressed) ? UM.Theme.getColor("action_button_active") : control.hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
|
color: (control.checked || control.pressed) ? UM.Theme.getColor("action_button_active") : control.hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
|
||||||
font: control.font
|
font: control.font
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user