systemAppearanceChanged

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
systemAppearanceChanged
Associationscard
Summary

Sent to the current card of the defaultStack when the system appearance|systemAppearance changes.

Introduced1.0
OSmac, ios, android
Platformsdesktop, mobile
Example
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
RelatedProperty: systemAppearance, defaultStack
Glossary: message
Description

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