C++ / fmt (pull_request) Failing after 6s
C++ / build (pull_request) Failing after 9s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 13s
JS/TS / lint (pull_request) Successful in 8s
Python / static (pull_request) Successful in 30s
Rust / build (pull_request) Successful in 49s
Rust / fmt (pull_request) Successful in 26s
Python / verify (pull_request) Successful in 1m44s
Rust / clippy (pull_request) Successful in 44s
46 lines
986 B
QML
46 lines
986 B
QML
import Quickshell
|
|
import QtQuick
|
|
import ZShell.Config
|
|
import qs.Modules.Bar.Components.Common
|
|
import qs.Modules.Bar.Popouts
|
|
import qs.Daemons
|
|
import qs.Components
|
|
import qs.Services
|
|
|
|
WidgetBase {
|
|
id: root
|
|
|
|
required property Wrapper popouts
|
|
required property ScreenState screenState
|
|
|
|
color: screenState.sidebar ? Colors.palette.m3primary : Colors.tPalette.m3surfaceContainer
|
|
radius: Tokens.rounding.full
|
|
|
|
MaterialIcon {
|
|
id: notificationCenterIcon
|
|
|
|
anchors.centerIn: parent
|
|
color: root.screenState.sidebar ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
|
fill: root.screenState.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.screenState.sidebar ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
|
|
|
onClicked: {
|
|
root.screenState.sidebar = !root.screenState.sidebar;
|
|
}
|
|
}
|
|
}
|