Antwort auf: Bleibender Dark Mode

Startseite Foren Deutsches LiveCode-Forum Bleibender Dark Mode Antwort auf: Bleibender Dark Mode

#19782
BestRazer
Teilnehmer

    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.