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
38 lines
917 B
QML
38 lines
917 B
QML
import QtQuick
|
|
import qs.Components
|
|
import qs.Helpers
|
|
import qs.Config
|
|
|
|
CustomRect {
|
|
id: root
|
|
|
|
required property bool horizontal
|
|
property bool tempEnabled: Hyprsunset.enabled
|
|
|
|
color: root.tempEnabled ? DynamicColors.palette.m3primary : DynamicColors.tPalette.m3surfaceContainer
|
|
implicitHeight: horizontal ? Config.bar.height : width
|
|
implicitWidth: horizontal ? height : Config.bar.height
|
|
radius: Appearance.rounding.full
|
|
|
|
StateLayer {
|
|
onClicked: {
|
|
Hyprsunset.toggleNightLight();
|
|
Hyprsunset.manualToggle = true;
|
|
}
|
|
}
|
|
|
|
MaterialIcon {
|
|
anchors.centerIn: parent
|
|
animate: true
|
|
color: root.tempEnabled ? DynamicColors.palette.m3onPrimary : DynamicColors.palette.m3onSurface
|
|
fill: root.tempEnabled ? 1 : 0
|
|
font.pointSize: root.horizontal ? Appearance.font.size.larger : Appearance.font.size.large
|
|
text: root.tempEnabled ? "lightbulb" : "light_off"
|
|
|
|
Behavior on fill {
|
|
Anim {
|
|
}
|
|
}
|
|
}
|
|
}
|