C++ / fmt (pull_request) Successful in 4s
JS/TS / lint (pull_request) Successful in 19s
JS/TS / fmt (pull_request) Successful in 21s
Python / fmt (pull_request) Successful in 30s
Python / lint (pull_request) Successful in 31s
Python / test (pull_request) Successful in 1m2s
Python / typecheck (pull_request) Failing after 1m5s
Rust / fmt (pull_request) Successful in 43s
C++ / build (pull_request) Successful in 2m25s
Rust / build (pull_request) Successful in 1m42s
Python / buildcheck (pull_request) Successful in 2m27s
Rust / clippy (pull_request) Successful in 1m29s
C++ / clang-tidy (pull_request) Successful in 3m56s
48 lines
1.1 KiB
QML
48 lines
1.1 KiB
QML
import Quickshell
|
|
import QtQuick
|
|
import ZShell.Config
|
|
import qs.Modules.Bar.Popouts
|
|
import qs.Daemons
|
|
import qs.Components
|
|
import qs.Services
|
|
|
|
CustomRect {
|
|
id: root
|
|
|
|
required property bool horizontal
|
|
required property Wrapper popouts
|
|
required property PersistentProperties visibilities
|
|
|
|
color: visibilities.sidebar ? Colors.palette.m3primary : Colors.tPalette.m3surfaceContainer
|
|
implicitHeight: horizontal ? Math.max(Config.bar.height, Tokens.bar.innerSize) : width
|
|
implicitWidth: horizontal ? height : Math.max(Config.bar.height, Tokens.bar.innerSize)
|
|
radius: Tokens.rounding.full
|
|
|
|
MaterialIcon {
|
|
id: notificationCenterIcon
|
|
|
|
anchors.centerIn: parent
|
|
color: root.visibilities.sidebar ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
|
fill: root.visibilities.sidebar ? 1 : 0
|
|
font.pointSize: Tokens.font.size.larger
|
|
text: NotifServer.list.length ? "\uf4fe" : "\ue7f4"
|
|
|
|
Behavior on color {
|
|
CAnim {
|
|
}
|
|
}
|
|
Behavior on fill {
|
|
Anim {
|
|
}
|
|
}
|
|
}
|
|
|
|
StateLayer {
|
|
color: root.visibilities.sidebar ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
|
|
|
onClicked: {
|
|
root.visibilities.sidebar = !root.visibilities.sidebar;
|
|
}
|
|
}
|
|
}
|