fix: define declared method + insert new bar entries to config file list + rename Hyprsunset -> Nightlight
This commit is contained in:
+3
-4
@@ -89,10 +89,10 @@ GridLayout {
|
||||
role: "id"
|
||||
|
||||
DelegateChoice {
|
||||
roleValue: "hyprsunset"
|
||||
roleValue: "nightlight"
|
||||
|
||||
delegate: EntryWrapper {
|
||||
HyprsunsetWidget {
|
||||
NightlightWidget {
|
||||
horizontal: root.horizontal
|
||||
visible: !root.fullscreen || root.isHovered
|
||||
}
|
||||
@@ -210,8 +210,7 @@ GridLayout {
|
||||
roleValue: "network"
|
||||
|
||||
delegate: EntryWrapper {
|
||||
NetworkWidget {
|
||||
}
|
||||
NetworkWidget {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -8,15 +8,15 @@ import qs.Services
|
||||
WidgetBase {
|
||||
id: root
|
||||
|
||||
property bool tempEnabled: Hyprsunset.enabled
|
||||
property bool tempEnabled: Nightlight.enabled
|
||||
|
||||
color: root.tempEnabled ? Colors.palette.m3primary : Colors.tPalette.m3surfaceContainer
|
||||
radius: Tokens.rounding.full
|
||||
|
||||
StateLayer {
|
||||
onClicked: {
|
||||
Hyprsunset.toggleNightLight();
|
||||
Hyprsunset.manualToggle = true;
|
||||
Nightlight.toggleNightLight();
|
||||
Nightlight.manualToggle = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,9 +158,9 @@ PageBase {
|
||||
}
|
||||
|
||||
onAccepted: {
|
||||
Config.general.color.scheduleHyprsunsetStart = startCurrent;
|
||||
Config.general.color.scheduleHyprsunsetEnd = endCurrent;
|
||||
Hyprsunset.checkStartup();
|
||||
Config.display.nightlight.scheduleStart = startCurrent;
|
||||
Config.display.nightlight.scheduleEnd = endCurrent;
|
||||
Nightlight.checkStartup();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user