chore: reverted changes made in #6561

This commit is contained in:
Khushboo-dev-cpp 2022-08-03 15:41:24 +02:00 committed by Lukáš Tinkl
parent 6e495596c6
commit 405eae1024
1 changed files with 22 additions and 15 deletions

View File

@ -51,21 +51,34 @@ Item {
control.padding: 4 control.padding: 4
control.popup.width: 342 control.popup.width: 342
control.popup.height: 416
control.popup.x: width - control.popup.width control.popup.x: width - control.popup.width
model: root.assets model: root.assets
control.background: Rectangle { control.background: Rectangle {
color: comboBox.control.hovered ? Theme.palette.directColor8 : "transparent" color: "transparent"
radius: 6 border.width: 1
border.color: comboBox.control.hovered ? Theme.palette.primaryColor2 : Theme.palette.directColor8
radius: 16
} }
contentItem: RowLayout { contentItem: RowLayout {
spacing: 4 spacing: 8
StatusBaseText {
Layout.maximumWidth: 50
Layout.leftMargin: 8
Layout.alignment: Qt.AlignVCenter
font.pixelSize: 15
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
color: Theme.palette.directColor1
font.weight: Font.Medium
text: d.text
}
StatusRoundedImage { StatusRoundedImage {
Layout.preferredWidth: 24 Layout.preferredWidth: 40
Layout.preferredHeight: 24 Layout.preferredHeight: 40
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
image.source: d.iconSource image.source: d.iconSource
image.onStatusChanged: { image.onStatusChanged: {
@ -74,17 +87,10 @@ Item {
} }
} }
} }
StatusBaseText {
font.pixelSize: 15
Layout.maximumWidth: 50
Layout.alignment: Qt.AlignVCenter
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
color: Theme.palette.directColor1
text: d.text
}
} }
control.indicator: null
delegate: StatusItemDelegate { delegate: StatusItemDelegate {
width: comboBox.control.popup.width width: comboBox.control.popup.width
highlighted: index === comboBox.control.highlightedIndex highlighted: index === comboBox.control.highlightedIndex
@ -141,6 +147,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
StatusBaseText { StatusBaseText {
Layout.fillWidth: true Layout.fillWidth: true
elide: Text.ElideRight
text: name text: name
color: Theme.palette.baseColor1 color: Theme.palette.baseColor1
font.pixelSize: 15 font.pixelSize: 15