fix(menus): align menus and actions with KDE HIG
This commit is contained in:
1 parent
e7760e22e0
commit
b772f37c07
18 files changed
+170
-47
No files matched your search
@@ -6,10 +6,12 @@ pragma ComponentBehavior: Bound
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.ki18n
|
||||
|
||||
AppMenu {
|
||||
id: root
|
||||
icon.name: "document-open-recent"
|
||||
|
||||
required property Actions actions
|
||||
|
||||
@@ -23,11 +25,12 @@ AppMenu {
|
||||
required property string name
|
||||
required property string path
|
||||
text: name
|
||||
textElide: Text.ElideMiddle
|
||||
onTriggered: root.actions.fileOpenRequested(url)
|
||||
|
||||
ToolTip.text: path
|
||||
ToolTip.visible: hovered
|
||||
ToolTip.delay: 1000
|
||||
ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||
}
|
||||
onObjectAdded: (index, object) => root.insertItem(index, object)
|
||||
onObjectRemoved: (index, object) => root.removeItem(object)
|
||||
|
||||
Reference in new issue
Block a user