mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
f23e9e5da9
Comment on Discussion When sdata/dist-arch/ Changes / comment_on_discussion (push) Waiting to run
30 lines
607 B
QML
30 lines
607 B
QML
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import qs.services
|
|
import QtQuick
|
|
import Quickshell
|
|
|
|
AndroidQuickToggleButton {
|
|
id: root
|
|
|
|
property bool auto: Config.options.light.night.automatic
|
|
|
|
name: Translation.tr("Anti-flashbang")
|
|
|
|
toggled: Config.options.light.antiFlashbang.enable
|
|
buttonIcon: "flash_off"
|
|
|
|
mainAction: () => {
|
|
Config.options.light.antiFlashbang.enable = !Config.options.light.antiFlashbang.enable;
|
|
}
|
|
|
|
altAction: () => {
|
|
root.openMenu()
|
|
}
|
|
|
|
StyledToolTip {
|
|
text: Translation.tr("Anti-flashbang")
|
|
}
|
|
}
|
|
|