Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Integration: #1863 fill the active Pick filter too (from #1044)

aiongg1c4b9c3c6152
diff --git a/crates/ui-egui/src/panels/filterbar.rs b/crates/ui-egui/src/panels/filterbar.rs
index b35335cc9..24ec07c1e 100644
--- a/crates/ui-egui/src/panels/filterbar.rs
+++ b/crates/ui-egui/src/panels/filterbar.rs
@@ -162,6 +162,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) {
Flag::Reject if on => t.reject,
_ => Color32::TRANSPARENT,
};
+ let icon = if on && flag == Flag::Pick { Icon::FlagPickFilled } else { icon };
let resp = toggle(ui, id, on, tip, |p, r, c| paint(p, r, icon, if color == Color32::TRANSPARENT { c } else { color }));
if resp.clicked() {
filter(app, json!({"flag": if on { Value::Null } else { json!(id) }}));