The Filters shortcut filters out blue light which is a high-energy, short-wavelength of visible light which can be harmful for the eyes.
Novidades
Versão 1.0
First release
O que ele faz
28 ações-
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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 {
setWhitePoint(false)
toggleColorFilters()
} else {
setWhitePoint(false)
setVolume(0.07742782)
toggleColorFilters()
}
}
item "Cancel":
if Name == "Ultra Low Power Mode" {
stop()
} else {
const CurrentSong1 = getCurrentSong()
if CurrentSong1 {
setWhitePoint(0)
toggleColorFilters()
} else {
setVolume(0.2506562)
setWhitePoint(0)
toggleColorFilters()
}
}
}
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de celebrity
Você também pode gostar
Publicidade