remove hoverpanel title, move actions into applets, add qmllint baseline regen script
This commit is contained in:
parent
c24e18d5da
commit
adb6c21135
26 changed files with 192 additions and 202 deletions
31
shell/applets/AppletActionBar.qml
Normal file
31
shell/applets/AppletActionBar.qml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import QtQuick
|
||||
import "../services" as S
|
||||
|
||||
// Action bar for applet-level controls (power toggles, DND, clear-all, etc.)
|
||||
// Place at the top of an applet Column. Children are right-aligned action buttons.
|
||||
Item {
|
||||
id: root
|
||||
|
||||
default property alias actions: _row.children
|
||||
required property color accentColor
|
||||
|
||||
width: parent?.width ?? 0
|
||||
height: 24
|
||||
|
||||
Row {
|
||||
id: _row
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
spacing: 8
|
||||
layoutDirection: Qt.RightToLeft
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
height: 1
|
||||
color: S.Theme.base03
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue