Fork the desktop off Omarchy as a self-contained system
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import QtQuick
|
||||
import qs.Ui
|
||||
|
||||
BarIndicator {
|
||||
id: root
|
||||
|
||||
readonly property var nightlightService: bar?.shell?.firstPartyServiceFor("blob.nightlight")
|
||||
|
||||
active: nightlightService ? nightlightService.enabled : false
|
||||
activeText: ""
|
||||
inactiveText: ""
|
||||
activeTooltipText: "Day Light"
|
||||
inactiveTooltipText: "Night Light"
|
||||
|
||||
function toggle() {
|
||||
if (root.nightlightService) root.nightlightService.setNightlight(!root.active)
|
||||
}
|
||||
|
||||
onPressed: function() { root.toggle() }
|
||||
}
|
||||
Reference in New Issue
Block a user