mirror of
https://github.com/pnx/dotfiles
synced 2026-10-14 12:16:47 +02:00
21 lines
443 B
QML
21 lines
443 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import ".."
|
|
|
|
Button {
|
|
property bool indicatorTop: true
|
|
property int indicatorHeight: 2
|
|
property color indicatorColor
|
|
|
|
id: root
|
|
|
|
Rectangle {
|
|
anchors {
|
|
top: root.indicatorTop ? parent.top : undefined
|
|
bottom: !root.indicatorTop ? parent.buttom : undefined
|
|
}
|
|
implicitHeight: parent.indicatorHeight
|
|
implicitWidth: parent.implicitWidth
|
|
color: root.indicatorColor
|
|
}
|
|
}
|