Startseite › Foren › Deutsches LiveCode-Forum › Bleibender Dark Mode › Antwort auf: Bleibender Dark Mode
März 23, 2020 um 16:14 Uhr
#19782
Ich habe es auch so versucht, bei mir ist das raus gekommen:
Skript im Schalter:
if the highlight of me then
put specialfolderpath("documents") & "/dark_mode" into darkmode
put "dark" into url("file:" & darkmode)
else
put specialfolderpath("documents") & "/dark_mode" into darkmode
put "light" into url("file:" & darkmode)
end if
Skript im Stack:
on startup pMode
if darkmode = "dark" then
set the highlight of widget "dark" to "true"
end if
if darkmode = "light" then
set the highlight of widget "dark" to "false"
end if
end startup
Das funktioniert aber nicht.