From 148c30b991b93172246b039ccc7db59c29216581 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 21 Jun 2021 12:57:16 +0200 Subject: [PATCH] feat(Popups): introduce StatusModalDivider --- src/StatusQ/Popups/StatusModalDivider.qml | 31 +++++++++++++++++++++++ src/StatusQ/Popups/qmldir | 1 + statusq.qrc | 1 + 3 files changed, 33 insertions(+) create mode 100644 src/StatusQ/Popups/StatusModalDivider.qml diff --git a/src/StatusQ/Popups/StatusModalDivider.qml b/src/StatusQ/Popups/StatusModalDivider.qml new file mode 100644 index 00000000..4b3401f6 --- /dev/null +++ b/src/StatusQ/Popups/StatusModalDivider.qml @@ -0,0 +1,31 @@ +import QtQuick 2.14 + +import StatusQ.Core.Theme 0.1 + +Column { + spacing: 0 + + property real topPadding: 0 + property real bottomPadding: 0 + + width: 480 + + Item { + id: topPaddingItem + height: parent.topPadding + width: parent.width + } + + Rectangle { + id: divider + color: Theme.palette.baseColor2 + height: 1 + width: parent.width + } + + Item { + id: bottomPaddingItem + height: parent.bottomPadding + width: parent.width + } +} diff --git a/src/StatusQ/Popups/qmldir b/src/StatusQ/Popups/qmldir index 629ee314..6f523a56 100644 --- a/src/StatusQ/Popups/qmldir +++ b/src/StatusQ/Popups/qmldir @@ -3,3 +3,4 @@ module StatusQ.Popups StatusMenuSeparator 0.1 StatusMenuSeparator.qml StatusPopupMenu 0.1 StatusPopupMenu.qml StatusMenuItem 0.1 StatusMenuItem.qml +StatusModalDivider 0.1 StatusModalDivider.qml diff --git a/statusq.qrc b/statusq.qrc index 34446da7..7ac4c3df 100644 --- a/statusq.qrc +++ b/statusq.qrc @@ -16,6 +16,7 @@ src/StatusQ/Popups/StatusPopupMenu.qml src/StatusQ/Popups/StatusMenuSeparator.qml src/StatusQ/Popups/StatusMenuItem.qml + src/StatusQ/Popups/StatusModalDivider.qml src/StatusQ/Components/qmldir src/StatusQ/Components/StatusChatListItem.qml src/StatusQ/Components/StatusChatListAndCategories.qml