54 lines
1.4 KiB
QML
54 lines
1.4 KiB
QML
|
|
import QtQuick
|
||
|
|
import qs.Common
|
||
|
|
import qs.Widgets
|
||
|
|
import qs.Modules.Plugins
|
||
|
|
|
||
|
|
PluginComponent {
|
||
|
|
id: root
|
||
|
|
|
||
|
|
// Access saved settings reactively via pluginData
|
||
|
|
property string displayText: pluginData.displayText || "Hello"
|
||
|
|
|
||
|
|
horizontalBarPill: Component {
|
||
|
|
Row {
|
||
|
|
spacing: Theme.spacingS
|
||
|
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
|
|
||
|
|
DankIcon {
|
||
|
|
name: "widgets"
|
||
|
|
size: root.iconSize
|
||
|
|
color: Theme.primary
|
||
|
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
|
}
|
||
|
|
|
||
|
|
StyledText {
|
||
|
|
text: root.displayText
|
||
|
|
font.pixelSize: Theme.fontSizeMedium
|
||
|
|
color: Theme.surfaceText
|
||
|
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
verticalBarPill: Component {
|
||
|
|
Column {
|
||
|
|
spacing: Theme.spacingXS
|
||
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
|
|
||
|
|
DankIcon {
|
||
|
|
name: "widgets"
|
||
|
|
size: root.iconSize
|
||
|
|
color: Theme.primary
|
||
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
|
}
|
||
|
|
|
||
|
|
StyledText {
|
||
|
|
text: root.displayText
|
||
|
|
font.pixelSize: Theme.fontSizeSmall
|
||
|
|
color: Theme.surfaceText
|
||
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|