Place icon-only visibility controls first in both presenter bars
Gitea/pdf-presenter/pipeline/head There was a failure building this commit
Details
Gitea/pdf-presenter/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
03798f5c34
commit
3b160da5ad
|
|
@ -2212,7 +2212,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "pdf-presenter"
|
||||
version = "0.1.22"
|
||||
version = "0.1.23"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"chrono",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ default-members = ["crates/pdf-presenter"]
|
|||
resolver = "3"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.22"
|
||||
version = "0.1.23"
|
||||
edition = "2024"
|
||||
license = "MIT"
|
||||
repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter"
|
||||
|
|
|
|||
|
|
@ -315,7 +315,11 @@ pub fn presenter(ui: &mut Ui, s: &mut Studio, native: &mut UiState) {
|
|||
ui.scope_builder(egui::UiBuilder::new().max_rect(rect.shrink(10.)), |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
if ui
|
||||
.button(if s.layout.header {
|
||||
.add(
|
||||
egui::Button::new(if s.layout.header { "↑" } else { "↓" })
|
||||
.min_size(Vec2::splat(24.)),
|
||||
)
|
||||
.on_hover_text(if s.layout.header {
|
||||
tr(&locale, "Hide")
|
||||
} else {
|
||||
tr(&locale, "Pin")
|
||||
|
|
@ -407,6 +411,21 @@ pub fn presenter(ui: &mut Ui, s: &mut Studio, native: &mut UiState) {
|
|||
ui.painter().rect_filled(rect, 0., ui.visuals().window_fill);
|
||||
ui.scope_builder(egui::UiBuilder::new().max_rect(rect.shrink(8.)), |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
if ui
|
||||
.add(
|
||||
egui::Button::new(if s.layout.footer { "↓" } else { "↑" })
|
||||
.min_size(Vec2::splat(24.)),
|
||||
)
|
||||
.on_hover_text(if s.layout.footer {
|
||||
tr(&locale, "Hide")
|
||||
} else {
|
||||
tr(&locale, "Pin")
|
||||
})
|
||||
.clicked()
|
||||
{
|
||||
s.layout.footer = !s.layout.footer;
|
||||
native.footer_until = now;
|
||||
}
|
||||
button(
|
||||
ui,
|
||||
tr(&locale, "Previous"),
|
||||
|
|
@ -439,17 +458,6 @@ pub fn presenter(ui: &mut Ui, s: &mut Studio, native: &mut UiState) {
|
|||
tr(&locale, "PREPARING OUTPUT")
|
||||
},
|
||||
);
|
||||
if ui
|
||||
.button(if s.layout.footer {
|
||||
tr(&locale, "Hide")
|
||||
} else {
|
||||
tr(&locale, "Pin")
|
||||
})
|
||||
.clicked()
|
||||
{
|
||||
s.layout.footer = !s.layout.footer;
|
||||
native.footer_until = now;
|
||||
}
|
||||
ui.small(&s.awake_status);
|
||||
});
|
||||
ui.label(s.preparation_status());
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
### 0.1.23
|
||||
|
||||
- Put compact arrow icons at the far left of both header and footer to hide or pin
|
||||
each bar, retaining localized tooltips and existing edge/right-click reveal.
|
||||
|
||||
### 0.1.22
|
||||
|
||||
- Keep settings menus open while selecting themes/languages or adjusting Preferences.
|
||||
|
|
|
|||
Loading…
Reference in New Issue