Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Gellis f649cf72eb Make scrollbars take up space 2025-03-20 22:49:47 -04:00
Simon Gellis 427c5ec4a9 Fix file picker on Linux 2025-03-20 22:47:43 -04:00
3 changed files with 474 additions and 170 deletions

640
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,7 @@ num-derive = "0.4"
num-traits = "0.2"
oneshot = "0.1"
pollster = "0.4"
rfd = { version = "0.15", default-features = false, features = ["xdg-portal", "tokio"]}
rfd = { version = "0.15", default-features = false, features = ["xdg-portal", "async-std"]}
rtrb = "0.3"
rubato = "0.16"
serde = { version = "1", features = ["derive"] }

View File

@ -4,6 +4,7 @@ use egui::{
Context, FontData, FontDefinitions, FontFamily, IconData, TextWrapMode, ViewportBuilder,
ViewportCommand, ViewportId, ViewportInfo,
ahash::{HashMap, HashMapExt},
style::ScrollStyle,
};
use gilrs::{EventType, Gilrs};
use tracing::{error, warn};
@ -377,6 +378,7 @@ impl Viewport {
ctx.style_mut(|s| {
s.wrap_mode = Some(TextWrapMode::Extend);
s.visuals.menu_rounding = Default::default();
s.spacing.scroll = ScrollStyle::thin();
});
egui_extras::install_image_loaders(&ctx);