1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-03 15:20:05 -04:00

Add egui_kittest::HarnessBuilder::with_os and set the default to Nix (#7493)

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
Lucas Meurer
2025-09-09 13:44:59 +02:00
committed by GitHub
parent 2afc43c0ec
commit ea76b4eeca
2 changed files with 19 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ impl<'a, State> Harness<'a, State> {
screen_rect,
pixels_per_point,
theme,
os,
max_steps,
step_dt,
state: _,
@@ -101,6 +102,7 @@ impl<'a, State> Harness<'a, State> {
} = builder;
let ctx = ctx.unwrap_or_default();
ctx.set_theme(theme);
ctx.set_os(os);
ctx.enable_accesskit();
ctx.all_styles_mut(|style| {
// Disable cursor blinking so it doesn't interfere with snapshots