mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:58:59 +08:00
Fix simple mode infill buttons hover border
This commit is contained in:
parent
5b01ce7f96
commit
9cd4419e1a
@ -95,7 +95,7 @@ Item
|
|||||||
height: width
|
height: width
|
||||||
|
|
||||||
border.color: (infillListView.activeIndex == index) ? UM.Theme.colors.setting_control_selected :
|
border.color: (infillListView.activeIndex == index) ? UM.Theme.colors.setting_control_selected :
|
||||||
(parent.hovered ? UM.Theme.colors.setting_control_border_highlight : UM.Theme.colors.setting_control_border)
|
(mousearea.containsMouse ? UM.Theme.colors.setting_control_border_highlight : UM.Theme.colors.setting_control_border)
|
||||||
border.width: UM.Theme.sizes.default_lining.width
|
border.width: UM.Theme.sizes.default_lining.width
|
||||||
color: infillListView.activeIndex == index ? UM.Theme.colors.setting_control_selected : "transparent"
|
color: infillListView.activeIndex == index ? UM.Theme.colors.setting_control_selected : "transparent"
|
||||||
|
|
||||||
@ -111,6 +111,7 @@ Item
|
|||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
id: mousearea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (infillListView.activeIndex != index)
|
if (infillListView.activeIndex != index)
|
||||||
@ -119,6 +120,7 @@ Item
|
|||||||
UM.MachineManager.setSettingValue("infill_sparse_density", model.percentage)
|
UM.MachineManager.setSettingValue("infill_sparse_density", model.percentage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
hoverEnabled: true
|
||||||
cursorShape: (infillListView.activeIndex != index) ? Qt.PointingHandCursor : Qt.ArrowCursor
|
cursorShape: (infillListView.activeIndex != index) ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user