Distinguish appearance section headings from menu choices

This commit is contained in:
Dandaedre 2026-11-20 07:13:50 +01:00
parent aa340e66ec
commit 8e2a6d663f
4 changed files with 22 additions and 4 deletions

2
Cargo.lock generated
View File

@ -2212,7 +2212,7 @@ dependencies = [
[[package]]
name = "pdf-presenter"
version = "0.1.44"
version = "0.1.45"
dependencies = [
"bytemuck",
"chrono",

View File

@ -4,7 +4,7 @@ default-members = ["crates/pdf-presenter"]
resolver = "3"
[workspace.package]
version = "0.1.44"
version = "0.1.45"
edition = "2024"
license = "MIT"
repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter"

View File

@ -1355,7 +1355,12 @@ fn menu(ui: &mut Ui, s: &mut Studio) {
ui.with_layout(egui::Layout::top_down(egui::Align::Min), |ui| {
ui.set_min_width(250.);
let mut changed = false;
ui.label(tr(&locale, "Theme"));
ui.label(
egui::RichText::new(tr(&locale, "Theme"))
.small()
.strong()
.color(ui.visuals().weak_text_color()),
);
ui.menu_button(s.settings.theme.name().to_owned(), |ui| {
for theme in crate::theme::Theme::ALL {
let name = theme.name();
@ -1364,7 +1369,15 @@ fn menu(ui: &mut Ui, s: &mut Studio) {
.changed();
}
});
ui.label(tr(&locale, "Language"));
ui.add_space(6.);
ui.separator();
ui.add_space(4.);
ui.label(
egui::RichText::new(tr(&locale, "Language"))
.small()
.strong()
.color(ui.visuals().weak_text_color()),
);
ui.menu_button(s.settings.language.name(), |ui| {
for language in crate::localization::Language::ALL {
changed |= ui

View File

@ -2,6 +2,11 @@
## Unreleased
### 0.1.45
- Distinguish Theme and Language section headings with smaller, bold, muted text
and separate their selectable submenus with spacing and a divider.
### 0.1.44
- Size Layout scrolling from its resized window rather than the desktop. Remove