Skip to main content

systemAppearanceChanged

Type​

message

Summary​

Sent to the current card of the defaultStack when the systemAppearance changes.

Syntax​

systemAppearanceChanged

Description​

Handle the systemAppearanceChanged message if you need to change the color of objects when the application enters either light or dark mode.

Examples​

on systemAppearanceChanged
if the systemAppearance is "dark" then
set the backColor of me to "black"
set the foreColor of me to "white"
else
set the backColor of me to "white"
set the foreColor of me to "black"
end if
end systemAppearanceChanged

glossary: message

property: systemAppearance, defaultStack

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?