feat: initial commit for pixel-snapping components and helpers
This commit is contained in:
@@ -18,15 +18,17 @@ CustomRect {
|
||||
service: NetworkUsage
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
SnapLayout {
|
||||
id: layout
|
||||
|
||||
anchors.bottomMargin: Tokens.padding.small
|
||||
anchors.fill: parent
|
||||
anchors.margins: Tokens.padding.large
|
||||
spacing: 0
|
||||
|
||||
RowLayout {
|
||||
spacing: 0
|
||||
orientation: Qt.Vertical
|
||||
|
||||
SnapLayout {
|
||||
spacing: Tokens.spacing.small
|
||||
|
||||
MaterialIcon {
|
||||
@@ -108,8 +110,11 @@ CustomRect {
|
||||
}
|
||||
|
||||
// Download row
|
||||
RowLayout {
|
||||
SnapLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.maximumWidth: root.width > root.implicitWidth * 2 ? root.width / 2 : -1
|
||||
Layout.alignment: Qt.AlignRight
|
||||
|
||||
spacing: Tokens.spacing.small
|
||||
|
||||
MaterialIcon {
|
||||
@@ -136,8 +141,11 @@ CustomRect {
|
||||
}
|
||||
|
||||
// Upload row
|
||||
RowLayout {
|
||||
SnapLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.maximumWidth: root.width > root.implicitWidth * 2 ? root.width / 2 : -1
|
||||
Layout.alignment: Qt.AlignRight
|
||||
|
||||
spacing: Tokens.spacing.small
|
||||
|
||||
MaterialIcon {
|
||||
@@ -164,8 +172,11 @@ CustomRect {
|
||||
}
|
||||
|
||||
// Session totals
|
||||
RowLayout {
|
||||
SnapLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.maximumWidth: root.width > root.implicitWidth * 2 ? root.width / 2 : -1
|
||||
Layout.alignment: Qt.AlignRight
|
||||
|
||||
spacing: Tokens.spacing.small
|
||||
|
||||
MaterialIcon {
|
||||
|
||||
Reference in New Issue
Block a user