all repos — quickshell @ 55b30d92682fe15ee20bd17e46c79ca21e176659

A desert-witch desktop shell

bar/BottomBar_WORKS.qml.baka (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
 38
 39
 40
 41
 42
 43
import Quickshell
import QtQuick
import QtQuick.Layouts
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: Resources.palette.bg

  RowLayout { // LEFT
    id: bottomRow
    anchors.fill: parent
    spacing: 2
    uniformCellSizes:false
    RowLayout {
      id: bottomLeft
      Layout.alignment: Qt.AlignLeft
      Layout.leftMargin: 8
    }
    RowLayout { // CENTER
      id: bottomCenter
      anchors.centerIn: bottomRow
      Layout.fillWidth: true
    }
    // Item { Layout.fillWidth: true }
    RowLayout { // RIGHT
      id: bottomRight 
      Layout.alignment: Qt.AlignRight
      Layout.rightMargin: 8
    }
  }
  // RowLayout { // CENTER
  //   id: bottomCenter
  //   anchors.centerIn: bottomRow
  // }
}