Respect system theme in cmux picker

This commit is contained in:
Lawrence Chen 2026-03-13 04:52:23 -07:00
parent 48f656a7b9
commit 1309152bfc
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -5405,6 +5405,7 @@ struct CMUXCLI {
environment["CMUX_THEME_PICKER_CONFIG"] = try cmuxThemeOverrideConfigURL().path
environment["CMUX_THEME_PICKER_BUNDLE_ID"] = currentCmuxAppBundleIdentifier() ?? Self.cmuxThemeOverrideBundleIdentifier
environment["CMUX_THEME_PICKER_TARGET"] = defaultThemePickerTargetMode(current: selection).rawValue
environment["CMUX_THEME_PICKER_COLOR_SCHEME"] = defaultAppearancePrefersDarkThemes() ? "dark" : "light"
if let light = selection.light {
environment["CMUX_THEME_PICKER_INITIAL_LIGHT"] = light
}