Merge pull request #11633 from Ultimaker/CURA-9012_application_menu_fixes

Application menu fixes
This commit is contained in:
Remco Burema 2022-03-10 12:55:54 +01:00 committed by GitHub
commit d2ab7d3d4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -79,7 +79,7 @@ Item
{
id: showTroubleShootingAction
onTriggered: Qt.openUrlExternally("https://ultimaker.com/en/troubleshooting?utm_source=cura&utm_medium=software&utm_campaign=dropdown-troubleshooting")
text: catalog.i18nc("@action:inmenu", "Show Online Troubleshooting Guide")
text: catalog.i18nc("@action:inmenu", "Show Online Troubleshooting")
}
Action

View file

@ -34,14 +34,16 @@ Item
{
text: menuBarItem.text.replace(new RegExp("&([A-Za-z])"), function (match, character)
{
return `<u>${character}</u>`;
return `<u>${character}</u>`
})
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
}
leftPadding: UM.Theme.getSize("default_margin").width
rightPadding: UM.Theme.getSize("default_margin").width
background: Rectangle
{
color: menuBarItem.highlighted ? UM.Theme.getColor("background_2") : "transparent"
}
}

View file

@ -18,4 +18,5 @@ MenuSeparator
implicitHeight: UM.Theme.getSize("default_lining").height
color: UM.Theme.getColor("setting_control_border")
}
height: visible ? implicitHeight: 0
}