mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Fix checkboxes not showing check marks when disabled.
Update checkboxes to align with new designs. Update SettingCheckBox to match checkbox styling. Remove duplicated styling inside cura-dark/theme.json CURA-8991
This commit is contained in:
parent
2ed68beb22
commit
a26b54f6e2
3 changed files with 14 additions and 20 deletions
|
@ -11,7 +11,7 @@ SettingItem
|
|||
{
|
||||
id: base
|
||||
property var focusItem: control
|
||||
|
||||
enabled: false
|
||||
contents: MouseArea
|
||||
{
|
||||
id: control
|
||||
|
@ -98,7 +98,7 @@ SettingItem
|
|||
{
|
||||
if(!enabled)
|
||||
{
|
||||
return UM.Theme.getColor("checkbox_border")
|
||||
return UM.Theme.getColor("checkbox_border_disabled")
|
||||
}
|
||||
switch (propertyProvider.properties.validationState)
|
||||
{
|
||||
|
@ -116,7 +116,7 @@ SettingItem
|
|||
{
|
||||
return UM.Theme.getColor("checkbox_border_hover")
|
||||
}
|
||||
return UM.Theme.getColor("setting_control_border")
|
||||
return UM.Theme.getColor("checkbox_border")
|
||||
}
|
||||
|
||||
color: {
|
||||
|
@ -138,7 +138,7 @@ SettingItem
|
|||
// Validation is OK.
|
||||
if (control.containsMouse || control.activeFocus)
|
||||
{
|
||||
return UM.Theme.getColor("setting_control_highlight")
|
||||
return UM.Theme.getColor("checkbox_hover")
|
||||
}
|
||||
return UM.Theme.getColor("checkbox")
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ SettingItem
|
|||
height: UM.Theme.getSize("checkbox_mark").height
|
||||
width: UM.Theme.getSize("checkbox_mark").width
|
||||
sourceSize.height: width
|
||||
color: !enabled ? UM.Theme.getColor("setting_control_disabled_text") : UM.Theme.getColor("setting_control_text");
|
||||
color: !enabled ? UM.Theme.getColor("checkbox_mark_disabled") : UM.Theme.getColor("checkbox_mark");
|
||||
source: UM.Theme.getIcon("Check", "low")
|
||||
opacity: control.checked ? 1 : 0
|
||||
Behavior on opacity { NumberAnimation { duration: 100; } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue