Dark mode update

Lots of dark mode updates coming for 0.9.7

  • Toolbar
  • Tools palette
  • Script Editor (not 100% unfortunately, getting there though)
  • Saving dialog

But there is always more to do (I’m looking at you property inspector :wink:) Want to help? Get your hands dirty or submit GitHub issues with things that aren’t dark mode friendly.

Anybody know how the inspector palette is created? This is the last piece of the puzzle to get converted to dark mode (well, I’m sure there are others but this is what I know needs to be done)

I believe it’s created by a text file during init. I don’t recall the file name, but I believe it’s in the Tools folder.

1 Like

This could give you ideas, but do not ask me where exactly: :smiley:

1 Like

I managed to find out where to add the code to make it dark mode friendly :slight_smile:

Speaking of dark mode, 0.9.7 is chock full of dark mode goodness, but I know I didn’t get everything, so please submit GItHub issues so I can tackle the rest of it.

1 Like

Added a new property for 0.9.8 for dark mode. Instead of having to write

if (systemAppearance = "dark") then
set the foregroundColor of me to "white"
else
set the foregroundColor of me to "black
end if

You can now just write

set the foregroundColor of me to (the systemTextColor)

systemAppearanceChanged also has a new third parameter pTextColor so you can set the colour without having to check the mode (of course check the mode if you’re using custom colours)

1 Like