

|| || log "GTK universal dark preference can only be set to 0 or 1 " 1 1 # Ensure the provided argument is valid before making the change # Changes the universal GTK dark theme preference based on the provided argument (if they are different) # Echoes 1 if the system dark style is set, 0 otherwise # If $4 is 1, the message is treated as a debug log (only shown if the relevant configuration variable above is set)
MAILSPRING DARK THEME CODE
If $3 is 1, echoes a crash message to stderr and exits with code 1 If $2 is 1, redirects to stderr with ERROR prefix. # Echoes provided string with a date prefix. SHOW_DEBUG_MESSAGES=0 # If debug logs should be printed, set to 1 MAILSPRING_DARK_THEME= 'ui-dark ' # Leave empty to disable Mailspring theme switching on dark theme MAILSPRING_LIGHT_THEME= 'ui-light ' # Leave empty to disable Mailspring theme switching on light theme

LIGHT_THEME_WALLPAPER= '/usr/share/backgrounds/odin.jpg ' # Leave empty to disable wallpaper switching on light themeĭARK_THEME_WALLPAPER= '/usr/share/backgrounds/odin-dark.jpg ' # Leave empty to disable wallpaper switching on dark theme # Note that system updates can reset the forced Flatpak theming, so running the script frequently (every few minutes) is recommended Use a cron job to run the script automatically on a desired schedule you can learn about cron by running `man crontab` in a terminal Change the configuration variables below as needed # It also supports changing themes for the Mailspring email app (both. # It also optionally changes the wallpaper based on the theme # This script forces the system theme to work with regular Debian packages as well as non-curated Flatpak apps # elementaryOS 6 has great dark themes, but they only apply to "curated" appcenter apps
