C++ / fmt (pull_request) Successful in 3s
JS/TS / fmt (pull_request) Successful in 17s
JS/TS / lint (pull_request) Successful in 20s
Python / fmt (pull_request) Successful in 31s
Python / lint (pull_request) Successful in 30s
Python / test (pull_request) Successful in 1m40s
Python / typecheck (pull_request) Successful in 1m38s
C++ / build (pull_request) Successful in 2m15s
Rust / build (pull_request) Successful in 1m41s
Rust / fmt (pull_request) Successful in 59s
Python / buildcheck (pull_request) Successful in 2m40s
Rust / clippy (pull_request) Successful in 2m15s
C++ / clang-tidy (pull_request) Successful in 6m29s
37 lines
750 B
QML
37 lines
750 B
QML
import QtQuick
|
|
import ZShell.Config
|
|
import qs.Components
|
|
import qs.Modules.Bar.Components.Common
|
|
import qs.Helpers
|
|
import qs.Services
|
|
|
|
WidgetBase {
|
|
id: root
|
|
|
|
property bool tempEnabled: Hyprsunset.enabled
|
|
|
|
color: root.tempEnabled ? Colors.palette.m3primary : Colors.tPalette.m3surfaceContainer
|
|
radius: Tokens.rounding.full
|
|
|
|
StateLayer {
|
|
onClicked: {
|
|
Hyprsunset.toggleNightLight();
|
|
Hyprsunset.manualToggle = true;
|
|
}
|
|
}
|
|
|
|
MaterialIcon {
|
|
anchors.centerIn: parent
|
|
animate: true
|
|
color: root.tempEnabled ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
|
fill: root.tempEnabled ? 1 : 0
|
|
font.pointSize: Tokens.font.size.larger
|
|
text: root.tempEnabled ? "lightbulb" : "light_off"
|
|
|
|
Behavior on fill {
|
|
Anim {
|
|
}
|
|
}
|
|
}
|
|
}
|