mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-23 01:52:46 +00:00
feat: update system
This commit is contained in:
@@ -6,17 +6,9 @@ import { SimpleToggleButton } from "../ToggleButton.js";
|
||||
export default () =>
|
||||
SimpleToggleButton({
|
||||
icon: Widget.Icon({
|
||||
connections: [
|
||||
[
|
||||
Notifications,
|
||||
(icon) => {
|
||||
icon.icon = Notifications.dnd
|
||||
? icons.notifications.silent
|
||||
: icons.notifications.noisy;
|
||||
},
|
||||
"notify::dnd",
|
||||
],
|
||||
],
|
||||
icon: Notifications.bind("dnd").transform(
|
||||
(dnd) => icons.notifications[dnd ? "silent" : "noisy"],
|
||||
),
|
||||
}),
|
||||
toggle: () => (Notifications.dnd = !Notifications.dnd),
|
||||
connection: [Notifications, () => Notifications.dnd],
|
||||
|
||||
Reference in New Issue
Block a user