The Filters shortcut filters out blue light which is a high-energy, short-wavelength of visible light which can be harmful for the eyes.
Nouveautés
Version 1.0
First release
Ce qu’il fait
28 actions-
Choose from MenuAre you sure you want to turn Filters on?
-
Choose from MenuTurn on
-
Get Current Focus
-
Get Name
-
If
-
Show NotificationFilters could not be turned on because Ultra Low Power Mode is active
-
Nothing
-
If
-
Get Current Song
-
If
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
If
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Set Volume
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Choose from MenuCancel
-
If
-
Stop This Shortcut
-
If
-
Get Current Song
-
If
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
If
-
Set Volume
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/settings'
#define color red
#define glyph handSlashOutline
menu "Are you sure you want to turn Filters on?" {
item "Turn on":
const CurrentFocus = getFocusMode()
const Name = getName(CurrentFocus)
if Name == "Ultra Low Power Mode" {
showNotification("Filters could not be turned on because Ultra Low Power Mode is active", Name)
} else {
const CurrentSong = getCurrentSong()
if CurrentSong {
toggleWhitePoint()
toggleColorFilters()
} else {
toggleWhitePoint()
setVolume(0.07742782)
toggleColorFilters()
}
}
item "Cancel":
if Name == "Ultra Low Power Mode" {
stop()
} else {
const CurrentSong1 = getCurrentSong()
if CurrentSong1 {
toggleWhitePoint()
toggleColorFilters()
} else {
setVolume(0.2506562)
toggleWhitePoint()
toggleColorFilters()
}
}
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de celebrity
Ça pourrait aussi te plaire
Publicité