mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-24 19:31:51 +01:00
Restore Discord label in title bar
This commit is contained in:
1 parent
5982d9def6
commit
116a29497e
2 files changed
+8
-4
No files matched your search
@@ -109,7 +109,11 @@ fn title_bar(app: &mut PdfCraftApp, ui: &mut egui::Ui) {
|
||||
doc_tabs::strip(app, ui, Place::Main);
|
||||
},
|
||||
|ui, _| {
|
||||
IconButton::command(IconId::new("messages-square"), "help.discord").show(ui);
|
||||
Button::command("help.discord")
|
||||
.label("Discord")
|
||||
.icon(IconId::new("messages-square"))
|
||||
.tooltip(tl!("Join the ArtCraft Discord"))
|
||||
.show(ui);
|
||||
IconButton::command(IconId::new("circle-help"), "help.shortcuts").show(ui);
|
||||
let theme_button = IconButton::command(IconId::new(theme_icon), ThemeChoice::NextMode.command()).label(theme_label.clone()).show(ui);
|
||||
let opener = theme_button.response().clone();
|
||||
|
||||
@@ -713,7 +713,7 @@ fn tabs_shrink_to_fit_then_arrows_step_through_them_and_open_stays_in_sight() {
|
||||
}
|
||||
});
|
||||
let open = h.get_by_label("Open…").rect();
|
||||
let discord = h.get_by_label("Join the ArtCraft Discord").rect();
|
||||
let discord = h.get_by_label("Discord").rect();
|
||||
assert!(open.right() <= discord.left(), "Open {open:?} must not run under Discord {discord:?}");
|
||||
let mut previous_right = f32::MIN;
|
||||
for i in 0..5 {
|
||||
@@ -728,7 +728,7 @@ fn tabs_shrink_to_fit_then_arrows_step_through_them_and_open_stays_in_sight() {
|
||||
h.state_mut().open_bytes(&ctx_h, &name(i), None, FIXTURE.to_vec()).unwrap();
|
||||
}
|
||||
h.run_steps(6);
|
||||
let (open, discord) = (h.get_by_label("Open…").rect(), h.get_by_label("Join the ArtCraft Discord").rect());
|
||||
let (open, discord) = (h.get_by_label("Open…").rect(), h.get_by_label("Discord").rect());
|
||||
assert!(open.right() <= discord.left(), "Open {open:?} stays left of Discord {discord:?} with seven tabs");
|
||||
for i in 0..13 {
|
||||
let ctx_h = h.ctx.clone();
|
||||
@@ -736,7 +736,7 @@ fn tabs_shrink_to_fit_then_arrows_step_through_them_and_open_stays_in_sight() {
|
||||
}
|
||||
h.run_steps(4);
|
||||
let open = h.get_by_label("Open…").rect();
|
||||
let discord = h.get_by_label("Join the ArtCraft Discord").rect();
|
||||
let discord = h.get_by_label("Discord").rect();
|
||||
assert!(open.left() > 0.0 && open.right() <= discord.left(), "Open {open:?} stays in sight left of Discord {discord:?}");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user