Skip to content

fix(settings): align hotkey columns, widen slider rows, one-line hints - #412

Merged
kirillDevPro merged 1 commit into
mainfrom
fix/settings-ui
Sep 4, 2026
Merged

fix(settings): align hotkey columns, widen slider rows, one-line hints#412
kirillDevPro merged 1 commit into
mainfrom
fix/settings-ui

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

What & why

A live UI audit of the Settings window at a maximized 2560-wide window found six readability defects:

  • Hotkeys: every key editor sat at the far right edge, ~1300 px away from the action it binds.
  • Interface / Lines: slider rows were a bare 180 px track with no scale, no unit and a loose value.
  • Interface: the chart-label size slider showed -1.50 with nothing saying it is a pixel delta.
  • General: «Закрывать через, сек … 180 сек» and «Хранить лог, дней … 14 дн.» repeated the unit.
  • General: hints ran to four-line paragraphs under each option.
  • Lines: the «Общее» block's labels were the only lowercase ones in the window.

Fixes, all inside settings/** and the three locale files (ru/en/es):

  • Hotkeys rows get a fixed title column and a capped description column, so the editors line up in one column beside the text and wrap instead of clipping on a narrow window.
  • The shared slider_row takes the field's range and a formatter: a wider track, min/max captions under it, and a right-aligned value with its unit (85%, 1.0 px).
  • The label-size slider is labelled as an adjustment in px and renders its value with a sign (-1.5 px).
  • The duplicated units are dropped from the two General labels; the steppers keep them.
  • A multi-sentence hint shows its first sentence with and the full text in a tooltip; the locale strings are unchanged.
  • The Lines «Общее» labels are capitalized. The English line names on that tab stay untranslated per locales/README.md.

One static contract (theme_contract::analytics) pinned the old hint(&t!(...)) call shape and was updated to the new one; it still asserts the valuation hint key is rendered.

How to verify

  • cargo test --workspace (the theme_contract target covers the updated pin).
  • Run the debug build, open Настройки and compare the Хоткеи, Интерфейс, Линии and Общие tabs with the list above; hover a long General hint for the tooltip.

https://claude.ai/code/session_01HEP2jThagma91nvSCfgsdZ

The Settings window reads unevenly at a maximized 2560-wide window: every
hotkey editor sits at the far right edge, 1300 px away from the action it
binds; slider rows are a bare 180 px track with no scale or unit; the
chart-label size slider shows "-1.50" with no hint that it is a pixel
delta; two General labels repeat the unit their stepper already shows;
General hints run to four-line paragraphs; and the Lines "Global" labels
are the only lowercase ones in the window.

Reserve a fixed title column and cap the description column on the
Hotkeys tab so the editors line up beside the text; extend the shared
slider_row with the field's range and formatter, doubling the track and
captioning its endpoints; rename the label-size slider to an adjustment
in px and format its value with a sign; drop the duplicated units from
the idle-close and log-retention labels; show only the first sentence of
a multi-sentence hint with the full text in a tooltip; capitalize the
Lines "Global" labels. Locale values change in ru/en/es; the tour page
is unchanged by the generator.

Claude-Session: https://claude.ai/code/session_01HEP2jThagma91nvSCfgsdZ
@kirillDevPro
kirillDevPro merged commit 4ccadcc into main Sep 4, 2026
6 checks passed
@kirillDevPro
kirillDevPro deleted the fix/settings-ui branch September 4, 2026 16:14
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