mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-26 03:06:56 -06:00
#263 adds a ☰ menu to the Properties panel's Paragraph section; #281 routes every menu through menus::menu_button so a menu taller than the window scrolls and a scroll-bar click keeps it open. This one gets the same behaviour.
This commit is contained in:
@@ -1443,7 +1443,7 @@ pub fn paragraph_panel(app: &mut DesignApp, ui: &mut egui::Ui) {
|
||||
ui.horizontal(|ui| {
|
||||
crate::rtl::label(ui, egui::RichText::new(crate::i18n::tr(&app.ui.language, "Paragraph")).strong());
|
||||
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
|
||||
ui.menu_button("☰", |ui| {
|
||||
crate::menus::menu_button(ui, "☰", |ui| {
|
||||
if ui.button(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "Paragraph Rules…"))).clicked() {
|
||||
let _ = app.run("app.paragraphRulesDialog", json!({}));
|
||||
ui.close();
|
||||
|
||||
Reference in New Issue
Block a user