mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 04:25:56 +08:00
Auto-adjust mode tab position based on text length
CURA-4322
This commit is contained in:
parent
4ed5796e6f
commit
5df5dfec02
@ -125,7 +125,6 @@ Rectangle
|
|||||||
font: UM.Theme.getFont("large")
|
font: UM.Theme.getFont("large")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
visible: !monitoringPrint
|
visible: !monitoringPrint
|
||||||
elide: Text.ElideRight
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@ -135,7 +134,17 @@ Rectangle
|
|||||||
height: UM.Theme.getSize("sidebar_header_mode_toggle").height
|
height: UM.Theme.getSize("sidebar_header_mode_toggle").height
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: UM.Theme.getSize("sidebar_margin").width
|
anchors.rightMargin: UM.Theme.getSize("sidebar_margin").width
|
||||||
anchors.top: headerSeparator.bottom
|
anchors.top:
|
||||||
|
{
|
||||||
|
if (settingsModeLabel.contentWidth >= parent.width - width - UM.Theme.getSize("sidebar_margin").width)
|
||||||
|
{
|
||||||
|
return settingsModeLabel.bottom;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return headerSeparator.bottom;
|
||||||
|
}
|
||||||
|
}
|
||||||
anchors.topMargin: UM.Theme.getSize("sidebar_margin").height
|
anchors.topMargin: UM.Theme.getSize("sidebar_margin").height
|
||||||
visible: !monitoringPrint && !hideSettings
|
visible: !monitoringPrint && !hideSettings
|
||||||
Component{
|
Component{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user