Files
DankMaterialShell/quickshell/PLUGINS/AttachedPanelExample/AttachedPanelExample.qml
T
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

45 lines
1.4 KiB
QML

import QtQuick
import qs.Common
import qs.DCommon.Widgets
import qs.Modules.Plugins
PluginComponent {
id: root
horizontalBarPill: Component {
DIcon {
name: "sticky_note_2"
size: root.iconSize
}
}
verticalBarPill: horizontalBarPill
attachedContent: Component {
Column {
spacing: Theme.spacingM
padding: Theme.spacingM
StyledText {
width: parent.width - Theme.spacingM * 2
text: I18n.trFor("attachedPanelExample", "Notes")
color: Theme.surfaceText
font.pixelSize: Theme.fontSizeLarge
}
DTextField {
width: parent.width - Theme.spacingM * 2
placeholderText: I18n.trFor("attachedPanelExample", "Type here…")
Accessible.name: I18n.trFor("attachedPanelExample", "Notes")
}
DButton {
text: I18n.trFor("attachedPanelExample", "Close")
onClicked: root.surfaceContext.dismissExpansion()
}
}
}
popoutWidth: Theme.listItemHeight * 6
popoutHeight: Theme.listItemHeight * 3
popoutContent: Component {
PopoutComponent {
headerText: I18n.trFor("attachedPanelExample", "Notes")
detailsText: I18n.trFor("attachedPanelExample", "This widget opens an attached panel in the dock.")
}
}
}