Fix text selection cursor on all tools toggle(View More - View Less Button) (#1121)

* Fix text selection cursor on all tools toggle

* Apply Rust formatting
This commit is contained in:
Oussama Dalhi 2026-10-11 19:46:33 +01:00 committed by GitHub
parent 9644aeb9e2
commit a3753c52f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -62,7 +62,14 @@ fn all_tools(app: &mut PdfCraftApp, ui: &mut egui::Ui, t: &Tokens) {
}
ui.add_space(4.0);
let more = if app.all_tools_expanded { "View less" } else { "View more" };
if ui.add(egui::Label::new(egui::RichText::new(tl!(more)).color(t.accent_text).font(theme::medium(13.0))).sense(Sense::click())).clicked() {
if ui
.add(
egui::Label::new(egui::RichText::new(tl!(more)).color(t.accent_text).font(theme::medium(13.0)))
.selectable(false)
.sense(Sense::click()),
)
.clicked()
{
app.all_tools_expanded = !app.all_tools_expanded;
}
});