T17: Appearance: every theme as a card over a small window in its colors, a separate dark theme with its own grid, font family, size, line height and ligatures, cursor style and blink over a live prompt, opacity by whole percents, blur, padding; a theme change re-dresses the chrome at once; a change the store refuses says why at the top of the page
This commit is contained in:
6 files changed
+491
-15
No files matched your search
+11
@@ -65,6 +65,17 @@ pub fn start(cx: &mut App) -> anyhow::Result<()> {
|
||||
"settings: font_family is {family:?}, which is not installed"
|
||||
);
|
||||
themes::apply(cx);
|
||||
let chosen =
|
||||
|settings: &settings::Settings| (settings.theme.clone(), settings.dark_theme.clone());
|
||||
let mut worn = chosen(SettingsStore::get(cx));
|
||||
cx.observe_global::<SettingsStore>(move |cx| {
|
||||
let now = chosen(SettingsStore::get(cx));
|
||||
if now != worn {
|
||||
worn = now;
|
||||
themes::apply(cx);
|
||||
}
|
||||
})
|
||||
.detach();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user