all repos — quickshell @ 55b30d92682fe15ee20bd17e46c79ca21e176659

A desert-witch desktop shell

bar/TopBar_three_rows.qml.bak (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
 44
 45
 46
import Quickshell
import QtQuick
import QtQuick.Layouts
import ".."

PanelWindow {
  id: topBar
  property alias topRightContent: topRight.children
  property alias topCenterContent: topCenter.children
  property alias topLeftContent: topLeft.children
  anchors {
      top: true
      left: true
      right: true
  }
  implicitHeight: Resources.barsize.topbar
  color: Resources.palette.bg

  RowLayout { //TOP RIGHT
    id: topRight
    spacing: 2
    layoutDirection: Qt.RightToLeft
    Item {Layout.rightMargin: 8}
    anchors {
      right: parent.right
      verticalCenter: parent.verticalCenter
    }
  }
  RowLayout { // TOP CENTER
    id: topCenter
    spacing: 2
    anchors {
      horizontalCenter: parent.horizontalCenter
      verticalCenter: parent.verticalCenter
    }
  }
  RowLayout { //TOP LEFT
    id: topLeft
    spacing: 2
    Item {Layout.leftMargin: 8}
    anchors {
      left: parent.left
      verticalCenter: parent.verticalCenter
    }
  }
}