summary refs log tree commit diff
path: root/resources/qml/delegates/EncryptionEnabled.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-19 20:45:57 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-19 20:45:57 +0200
commitefda425b6a569e135e6ff51a4124d52c844b28d8 (patch)
treeebbc32b0293d7f5057ba4ea9ca4dcdcd62a97211 /resources/qml/delegates/EncryptionEnabled.qml
parentFix UserSettingsModel and Communities singleton instantiation (diff)
downloadnheko-efda425b6a569e135e6ff51a4124d52c844b28d8.tar.xz
Some qmllint fixes
Diffstat (limited to 'resources/qml/delegates/EncryptionEnabled.qml')
-rw-r--r--resources/qml/delegates/EncryptionEnabled.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/qml/delegates/EncryptionEnabled.qml b/resources/qml/delegates/EncryptionEnabled.qml

index c8671c84..0e2b7fc0 100644 --- a/resources/qml/delegates/EncryptionEnabled.qml +++ b/resources/qml/delegates/EncryptionEnabled.qml
@@ -4,7 +4,6 @@ import ".." import QtQuick 2.15 -import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 import im.nheko 1.0 @@ -15,7 +14,6 @@ Rectangle { radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium width: parent.width ? Math.min(parent.width, 700) : 0 - anchors.horizontalCenter: parent.horizontalCenter height: contents.implicitHeight + Nheko.paddingMedium * 2 color: palette.alternateBase border.color: Nheko.theme.green @@ -31,8 +29,8 @@ Rectangle { Image { source: "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?" + Nheko.theme.green Layout.alignment: Qt.AlignVCenter - width: 24 - height: width + Layout.preferredWidth: 24 + Layout.preferredHeight: 24 } Column {