mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NComboBox is too wide by default
This commit is contained in:
@@ -8,7 +8,7 @@ import qs.Widgets
|
||||
RowLayout {
|
||||
id: root
|
||||
|
||||
property real minimumWidth: 280 * Style.uiScaleRatio
|
||||
property real minimumWidth: 200 * Style.uiScaleRatio
|
||||
property real popupHeight: 180 * Style.uiScaleRatio
|
||||
|
||||
property string label: ""
|
||||
|
||||
@@ -19,7 +19,9 @@ RowLayout {
|
||||
signal exited
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
opacity: enabled ? 1.0 : 0.6
|
||||
spacing: Style.marginM
|
||||
|
||||
NLabel {
|
||||
label: root.label
|
||||
@@ -29,6 +31,8 @@ RowLayout {
|
||||
Rectangle {
|
||||
id: switcher
|
||||
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
implicitWidth: Math.round(root.baseSize * .85) * 2
|
||||
implicitHeight: Math.round(root.baseSize * .5) * 2
|
||||
radius: height * 0.5
|
||||
|
||||
Reference in New Issue
Block a user