all repos — quickshell @ 30865761e689b0a29ec234f784984f91de45e8c6

A desert-witch desktop shell

bar/BottomBar.qml (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
import Quickshell
import QtQuick
import ".."

PanelWindow {
  id: bottomBar
  property alias bottomRightContent: bottomRight.children
  property alias bottomCenterContent: bottomCenter.children
  property alias bottomLeftContent: bottomLeft.children
  anchors.bottom: true
  anchors.left: true
  anchors.right: true
  implicitHeight: Resources.barsize.bottombar
  color: Style.bg
  Item {
    id: bottomRow
    anchors.fill: parent
    Row { // LEFT
      id: bottomLeft
      leftPadding: 8
      anchors.left: bottomRow.left
      anchors.verticalCenter: bottomRow.verticalCenter
    }
    Row { // CENTER
      id: bottomCenter
      anchors.centerIn: bottomRow
      anchors.verticalCenter: bottomRow.verticalCenter
      anchors.horizontalCenter: bottomRow.horizontalCenter
    }
    Row { // RIGHT
      id: bottomRight
      rightPadding: 8
      anchors.right: bottomRow.right
      anchors.verticalCenter: bottomRow.verticalCenter
    }
  }
}