philmasterplus
Active member
This patch adds a new ASH function:
This function will enable script authors to use different text colors in the gCLI for light and dark modes. Script authors can utilize it to present the best color for the user's theme.
This patch was inspired by this discussion.
is_dark_mode()
. It uses KoLmafiaGUI.isDarkTheme()
to determine whether KoLmafia is using one of the FlatLaf dark themes. It also works in JavaScript as isDarkMode()
This function will enable script authors to use different text colors in the gCLI for light and dark modes. Script authors can utilize it to present the best color for the user's theme.
This patch was inspired by this discussion.