mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Swap flat buttons for Cura Styled buttons.
These "buttons" function like radiobuttons so a bit of extra styling needed to be added to swap appearance. Removed fixed width as it breaks centering with Cura buttons CURA-8980
This commit is contained in:
parent
41e04f2e9d
commit
61beb963c2
1 changed files with 4 additions and 4 deletions
|
@ -226,15 +226,15 @@ Item
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
model: distancesModel
|
model: distancesModel
|
||||||
delegate: Button
|
delegate: Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
height: UM.Theme.getSize("setting_control").height
|
height: UM.Theme.getSize("setting_control").height
|
||||||
width: height + UM.Theme.getSize("default_margin").width
|
|
||||||
|
|
||||||
text: model.label
|
text: model.label
|
||||||
ButtonGroup.group: distanceGroup
|
ButtonGroup.group: distanceGroup
|
||||||
checkable: true
|
color: distancesRow.currentDistance == model.value ? UM.Theme.getColor("primary_button") : UM.Theme.getColor("secondary_button")
|
||||||
checked: distancesRow.currentDistance == model.value
|
textColor: distancesRow.currentDistance == model.value ? UM.Theme.getColor("primary_button_text"): UM.Theme.getColor("secondary_button_text")
|
||||||
|
hoverColor: distancesRow.currentDistance == model.value ? UM.Theme.getColor("primary_button_hover"): UM.Theme.getColor("secondary_button_hover")
|
||||||
onClicked: distancesRow.currentDistance = model.value
|
onClicked: distancesRow.currentDistance = model.value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue