Landscape mode support, better square view layout
This commit is contained in:
parent
9eb422f892
commit
56c9139dd2
3 changed files with 9 additions and 8 deletions
|
@ -56,9 +56,12 @@ Rectangle {
|
||||||
id: contents
|
id: contents
|
||||||
property int border: parent.width * 0.1
|
property int border: parent.width * 0.1
|
||||||
width: parent.fullWidth ? parent.width : (parent.width - 2 * border)
|
width: parent.fullWidth ? parent.width : (parent.width - 2 * border)
|
||||||
property int maxHeight: parent.height - 4 * border
|
property int maxHeight: parent.height - toolbar.height
|
||||||
height: ((page.contentHeight > 0 && page.contentHeight < maxHeight) ? page.contentHeight : maxHeight) * parent.opacity
|
height: ((page.contentHeight > 0 && page.contentHeight < maxHeight) ? page.contentHeight : maxHeight) * parent.opacity
|
||||||
anchors.centerIn: parent
|
anchors {
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
top: parent.top
|
||||||
|
}
|
||||||
color: Constants.colors.dialog
|
color: Constants.colors.dialog
|
||||||
clip: true
|
clip: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,8 @@ Item {
|
||||||
|
|
||||||
GPodderPodcastListModel { id: podcastListModel }
|
GPodderPodcastListModel { id: podcastListModel }
|
||||||
|
|
||||||
property real scalef: width / 480
|
property real scalef: (width < height) ? (width / 480) : (height / 480)
|
||||||
|
property int shorterSide: (width < height) ? width : height
|
||||||
property int dialogsVisible: 0
|
property int dialogsVisible: 0
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
@ -44,11 +44,6 @@ Dialog {
|
||||||
width: flickable.width
|
width: flickable.width
|
||||||
spacing: 10 * pgst.scalef
|
spacing: 10 * pgst.scalef
|
||||||
|
|
||||||
SlidePageHeader {
|
|
||||||
title: 'Now playing'
|
|
||||||
color: Constants.colors.playback
|
|
||||||
}
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
|
@ -56,6 +51,8 @@ Dialog {
|
||||||
margins: 30 * pgst.scalef
|
margins: 30 * pgst.scalef
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item { width: parent.width; height: 20 * pgst.scalef }
|
||||||
|
|
||||||
PLabel {
|
PLabel {
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue