Standardize spacings
This commit is contained in:
@@ -8,7 +8,7 @@ import "../../utils.js" as Utils
|
||||
|
||||
Row {
|
||||
id: messageContent
|
||||
spacing: standardSpacing / 2
|
||||
spacing: theme.spacing / 2
|
||||
layoutDirection: isOwn ? Qt.RightToLeft : Qt.LeftToRight
|
||||
|
||||
HUserAvatar {
|
||||
|
||||
@@ -55,9 +55,8 @@ Column {
|
||||
)
|
||||
|
||||
|
||||
property int standardSpacing: 16
|
||||
property int horizontalPadding: 6
|
||||
property int verticalPadding: 4
|
||||
readonly property int horizontalPadding: theme.spacing
|
||||
readonly property int verticalPadding: theme.spacing / 2
|
||||
|
||||
ListView.onAdd: {
|
||||
var nextDelegate = eventList.contentItem.children[index]
|
||||
@@ -68,10 +67,10 @@ Column {
|
||||
|
||||
topPadding:
|
||||
isFirstEvent ? 0 :
|
||||
dayBreak ? standardSpacing * 2 :
|
||||
talkBreak ? standardSpacing * 3 :
|
||||
combine ? standardSpacing / 4 :
|
||||
standardSpacing
|
||||
dayBreak ? theme.spacing * 4 :
|
||||
talkBreak ? theme.spacing * 6 :
|
||||
combine ? theme.spacing / 2 :
|
||||
theme.spacing * 2
|
||||
|
||||
Loader {
|
||||
source: dayBreak ? "Daybreak.qml" : ""
|
||||
|
||||
@@ -8,8 +8,6 @@ import "../../Base"
|
||||
HRectangle {
|
||||
property alias listView: eventList
|
||||
|
||||
property int space: 8
|
||||
|
||||
color: theme.chat.eventList.background
|
||||
|
||||
HListView {
|
||||
@@ -28,11 +26,11 @@ HRectangle {
|
||||
delegate: EventDelegate {}
|
||||
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: space
|
||||
anchors.rightMargin: space
|
||||
anchors.leftMargin: theme.spacing
|
||||
anchors.rightMargin: theme.spacing
|
||||
|
||||
topMargin: space
|
||||
bottomMargin: space
|
||||
topMargin: theme.spacing
|
||||
bottomMargin: theme.spacing
|
||||
verticalLayoutDirection: ListView.BottomToTop
|
||||
|
||||
// Keep x scroll pages cached, to limit images having to be
|
||||
|
||||
Reference in New Issue
Block a user