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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user