Skip to content

LR-PREF-GENERAL: letters the Settings filter found are marked behind a word, not cut out of it (stacked on #2905) - #2906

Open
nledford wants to merge 9 commits into
storytold:mainfrom
nledford:settings-filter-marks
Open

nledford wants to merge 9 commits into
storytold:mainfrom
nledford:settings-filter-marks

Conversation

@nledford

@nledford nledford commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #2905 (ranking and marks of what the Settings filter found), which is stacked on #2874 (the Settings filter), which is off main.

Problem

The line under a Settings filter result shows the letters found stronger than the rest, by cutting the line into pieces, each in its own text format (dimmer text, the letters found in the text color and a heavier weight). epaint shapes each piece by itself, so a match inside a word loses the kerning across the cuts, and in a script that joins its letters (Arabic) the letters either side of the match are left unjoined. The heavier weight and the color are also the only signs of the match, so someone who cannot tell the colors apart has nothing else. Settings has no Arabic text today, so what is visible now is the lost kerning; the line is the part of the window that will show other scripts first when a catalog has them.

Change

  • The line under a result is one piece of text in one format and one color. The letters found have a fill behind them and a line under them, one rectangle per stretch per row, placed from the glyphs of the laid-out text (egui 0.37 keeps a row's glyphs in the order of the chars, one for each, whichever way the text runs; a zero-width joiner or non-joiner does not move the marks).
  • The line under the letters is there because the fill alone would be told by its color only. It is the text color, which stands 8:1 or more on the fill in all four themes.
  • The line of text is legible on the fill, on a hovered or focused row and on a plain one: Tokens::legible (new in theme.rs) moves the dim text toward the text color until it stands 4.5:1 on all three. A color that already reads is unchanged, and the token keeps its value for the rest of the app.
  • A line that is cut shows its full text on hover.
  • docs/whats-new.md: the Settings filter entry says how the letters found are shown.

Not in this PR: the other places Settings draws text in a dim color (that is the wider legibility work in #2525), and a found stretch that crosses from left-to-right into right-to-left letters in one typed word: its two halves are marked as one stretch. Nothing in the catalogs can reach it.

How it was checked

  • cargo fmt --all --check, cargo check --workspace --all-targets and clippy with -D warnings on the workspace: clean at this head
  • cargo test -p lightcraft-ui-egui --lib -- settings (93 tests pass at 29bdbd326d, with LR-PREF-GENERAL: the Settings filter finds what is typed, best first (stacked on #2874) #2905's under it) and -- theme (14 pass). The file tests_dialog_settings_filter_words has 17 tests; the new ones: a match inside a word is marked behind it and the word is laid out as one piece, the letters found are underlined, the line stands 4.5:1 and the underline 3:1 in all four themes, an Arabic word keeps its letters joined and a non-joiner inside it does not move the marks (both skipped, and listed as skipped in the test summary, when the build has no Arabic face)
  • Failing on the old code (measured before the egui 0.37 migration, on the old head): the test file and Tokens::legible were put on LR-PREF-GENERAL: the Settings filter finds what is typed, best first (stacked on #2874) #2905's head, with the old pieces-in-formats drawing behind the entry point found_line the tests call. 8 tests fail on assertions: the match inside a word being laid out as one piece, the underline, the 4.5:1 and 3:1 contrast in every theme, the Arabic word staying joined, the non-joiner not moving the marks, and the three existing tests that read the colors of the line (a_short_line_is_shown_whole_with_the_word_told_apart_whatever_its_case, either_spelling_of_a_word_finds_it and the_line_under_a_result_shows_the_word_it_was_found_by_and_tells_it_apart). The 9 that pass are LR-PREF-GENERAL: the Settings filter finds what is typed, best first (stacked on #2874) #2905's
  • Two independent reviews (read-only). The first found a contrast check that could not fail (the underline color was derived from the color it was compared with), two tests that skipped without being listed as skipped, and a wording claim about Arabic in What's New; all fixed. The second found a second weak 4.5:1 assertion and British spelling in the commit message; both fixed
  • Review: a fresh reviewer at 29bdbd3 (the rebase onto LR-PREF-GENERAL: the Settings filter finds what is typed, best first (stacked on #2874) #2905 bd805fc: this PR's own commit is patch-identical to the one read before, 19557dc)
  • Full cargo xtask ci at 29bdbd326d (run on this Mac with MENU-BAR: clippy passes on macOS again (Quit, About and Settings share one branch) #2973's one-file clippy fix applied uncommitted, then reverted): all 8 steps passed (fmt, clippy, heif, test, parity, layers, assets, wasm); the test step ran 5,281 tests, 0 failed, 42 ignored.
  • No macOS-only code is touched

Screenshots

Captured headlessly (the CPU renderer, 1600×1000, the procedural demo library, a scratch settings folder), with the Settings window open on General and the text typed into the filter through the control channel, cropped to the window. Before is #2874 as this branch was built on it; after is this branch's head, both release builds. Before is #2905's head, after is this branch's head.

Before, "olou" typed (inside the word): the letters found are cut out of the line in a heavier weight, so the word is shaped in three pieces.

Before: olou, letters cut out in a heavier weight

After, "olou": the letters found have a fill behind them and a line under them, and the word is one piece.

After: olou, marked behind the word

Before, "colou" typed:

Before: colou, heavier weight

After, "colou":

After: colou, marked behind the word

Merging

Checklist

  • No new panic path in non-test code (every index into the laid-out text goes through get)
  • No new text on screen: nothing to add to the 17 crates/ui-egui/locales/*.json
  • docs/whats-new.md has an entry
  • New code has a caller
  • No new image, icon or other asset in the repo
  • Ready to merge

Summary by CodeRabbit

  • New Features
    • Added a Settings filter that searches across tabs, including tab and section names, labels, and explanations. Results are ranked by match location, highlight matching text, and open the selected section.
    • Search matches all typed words and supports spelling variants. Select a result by clicking it or pressing Enter; Escape clears the search text.
  • Localization
    • Added translations for the filter and its guidance in 18 languages.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 29bdbd3 and 5ad9732.

Files selected for processing: 3
  • crates/ui-egui/src/dialogs/settings.rs
  • crates/ui-egui/src/dialogs/settings/slide_layout.rs
  • crates/ui-egui/src/tests/dialog_settings_filter.rs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

Walkthrough

The Settings dialog now filters settings across tabs, ranks matching sections, and opens the selected section. The change adds localized filter text, heading and path registration, automated tests, a contrast helper, and documentation.

Changes: Settings filter

Layer / File(s) Summary
Searchable section content
crates/ui-egui/src/dialogs/settings.rs, crates/ui-egui/src/dialogs/settings/widgets.rs, crates/ui-egui/src/dialogs/settings/*.rs
The filter collects settings text by section and ranks matches across tabs. Headings use English names for identification, and path widgets distinguish searchable text from path values.
Filter results and section navigation
crates/ui-egui/src/dialogs/settings.rs, crates/ui-egui/src/dialogs/settings/widgets.rs, crates/ui-egui/src/dialogs/settings/slide_layout.rs
The dialog handles filter input and displays matching snippets. Selecting a result opens its tab and scrolls to the section. The selected heading receives a temporary highlight. The slideshow preview does not request rendering while the filter reads settings pages.
Validation, translations, and documentation
crates/ui-egui/src/tests/dialog_settings_filter*.rs, crates/ui-egui/src/tests.rs, crates/ui-egui/src/theme.rs, crates/ui-egui/tests/it/accessibility.rs, crates/ui-egui/locales/*.json, docs/parity-checklist.md, docs/whats-new.md
Tests cover filtering, ranking, rendering, keyboard input, navigation, and accessibility. The change adds filter translations in 18 locales, a contrast helper, and documentation updates.

Priority: Normal

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  actor User
  participant SettingsWindow
  participant Filter
  participant ScratchContext
  participant Results
  participant SettingsHeading
  User->>SettingsWindow: Enter search text
  SettingsWindow->>Filter: Find matching sections
  Filter->>ScratchContext: Draw tabs and collect section text
  ScratchContext-->>Filter: Return collected section text
  Filter-->>SettingsWindow: Return ranked matches
  SettingsWindow->>Results: Render matching rows
  User->>Results: Select a section
  Results-->>SettingsWindow: Return tab and heading
  SettingsWindow->>SettingsHeading: Open tab and scroll to heading
Loading

Suggested reviewers: aiongg

Merge Risk: Minimal · up to 5ad97

This adds a cross-tab Settings filter with ranked results, section navigation and highlighted matches. No concrete merge-blocking risk was found in the supplied evidence, and the reported tests pass.

Security architecture risk: Minimal · up to 5ad97

The reviewed search paths remain within the existing Settings workflow. Search text does not gain new permissions or bypass confirmation controls, and no material security risk was found.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The assessed reachability expansion is from one Settings page to other pages in the same application session. Search text controls matching and local navigation, not command identifiers, storage destinations, or additional privileges.

Security Findings and Attack Paths

  • observed — Denoise polling reached during collection can advance installation and activation, so collection is not universally read-only. This behavior predates the PR: polling and the normal background pump share finish_downloads, while starting a download still requires a known model and explicit acknowledgement. The new caller does not supply a model or initiate a download.

Trust Boundaries and Controls

  • observed — Engine dispatch retains command enablement checks. Off-screen widget registrations are consumed from the scratch context rather than published as live controls; the added test asserts that an inactive tab's destructive cache button is not exposed among script-clickable widgets.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 56.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: Settings filter matches are rendered as markings behind complete words instead of splitting or cutting out the matched letters.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 56.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 37 functions across 14 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Clippy (1.99.0)

Clippy execution timed out

Comment @coderabbitai help to get the list of available commands.

nledford added a commit to nledford/lightcraft that referenced this pull request Oct 25, 2026
… be read in every theme too

The window's own controls (the filter box, the tab bar's line, a choice that is not the
chosen one, the panel a question opens, the caution text of the smart previews question,
the monitor profile's file and the smart previews folder's colour, the mark on the heading
a result opened) are made legible the way the rest of Settings is: text 4.5:1, lines 3:1.
legible_controls moves to the top of the window so the filter and the tabs are covered.

Built on a merge of storytold#2906 (637422a), storytold#2525 (4dde71e), storytold#2523 (132adb4) and
storytold#2522 (b49f7a6); no new text on screen, so no catalog changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nledford
nledford force-pushed the settings-filter-marks branch from 637422a to f52b412 Compare October 26, 2026 00:40
@nledford

Copy link
Copy Markdown
Contributor Author

Rebased onto main after #2913 (egui 0.37), on #2874's new head. Beyond the rebase: egui 0.37 keeps a row's glyphs in the order of the chars, one per char, whichever way the text runs, so marks() maps glyph i to char i and the old right-to-left reordering (chars_drawn) is gone; the Arabic and Persian tests no longer reverse their expected strings. The Description's sentences about the old glyph order and limits are updated.

nledford added a commit to nledford/lightcraft that referenced this pull request Oct 26, 2026
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 26, 2026
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 26, 2026
…ead in every theme too

The controls storytold#2874, storytold#2906 and storytold#2522 added were outside storytold#2525's legibility pass.
Now the line under the tabs stands 3:1 against the window, where a theme's
divider is 1.2 to 1.4:1. The border of a choice that is not the chosen one, and
the outline that marks the heading of a section reached from the filter, stand 3:1
too (a button's own border is 1.6 to 1.7:1). The panel a question opens (Clear Cache, a model's
Remove, the smart previews folder) draws its controls through `legible_controls`
as the window does, and its caution text stands 4.5:1. The comment on
`legible_controls` in the window now says it covers the filter box as well.

The legibility tests follow the controls: General's empty-box check now reads the
filter box, there are tests for the tab bar's line, a choice and a question, and one
test the merge of the parents made untrue is adjusted (Settings opens with the
focus in the filter box, not nowhere). The What's New entry says that choices
in View Options' Info row are outlined the same way, since they are drawn by the
same function.

Built on a merge of storytold#2906 (f52b412), storytold#2525 (1a1381c), storytold#2523 (c787aac, then c75853a's skip records as their own commit)
and storytold#2522 (7ed0eab).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nledford
nledford force-pushed the settings-filter-marks branch from f52b412 to ddc9f75 Compare October 26, 2026 03:32
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 26, 2026
…ead in every theme too

The controls storytold#2874, storytold#2906 and storytold#2522 added were outside storytold#2525's legibility pass.
Now the line under the tabs stands 3:1 against the window, where a theme's
divider is 1.2 to 1.4:1. The border of a choice that is not the chosen one, and
the outline that marks the heading of a section reached from the filter, stand 3:1
too (a button's own border is 1.6 to 1.7:1). The panel a question opens (Clear Cache, a model's
Remove, the smart previews folder) draws its controls through `legible_controls`
as the window does, and its caution text stands 4.5:1. The comment on
`legible_controls` in the window now says it covers the filter box as well.

The legibility tests follow the controls: General's empty-box check now reads the
filter box, there are tests for the tab bar's line, a choice and a question, and one
test the merge of the parents made untrue is adjusted (Settings opens with the
focus in the filter box, not nowhere). The What's New entry says that choices
in View Options' Info row are outlined the same way, since they are drawn by the
same function.

Built on a merge of storytold#2906 (f52b412), storytold#2525 (1a1381c), storytold#2523 (c787aac, then c75853a's skip records as their own commit)
and storytold#2522 (7ed0eab).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nledford
nledford force-pushed the settings-filter-marks branch from ddc9f75 to c196325 Compare October 26, 2026 07:01
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 26, 2026
…ead in every theme too

The controls storytold#2874, storytold#2906 and storytold#2522 added were outside storytold#2525's legibility pass.
Now the line under the tabs stands 3:1 against the window, where a theme's
divider is 1.2 to 1.4:1. The border of a choice that is not the chosen one, and
the outline that marks the heading of a section reached from the filter, stand 3:1
too (a button's own border is 1.6 to 1.7:1). The panel a question opens (Clear Cache, a model's
Remove, the smart previews folder) draws its controls through `legible_controls`
as the window does, and its caution text stands 4.5:1. The comment on
`legible_controls` in the window now says it covers the filter box as well.

The legibility tests follow the controls: General's empty-box check now reads the
filter box, there are tests for the tab bar's line, a choice and a question, and one
test the merge of the parents made untrue is adjusted (Settings opens with the
focus in the filter box, not nowhere). The What's New entry says that choices
in View Options' Info row are outlined the same way, since they are drawn by the
same function.

Built on a merge of storytold#2906 (f52b412), storytold#2525 (1a1381c), storytold#2523 (c787aac, then c75853a's skip records as their own commit)
and storytold#2522 (7ed0eab).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nledford

Copy link
Copy Markdown
Contributor Author

Rebased onto the fix round of #2905 (a938afc): no conflicts, the commit is unchanged (git range-diff shows it equal), now c196325. Checked here: cargo check, and the Settings tests (33 settings_filter and 92 settings tests pass). Clippy stops at the known native_menu.rs:492 finding that main has too.

@nledford
nledford force-pushed the settings-filter-marks branch from c196325 to 3677efd Compare October 28, 2026 02:47
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 28, 2026
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 28, 2026
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 28, 2026
…ead in every theme too

The controls storytold#2874, storytold#2906 and storytold#2522 added were outside storytold#2525's legibility pass.
Now the line under the tabs stands 3:1 against the window, where a theme's
divider is 1.2 to 1.4:1. The border of a choice that is not the chosen one, and
the outline that marks the heading of a section reached from the filter, stand 3:1
too (a button's own border is 1.6 to 1.7:1). The panel a question opens (Clear Cache, a model's
Remove, the smart previews folder) draws its controls through `legible_controls`
as the window does, and its caution text stands 4.5:1. The comment on
`legible_controls` in the window now says it covers the filter box as well.

The legibility tests follow the controls: General's empty-box check now reads the
filter box, there are tests for the tab bar's line, a choice and a question, and one
test the merge of the parents made untrue is adjusted (Settings opens with the
focus in the filter box, not nowhere). The What's New entry says that choices
in View Options' Info row are outlined the same way, since they are drawn by the
same function.

Built on a merge of storytold#2906 (f52b412), storytold#2525 (1a1381c), storytold#2523 (c787aac, then c75853a's skip records as their own commit)
and storytold#2522 (7ed0eab).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 28, 2026
…ead in every theme too

The controls storytold#2874, storytold#2906 and storytold#2522 added were outside storytold#2525's legibility pass.
Now the line under the tabs stands 3:1 against the window, where a theme's
divider is 1.2 to 1.4:1. The border of a choice that is not the chosen one, and
the outline that marks the heading of a section reached from the filter, stand 3:1
too (a button's own border is 1.6 to 1.7:1). The panel a question opens (Clear Cache, a model's
Remove, the smart previews folder) draws its controls through `legible_controls`
as the window does, and its caution text stands 4.5:1. The comment on
`legible_controls` in the window now says it covers the filter box as well.

The legibility tests follow the controls: General's empty-box check now reads the
filter box, there are tests for the tab bar's line, a choice and a question, and one
test the merge of the parents made untrue is adjusted (Settings opens with the
focus in the filter box, not nowhere). The What's New entry says that choices
in View Options' Info row are outlined the same way, since they are drawn by the
same function.

Built on a merge of storytold#2906 (f52b412), storytold#2525 (1a1381c), storytold#2523 (c787aac, then c75853a's skip records as their own commit)
and storytold#2522 (7ed0eab).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nledford

Copy link
Copy Markdown
Contributor Author

Force-pushed 19557dc241: a rebase onto #2905's new head 5af6770295; this PR's own commit is equal by git range-diff.

@nledford
nledford force-pushed the settings-filter-marks branch from 19557dc to 29bdbd3 Compare October 29, 2026 01:30
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 29, 2026
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 29, 2026
…torytold#2906 (29bdbd3), storytold#2525 and storytold#2523

# Conflicts:
#	crates/ui-egui/src/dialogs/settings.rs
#	crates/ui-egui/tests/it/accessibility.rs
@nledford
nledford marked this pull request as ready for review October 29, 2026 05:35
nledford and others added 7 commits October 29, 2026 11:16
…ibrary window that owns the keys, and reads its sections again when the display profile changes
…st, and shows why

- A word a section does not say finds it (settings::ALSO: "trash" for Culling, "scheme" for
  Appearance, "catalog" for Library\u2026), from the start of the word; either spelling finds the
  other (color / colour, gray / grey, catalog / catalogue\u2026), also while the word is being typed
  and half typed.
- The best match comes first: a word in the name of the section or its tab, then in a label,
  choice or button, then in an explanation. Return opens the first. Ties stay in tab order.
- The line under a result starts shortly before the word found, which is drawn stronger.
  Folders and text typed into boxes are not looked through.
- The heading of the section opened is marked for a moment (settingsLanded:<section>).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a prompt that is up when Settings is shown anew
… drawn in, so a prompt over it neither empties the filter nor takes the focus
…der it, and the word is drawn whole

The line under a result was cut into pieces at the letters found, each piece in
a format of its own (dimmer text, the letters found in the text color and a
heavier weight). epaint shapes each piece by itself, so a match inside a word
lost the kerning across the cuts, and in Arabic left the letters either side of
them unjoined.

The line is now one piece of text in one format. The letters found have a fill
behind them and a line under them, a rectangle per stretch per row, placed from
the galley's glyphs (egui 0.37 keeps them in the order of the chars, one for each,
whichever way the text runs). The line under them is
there because the heavier weight is gone: the fill alone would be told by its
color only. The line of text is in one color, legible on the fill too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nledford
nledford force-pushed the settings-filter-marks branch from 29bdbd3 to 5ad9732 Compare October 30, 2026 14:11
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 30, 2026
…rytold#2906 (5ad9732), storytold#2523 and storytold#2522

# Conflicts:
#	crates/ui-egui/locales/cs.json
#	crates/ui-egui/locales/es.json
#	crates/ui-egui/locales/fi.json
#	crates/ui-egui/locales/fr.json
#	crates/ui-egui/locales/id.json
#	crates/ui-egui/locales/it.json
#	crates/ui-egui/locales/ja.json
#	crates/ui-egui/locales/ka.json
#	crates/ui-egui/locales/pl.json
#	crates/ui-egui/locales/pt-br.json
#	crates/ui-egui/locales/ru.json
#	crates/ui-egui/locales/sv.json
#	crates/ui-egui/locales/uk.json
#	crates/ui-egui/locales/vi.json
#	crates/ui-egui/locales/zh-hans.json
#	crates/ui-egui/locales/zh-hant.json
#	crates/ui-egui/src/dialogs/settings.rs
#	crates/ui-egui/src/tests.rs
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 30, 2026
…torytold#2906, storytold#2525 and storytold#2522 (4926fd2)

# Conflicts:
#	crates/ui-egui/locales/cs.json
#	crates/ui-egui/locales/de.json
#	crates/ui-egui/locales/es.json
#	crates/ui-egui/locales/fi.json
#	crates/ui-egui/locales/fr.json
#	crates/ui-egui/locales/id.json
#	crates/ui-egui/locales/it.json
#	crates/ui-egui/locales/ja.json
#	crates/ui-egui/locales/ka.json
#	crates/ui-egui/locales/pl.json
#	crates/ui-egui/locales/pt-br.json
#	crates/ui-egui/locales/ru.json
#	crates/ui-egui/locales/sv.json
#	crates/ui-egui/locales/uk.json
#	crates/ui-egui/locales/vi.json
#	crates/ui-egui/locales/zh-hans.json
#	crates/ui-egui/locales/zh-hant.json
#	crates/ui-egui/src/dialogs/settings.rs
#	crates/ui-egui/src/dialogs/settings/performance.rs
#	crates/ui-egui/src/tests.rs
#	docs/whats-new.md
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 30, 2026
…torytold#2906, storytold#2525 and storytold#2523 (bf548de)

# Conflicts:
#	crates/ui-egui/src/dialogs/settings.rs
#	crates/ui-egui/src/dialogs/settings/appearance.rs
#	crates/ui-egui/src/dialogs/settings/widgets.rs
#	crates/ui-egui/src/tests.rs
#	crates/ui-egui/src/widgets.rs
#	crates/ui-egui/tests/it/accessibility.rs
#	docs/whats-new.md
nledford added a commit to nledford/lightcraft that referenced this pull request Oct 30, 2026
…ead in every theme too

The controls storytold#2874, storytold#2906 and storytold#2522 added were outside storytold#2525's legibility pass.
Now the line under the tabs stands 3:1 against the window, where a theme's
divider is 1.2 to 1.4:1. The border of a choice that is not the chosen one, and
the outline that marks the heading of a section reached from the filter, stand 3:1
too (a button's own border is 1.6 to 1.7:1). The panel a question opens (Clear Cache, a model's
Remove, the smart previews folder) draws its controls through `legible_controls`
as the window does, and its caution text stands 4.5:1. The comment on
`legible_controls` in the window now says it covers the filter box as well.

The legibility tests follow the controls: General's empty-box check now reads the
filter box, there are tests for the tab bar's line, a choice and a question, and one
test the merge of the parents made untrue is adjusted (Settings opens with the
focus in the filter box, not nowhere). The What's New entry says that choices
in View Options' Info row are outlined the same way, since they are drawn by the
same function.

Built on a merge of storytold#2906 (f52b412), storytold#2525 (1a1381c), storytold#2523 (c787aac, then c75853a's skip records as their own commit)
and storytold#2522 (7ed0eab).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant