mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Make combobox font and padding customizable.
Style WorkspaceDialog comboboxes similar to MachineSelector CURA-9424
This commit is contained in:
parent
70f7f68a51
commit
da71983891
3 changed files with 29 additions and 2 deletions
|
@ -195,6 +195,17 @@ UM.Dialog
|
|||
model: resolveStrategiesModel
|
||||
textRole: "label"
|
||||
visible: manager.qualityChangesConflict
|
||||
contentLeftPadding: UM.Theme.getSize("default_margin").width
|
||||
textFont: UM.Theme.getFont("medium")
|
||||
|
||||
background: Cura.RoundedRectangle
|
||||
{
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
border.color: UM.Theme.getColor("lining")
|
||||
color: qualityChangesResolveComboBox.hovered ? UM.Theme.getColor("expandable_hover") : UM.Theme.getColor("action_button")
|
||||
cornerSide: Cura.RoundedRectangle.Direction.All
|
||||
radius: UM.Theme.getSize("default_radius").width
|
||||
}
|
||||
|
||||
// This is a hack. This will trigger onCurrentIndexChanged and set the index when this component in loaded
|
||||
currentIndex:
|
||||
|
@ -238,6 +249,17 @@ UM.Dialog
|
|||
model: resolveStrategiesModel
|
||||
textRole: "label"
|
||||
visible: manager.materialConflict
|
||||
contentLeftPadding: UM.Theme.getSize("default_margin").width
|
||||
textFont: UM.Theme.getFont("medium")
|
||||
|
||||
background: Cura.RoundedRectangle
|
||||
{
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
border.color: UM.Theme.getColor("lining")
|
||||
color: materialResolveComboBox.hovered ? UM.Theme.getColor("expandable_hover") : UM.Theme.getColor("action_button")
|
||||
cornerSide: Cura.RoundedRectangle.Direction.All
|
||||
radius: UM.Theme.getSize("default_radius").width
|
||||
}
|
||||
|
||||
// This is a hack. This will trigger onCurrentIndexChanged and set the index when this component in loaded
|
||||
currentIndex:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue