# Dark mode change

**URL:** <https://hyperxtalk.discourse.group/t/dark-mode-change/46>\
**Category:** General\
**Created:** [March 31, 2026, 1:30am UTC](https://hyperxtalk.discourse.group/t/dark-mode-change/46 "2026-03-31T01:30:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emily-Elizabeth](https://sea1.discourse-cdn.com/flex037/user_avatar/hyperxtalk.discourse.group/emily-elizabeth/32/6_2.png) [@Emily-Elizabeth](https://hyperxtalk.discourse.group/u/Emily-Elizabeth)\
**Post date:** [March 31, 2026, 1:30am UTC](https://hyperxtalk.discourse.group/t/dark-mode-change/46/1 "2026-03-31T01:30:12Z")

</div>

```auto
on systemAppearanceChanged pMode, pWindowColor
   set the backgroundColor of this stack to pWindowColor
end systemAppearanceChanged

```

You’ll notice a second parameter to the systemAppearanceChanged message. This holds the colour value of the window depending on what mode it is being changed to. This allows you to use the right colour in dark mode (it’s not black) and in light mode (it’s not white). Hope you’ll find this change handy - it’ll be available in 0.9.6

---

<div class="post-metadata">

**Author:** ![Stam](https://sea1.discourse-cdn.com/flex037/user_avatar/hyperxtalk.discourse.group/stam/32/10_2.png) [@Stam](https://hyperxtalk.discourse.group/u/Stam)\
**Post date:** [March 31, 2026, 2:01pm UTC](https://hyperxtalk.discourse.group/t/dark-mode-change/46/2 "2026-03-31T14:01:19Z")

</div>

Could I suggest considering the MIT-licensed **tinyColor** library ( [GitHub - DTByte-Ltd/TinyColor: LiveCode Script library for small and fast color manipulation and conversion. · GitHub](https://github.com/DTByte-Ltd/TinyColor) ) for color manipulations (such as getting complimentary colours, detecting if dark vs light background for what you’re doing here.

It’s pure livecodescript and works well…  
Or is the correct term HyperXTalkScript 😉

---

<div class="post-metadata">

**Author:** ![Emily-Elizabeth](https://sea1.discourse-cdn.com/flex037/user_avatar/hyperxtalk.discourse.group/emily-elizabeth/32/6_2.png) [@Emily-Elizabeth](https://hyperxtalk.discourse.group/u/Emily-Elizabeth)\
**Post date:** [March 31, 2026, 2:03pm UTC](https://hyperxtalk.discourse.group/t/dark-mode-change/46/3 "2026-03-31T14:03:49Z")

</div>

Thanks for the pointer. I’ll take a gander once I get HyperXTalk working again 😉

---

<div class="post-metadata">

**Author:** ![Emily-Elizabeth](https://sea1.discourse-cdn.com/flex037/user_avatar/hyperxtalk.discourse.group/emily-elizabeth/32/6_2.png) [@Emily-Elizabeth](https://hyperxtalk.discourse.group/u/Emily-Elizabeth)\
**Post date:** [April 1, 2026, 11:11pm UTC](https://hyperxtalk.discourse.group/t/dark-mode-change/46/4 "2026-04-01T23:11:41Z")

</div>

Incase you want to use the system window colours, here they are:

Dark mode: #323232  
Light mode: #ececec

I keep trying to add a function to return the system window colours, incase they change in a future OS
