mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 22:50:14 +03:00
fixes for reversed interface
This commit is contained in:
parent
70501618d6
commit
9d33619415
@ -255,7 +255,13 @@ T.ComboBox {
|
||||
}
|
||||
|
||||
popup: T.Popup {
|
||||
x: control.mirrored ? control.width - width : popUpRelativeX
|
||||
x: {
|
||||
if (popUpRelativeX !== 0) {
|
||||
return control.mirrored ? -(width - popUpRelativeX) : popUpRelativeX
|
||||
}
|
||||
|
||||
return control.mirrored ? control.width - width : 0
|
||||
}
|
||||
y: control.height
|
||||
width: Math.max(control.width, control.minimumPopUpWidth)
|
||||
implicitHeight: contentItem.implicitHeight
|
||||
|
@ -86,7 +86,7 @@ Rectangle {
|
||||
|
||||
blankSpaceForEmptyIcons: comboBoxBlankSpaceForEmptyIcons
|
||||
forcePressed: comboBoxForcePressed
|
||||
popUpRelativeX: -(parent.width - width)
|
||||
popUpRelativeX: Qt.application.layoutDirection === Qt.RightToLeft ? root.width : -(parent.width - width)
|
||||
|
||||
minimumPopUpWidth: Math.max(comboBoxMinimumPopUpWidth, root.width)
|
||||
}
|
||||
|
@ -58,13 +58,11 @@ Item {
|
||||
|
||||
RowLayout {
|
||||
id: row
|
||||
|
||||
width: parent.width
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
LatteExtraControls.Header {
|
||||
id: headerText
|
||||
Layout.fillWidth: true
|
||||
text: item.text
|
||||
enabled: item.checked
|
||||
visible: level === 1
|
||||
@ -72,7 +70,6 @@ Item {
|
||||
|
||||
LatteExtraControls.SubHeader {
|
||||
id: subHeaderText
|
||||
Layout.fillWidth: true
|
||||
text: item.text
|
||||
enabled: item.checked
|
||||
visible: level === 2
|
||||
@ -80,7 +77,6 @@ Item {
|
||||
|
||||
PlasmaComponents.Label {
|
||||
id: labelText
|
||||
Layout.fillWidth: true
|
||||
text: item.text
|
||||
enabled: item.checked
|
||||
visible: level > 2
|
||||
|
@ -457,10 +457,16 @@ PlasmaComponents.Page {
|
||||
|| latteView.visibility.mode === Latte.Types.WindowsGoBelow)
|
||||
|
||||
LatteComponents.Header {
|
||||
Layout.fillWidth: true
|
||||
text: i18n("Delay")
|
||||
}
|
||||
|
||||
//! ghost object to provide full space to Delay ColumnLayout
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
text: " "
|
||||
height: 0
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
Layout.fillWidth: false
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user