The Filters shortcut filters out blue light which is a high-energy, short-wavelength of visible light which can be harmful for the eyes.
Novedades
Versión 1.0
First release
Qué hace
28 acciones-
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
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#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()
}
}
}
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de celebrity
También te puede gustar
Publicidad