Standardize spacings

This commit is contained in:
miruka
2019-07-16 05:29:47 -04:00
parent d302a5cf5f
commit d2dfafb4e7
17 changed files with 35 additions and 44 deletions

View File

@@ -12,9 +12,8 @@ Page {
property bool wide: width > 414 + padding * 2
property int avatarPreferredSize: theme.minimumSupportedWidth
property int normalSpacing: 8
property int currentSpacing:
Math.min(normalSpacing * width / 400, normalSpacing * 2)
Math.min(theme.spacing * width / 400, theme.spacing * 2)
property string userId: ""
readonly property var userInfo: users.find(userId)
@@ -53,7 +52,7 @@ Page {
background: null
leftPadding: currentSpacing < 8 ? 0 : currentSpacing
leftPadding: currentSpacing < theme.spacing ? 0 : currentSpacing
rightPadding: leftPadding
Behavior on leftPadding { HNumberAnimation {} }
@@ -67,7 +66,7 @@ Page {
HColumnLayout {
id: boxColumn
spacing: 16
spacing: theme.spacing * 2
width: flickable.width
height: flickable.height