mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
Album page landscape improvements
This commit is contained in:
parent
040aeb1a40
commit
a172b6d914
9 changed files with 433 additions and 199 deletions
|
@ -23,10 +23,30 @@ import QtQuick 2.6
|
|||
import Sailfish.Silica 1.0
|
||||
|
||||
QtObject {
|
||||
readonly property real libraryDelegateWidth: Screen.width / 3
|
||||
readonly property real libraryDelegateHeight: Screen.width / 3
|
||||
readonly property real libraryDelegateWidth: {
|
||||
switch(Screen.sizeCategory) {
|
||||
case Screen.Small:
|
||||
case Screen.Medium:
|
||||
return Screen.width / 3
|
||||
case Screen.Large:
|
||||
return Screen.width / 5
|
||||
case Screen.ExtraLarge:
|
||||
return Screen.width / 7
|
||||
}
|
||||
}
|
||||
readonly property real libraryDelegateHeight: {
|
||||
switch(Screen.sizeCategory) {
|
||||
case Screen.Small:
|
||||
case Screen.Medium:
|
||||
return Screen.width / 3
|
||||
case Screen.Large:
|
||||
return Screen.width / 5
|
||||
case Screen.ExtraLarge:
|
||||
return Screen.width / 7
|
||||
}
|
||||
}
|
||||
|
||||
readonly property real libraryDelegatePosterHeight: Screen.width / 2
|
||||
readonly property real libraryDelegatePosterHeight: libraryDelegateHeight * 1.6667
|
||||
|
||||
readonly property real libraryProgressHeight: Theme.paddingMedium
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue