mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 21:39:16 +08:00
Restyle advanced settings category headers
This commit is contained in:
parent
9cd4419e1a
commit
437636d103
@ -307,6 +307,24 @@ QtObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Behavior on color { ColorAnimation { duration: 50; } }
|
Behavior on color { ColorAnimation { duration: 50; } }
|
||||||
|
Rectangle {
|
||||||
|
height: UM.Theme.sizes.default_lining.height
|
||||||
|
width: parent.width
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
color: {
|
||||||
|
if(!control.enabled) {
|
||||||
|
return UM.Theme.colors.setting_category_disabled_border;
|
||||||
|
} else if(control.hovered && control.checkable && control.checked) {
|
||||||
|
return UM.Theme.colors.setting_category_active_hover_border;
|
||||||
|
} else if(control.pressed || (control.checkable && control.checked)) {
|
||||||
|
return UM.Theme.colors.setting_category_active_border;
|
||||||
|
} else if(control.hovered) {
|
||||||
|
return UM.Theme.colors.setting_category_hover_border;
|
||||||
|
} else {
|
||||||
|
return UM.Theme.colors.setting_category_border;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
label: Item {
|
label: Item {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
@ -350,7 +368,7 @@ QtObject {
|
|||||||
sourceSize.width: width
|
sourceSize.width: width
|
||||||
sourceSize.height: width
|
sourceSize.height: width
|
||||||
color: UM.Theme.colors.setting_category_text
|
color: UM.Theme.colors.setting_category_text
|
||||||
source: control.checked ? UM.Theme.icons.arrow_bottom : UM.Theme.icons.arrow_right
|
source: control.checked ? UM.Theme.icons.arrow_bottom : UM.Theme.icons.arrow_left
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,6 +111,11 @@
|
|||||||
"setting_category_active": [255, 255, 255, 255],
|
"setting_category_active": [255, 255, 255, 255],
|
||||||
"setting_category_active_hover": [245, 245, 245, 255],
|
"setting_category_active_hover": [245, 245, 245, 255],
|
||||||
"setting_category_text": [24, 41, 77, 255],
|
"setting_category_text": [24, 41, 77, 255],
|
||||||
|
"setting_category_border": [127, 127, 127, 255],
|
||||||
|
"setting_category_disabled_border": [127, 127, 127, 255],
|
||||||
|
"setting_category_hover_border": [12, 159, 227, 255],
|
||||||
|
"setting_category_active_border": [245, 245, 245, 255],
|
||||||
|
"setting_category_active_hover_border": [12, 159, 227, 255],
|
||||||
|
|
||||||
"setting_control": [255, 255, 255, 255],
|
"setting_control": [255, 255, 255, 255],
|
||||||
"setting_control_selected": [24, 41, 77, 255],
|
"setting_control_selected": [24, 41, 77, 255],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user