Bar settings + Add widget: button-style trigger, fit inside panel

This commit is contained in:
Ryan Hughes
2026-05-18 02:18:07 -04:00
parent 030963768b
commit 135d21cae2
2 changed files with 11 additions and 11 deletions
@@ -23,6 +23,7 @@ Item {
property var options: []
property string placeholderText: "Search..."
property string emptyText: "No matches"
property string triggerLabel: ""
property color foreground: Color.foreground
property color background: Color.popups.background
@@ -136,8 +137,8 @@ Item {
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: 10
anchors.rightMargin: 6
text: root.currentLabel() || root.placeholderText
color: root.currentLabel() ? root.foreground : Qt.darker(root.foreground, 1.5)
text: root.currentLabel() || root.triggerLabel || root.placeholderText
color: (root.currentLabel() || root.triggerLabel) ? root.foreground : Qt.darker(root.foreground, 1.5)
font.family: root.fontFamily
font.pixelSize: 12
elide: Text.ElideRight