mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
sync with mobilecomponents 9d8bf6d77d
- Fixes interactivity in context drawer. - These are mostly cleanups that have been done pre-merge of these components. This now is the state of master in plasma-mobile. - makes navigation a bit more intuitive Signed-off-by: Sebastian Kügler <sebas@kde.org>
This commit is contained in:
parent
72411eee63
commit
b6f5f235f0
9 changed files with 74 additions and 62 deletions
|
@ -46,7 +46,7 @@ OverlayDrawer {
|
|||
|
||||
Layout.preferredWidth: title.implicitWidth
|
||||
Layout.preferredHeight: bannerImageSource != "" ? Math.max(title.implicitHeight, Math.floor(width / (sourceSize.width/sourceSize.height))) : title.implicitHeight
|
||||
Layout.minimumHeight: Math.max(headingIcon.height, heading.height) + Units.smallSpacing*2
|
||||
Layout.minimumHeight: Math.max(headingIcon.height, heading.height) + Units.smallSpacing * 2
|
||||
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
asynchronous: true
|
||||
|
@ -97,8 +97,8 @@ OverlayDrawer {
|
|||
color: bannerImageSource != "" ? "white" : Theme.textColor
|
||||
}
|
||||
Item {
|
||||
height: parent.height
|
||||
Layout.minimumWidth: height
|
||||
height: 1
|
||||
Layout.minimumWidth: heading.height
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -157,9 +157,7 @@ OverlayDrawer {
|
|||
source: "go-previous"
|
||||
}
|
||||
Label {
|
||||
// Weird, this doesn't work
|
||||
//text: (typeof(i18n) != undefined) ? i18n("Back") : "Back"
|
||||
text: "Back"
|
||||
text: typeof i18n !== "undefined" ? i18n("Back") : "Back"
|
||||
}
|
||||
}
|
||||
onClicked: pageRow.pop()
|
||||
|
@ -167,7 +165,7 @@ OverlayDrawer {
|
|||
delegate: ListItem {
|
||||
enabled: true
|
||||
RowLayout {
|
||||
height: implicitHeight + Units.smallSpacing*2
|
||||
height: implicitHeight + Units.smallSpacing * 2
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue