Commit ac81ee85 authored by Noah Davis's avatar Noah Davis 🌵

Add ToolSeparator styling

parent ead03314
/*
SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
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
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment