mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 06:33:55 -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
|
||||
{
|
||||
model: distancesModel
|
||||
delegate: Button
|
||||
delegate: Cura.SecondaryButton
|
||||
{
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
width: height + UM.Theme.getSize("default_margin").width
|
||||
|
||||
text: model.label
|
||||
ButtonGroup.group: distanceGroup
|
||||
checkable: true
|
||||
checked: distancesRow.currentDistance == model.value
|
||||
color: distancesRow.currentDistance == model.value ? UM.Theme.getColor("primary_button") : UM.Theme.getColor("secondary_button")
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue