forked from Shinonome/dots-hyprland
21 lines
538 B
QML
21 lines
538 B
QML
import QtQuick
|
|
import Quickshell
|
|
import qs
|
|
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.functions
|
|
import qs.modules.common.widgets
|
|
|
|
QuickToggleModel {
|
|
name: Translation.tr("Notifications")
|
|
statusText: toggled ? Translation.tr("Show") : Translation.tr("Silent")
|
|
toggled: !Notifications.silent
|
|
icon: toggled ? "notifications_active" : "notifications_paused"
|
|
|
|
mainAction: () => {
|
|
Notifications.silent = !Notifications.silent;
|
|
}
|
|
|
|
tooltipText: Translation.tr("Show notifications")
|
|
}
|