Files
dots-hyprland/dots/.config/quickshell/ii/modules/common/models/quickToggles/NotificationToggle.qml
T

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")
}