Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions crates/ui-egui/src/publicationwizard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ impl Draft {
}
}

/// The accent every style would take, or `None` where each keeps its own: none picked, or
/// one only seeded from the selected style's default (never customised).
fn chosen_accent(&self, app_accent: egui::Color32) -> Option<egui::Color32> {
let own = style_accent(&self.style, app_accent);
self.accent.filter(|&c| self.picked.is_some() || c != own)
}

/// Whether the size is a figure, which takes no style, texts or accent: the command draws the
/// map edge to edge and leaves the rest to the caption.
fn figure(&self) -> bool {
Expand Down Expand Up @@ -179,9 +186,9 @@ fn field_width(ui: &egui::Ui) -> f32 {
/// The wizard's width, where the screen has room for it.
const WIDTH: f32 = 380.0;

/// The height every step takes: the style step's six styles and their descriptions, with room
/// for the rounding a high-density screen adds to each line.
const STEP_HEIGHT: f32 = 320.0;
/// The height every step takes: the style step's six styles, their outlines and descriptions,
/// with room for the rounding a high-density screen adds to each line.
const STEP_HEIGHT: f32 = 360.0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low-confidence quality note, not a defect. The description now sits in a ui.vertical beside the 34 pt outline, so its wrap width is narrower than the old indented label. The 360 pt step height is sized for the English text. Longer translations may wrap to more lines and make the style step scroll, which the existing scroll test does not cover. A translated-catalog check, or a note in the PR on how much room the longest locale needs, would settle it.

Category: quality


/// Shows the wizard while it is open; Create runs `layout.publication` as the menu does, and the
/// wizard stays open on a layout the command refuses.
Expand Down
Loading
Loading