Auto light and dark mode

This commit is contained in:
2025-02-13 21:41:22 -05:00
parent ab5cc25c44
commit e357644563
6 changed files with 31 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ brights = [
cursor_bg = "#ff76ff"
cursor_border = "#ff76ff"
cursor_fg = "#53545b"
background = "f3f2f4"
background = "#f3f2f4"
foreground = "#53545b"
selection_bg = "#53545b"
selection_fg = "#f3f2f4"

View File

@@ -1,3 +1,6 @@
local LIGHT_THEME = 'Tempus Past'
local DARK_THEME = 'Tempus Classic'
local wezterm = require('wezterm')
local config = wezterm.config_builder()
config.font = wezterm.font('TX-02')
@@ -12,9 +15,9 @@ end
local function scheme_for_appearance(appearance)
if appearance:find 'Dark' then
return 'Tempus Classic'
return DARK_THEME
else
return 'Tempus Past'
return LIGHT_THEME
end
end