Files
bbedward ccbf1d38ad widgets: bump qml-common, rename Dank* prefixed widgets to D, add
deprecation notice to plugin compatibility shims

- When qml-common became a thing, we left qs.Widgets shims in place for
  plugin compatibility
- It's annoying to need to maintain them when qml-common has any change,
  add a warning so we can safely deprecate them in the future
- One shot rename the common stuff to D to make it shorter and nicer to
  write
2026-10-05 16:47:19 -04:00

55 lines
1.5 KiB
QML

import QtQuick
import qs.Common
import qs.DCommon.Widgets
import qs.Modules.Plugins
PluginComponent {
id: root
property var popoutService: null
readonly property int count: pluginData.count ?? 0
pillClickAction: (x, y, width, section, screen) => popoutService?.toggleDankDash("plugin_" + pluginId, x, y, width, section, screen)
pillRightClickAction: () => pluginService?.savePluginData(pluginId, "count", count + 1)
horizontalBarPill: Component {
Row {
spacing: Theme.spacingXS
DIcon {
anchors.verticalCenter: parent.verticalCenter
name: "counter_1"
size: root.iconSize
color: Theme.widgetIconColor
}
StyledText {
anchors.verticalCenter: parent.verticalCenter
text: root.count
font.pixelSize: root.textSize
color: Theme.widgetTextColor
}
}
}
verticalBarPill: Component {
Column {
spacing: Theme.spacingXXS
DIcon {
anchors.horizontalCenter: parent.horizontalCenter
name: "counter_1"
size: root.iconSize
color: Theme.widgetIconColor
}
StyledText {
anchors.horizontalCenter: parent.horizontalCenter
text: root.count
font.pixelSize: root.textSize
color: Theme.widgetTextColor
}
}
}
}