From ac81ee8519611b1d06ba02205b00a92cccb0db4e Mon Sep 17 00:00:00 2001 From: Noah Davis Date: Sat, 6 Jun 2020 01:24:03 -0400 Subject: [PATCH] Add ToolSeparator styling --- org.kde.desktop/ToolSeparator.qml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 org.kde.desktop/ToolSeparator.qml diff --git a/org.kde.desktop/ToolSeparator.qml b/org.kde.desktop/ToolSeparator.qml new file mode 100644 index 0000000..197cd46 --- /dev/null +++ b/org.kde.desktop/ToolSeparator.qml @@ -0,0 +1,31 @@ +/* + SPDX-FileCopyrightText: 2020 Noah Davis + + SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-or-later +*/ + + +import QtQuick 2.6 +import QtQuick.Templates @QQC2_VERSION@ as T +import org.kde.kirigami 2.4 as Kirigami + +T.ToolSeparator { + id: controlRoot + + topPadding: 0 + bottomPadding: 0 + leftPadding: Kirigami.Units.smallSpacing + rightPadding: Kirigami.Units.smallSpacing + + implicitWidth: separator.width + controlRoot.leftPadding + controlRoot.rightPadding + implicitHeight: parent.height + + background: Kirigami.Separator { + id: separator + anchors { + top: controlRoot.top + bottom: controlRoot.bottom + horizontalCenter: controlRoot.horizontalCenter + } + } +} -- GitLab