T44d Web · Hidden demos keep still, wide ones scroll whole, pastes read the web's clipboard

This commit is contained in:
ZacharyZhang-NY committed 2026-09-29 22:13:27 -04:00
1 parent 2463bb0ac9
commit 81adec5c47
26 files changed
+211 -101

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ impl Theme {
Self::fade_to_target(cx);
}
/// Sets `mode` without the fade, as before a window's first frame; a fade under way stops.
/// Sets `mode` at once, stopping any fade under way.
pub fn set_mode_now(mode: Mode, cx: &mut App) {
log::info!("theme: mode -> {mode:?}, at once");
let theme = cx.global_mut::<Theme>();
+1 -1
View File
@@ -21,7 +21,7 @@ fn an_owners_palette_serves_its_mode_alone(cx: &mut TestAppContext) {
assert_eq!(cx.read(|cx| cx.theme().palette()), Palette::light(false));
}
/// A mode set at once wears its palette at once, and a fade under way cannot pull it back.
/// A mode set at once keeps its palette through fades.
#[gpui::test]
fn a_mode_set_at_once_skips_the_fade(cx: &mut TestAppContext) {
cx.update(|cx| {