C++ / fmt (pull_request) Successful in 3s
JS/TS / fmt (pull_request) Successful in 14s
JS/TS / lint (pull_request) Successful in 19s
Python / lint (pull_request) Successful in 30s
Python / fmt (pull_request) Successful in 34s
Python / test (pull_request) Successful in 1m0s
Python / typecheck (pull_request) Failing after 1m18s
C++ / build (pull_request) Successful in 1m49s
Rust / fmt (pull_request) Successful in 33s
Rust / build (pull_request) Successful in 1m33s
Rust / clippy (pull_request) Successful in 1m17s
Python / buildcheck (pull_request) Successful in 2m40s
C++ / clang-tidy (pull_request) Successful in 3m25s
46 lines
1.1 KiB
QML
46 lines
1.1 KiB
QML
import Quickshell
|
|
import QtQuick
|
|
import qs.Config
|
|
import qs.Daemons
|
|
import qs.Components
|
|
|
|
CustomRect {
|
|
id: root
|
|
|
|
required property bool horizontal
|
|
required property Wrapper popouts
|
|
required property PersistentProperties visibilities
|
|
|
|
color: visibilities.sidebar ? DynamicColors.palette.m3primary : DynamicColors.tPalette.m3surfaceContainer
|
|
implicitHeight: horizontal ? Config.bar.height : width
|
|
implicitWidth: horizontal ? height : Config.bar.height
|
|
radius: Appearance.rounding.full
|
|
|
|
MaterialIcon {
|
|
id: notificationCenterIcon
|
|
|
|
anchors.centerIn: parent
|
|
color: root.visibilities.sidebar ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
|
|
fill: root.visibilities.sidebar ? 1 : 0
|
|
font.pointSize: root.horizontal ? Appearance.font.size.larger : Appearance.font.size.large
|
|
text: NotifServer.list.length ? "\uf4fe" : "\ue7f4"
|
|
|
|
Behavior on color {
|
|
CAnim {
|
|
}
|
|
}
|
|
Behavior on fill {
|
|
Anim {
|
|
}
|
|
}
|
|
}
|
|
|
|
StateLayer {
|
|
color: root.visibilities.sidebar ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
|
|
|
|
onClicked: {
|
|
root.visibilities.sidebar = !root.visibilities.sidebar;
|
|
}
|
|
}
|
|
}
|