Auto light and dark mode
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user