C++ / fmt (pull_request) Successful in 4s
JS/TS / fmt (pull_request) Successful in 11s
JS/TS / lint (pull_request) Successful in 23s
Python / lint (pull_request) Successful in 30s
Python / fmt (pull_request) Successful in 32s
Python / test (pull_request) Successful in 1m1s
Python / typecheck (pull_request) Failing after 52s
C++ / build (pull_request) Successful in 1m45s
Rust / fmt (pull_request) Successful in 57s
Rust / build (pull_request) Successful in 1m50s
Rust / clippy (pull_request) Successful in 1m44s
Python / buildcheck (pull_request) Successful in 2m29s
C++ / clang-tidy (pull_request) Successful in 3m31s
54 lines
1.1 KiB
QML
54 lines
1.1 KiB
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell.Services.SystemTray
|
|
import qs.Components
|
|
import qs.Config
|
|
import qs.Modules.SysTray.Widgets
|
|
import qs.Modules
|
|
|
|
CustomClippingRect {
|
|
id: root
|
|
|
|
readonly property alias items: repeater
|
|
readonly property alias layout: sysRow
|
|
required property RowLayout loader
|
|
readonly property int padding: Appearance.padding.small
|
|
required property Wrapper popouts
|
|
|
|
bottomRightRadius: Appearance.rounding.smallest / 2
|
|
color: DynamicColors.tPalette.m3surfaceContainer
|
|
implicitHeight: Config.bar.height + Appearance.padding.smallest * 2
|
|
implicitWidth: sysRow.implicitWidth + Appearance.padding.small * 2
|
|
radius: Appearance.rounding.full
|
|
topRightRadius: Appearance.rounding.smallest / 2
|
|
|
|
RowLayout {
|
|
id: sysRow
|
|
|
|
anchors.centerIn: parent
|
|
spacing: 0
|
|
|
|
Repeater {
|
|
id: repeater
|
|
|
|
model: SystemTray.items
|
|
|
|
TrayItem {
|
|
id: trayItem
|
|
|
|
required property int index
|
|
required property SystemTrayItem modelData
|
|
|
|
implicitHeight: 34
|
|
implicitWidth: 34
|
|
ind: index
|
|
item: modelData
|
|
loader: root.loader
|
|
popouts: root.popouts
|
|
}
|
|
}
|
|
}
|
|
}
|