Skip to content

fix(ui): use muted_text for empty font/modifier picker states - #81

Open
VedantMadane wants to merge 1 commit into
nnmarcoo:mainfrom
VedantMadane:fix/muted-text-empty-state
Open

fix(ui): use muted_text for empty font/modifier picker states#81
VedantMadane wants to merge 1 commit into
nnmarcoo:mainfrom
VedantMadane:fix/muted-text-empty-state

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

Empty-state labels in the font and modifier pickers used a hardcoded mid-grey (Color::from_rgba(0.6, 0.6, 0.6, 1.0)), which ignores the active theme. On light themes that grey is hard to read and inconsistent with other secondary labels.

This routes both empty states through styles::muted_text(theme), matching info_panel and preferences.

Changes

  • src/widgets/font_picker.rs: empty font search label uses themed muted_text
  • src/widgets/modifier_picker.rs: empty modifier search label uses themed muted_text

Test plan

  • Open font picker, search for a non-existent font — empty label uses muted theme colour (not fixed grey)
  • Open modifier picker, search for a non-existent modifier — same
  • Spot-check light and dark themes

Fixes #69

Empty-state labels in font_picker and modifier_picker used a hardcoded
mid-grey that ignores the active theme. Route them through
styles::muted_text so light themes get the same muted secondary colour
as info_panel and preferences.

Fixes nnmarcoo#69

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
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.

Empty-state text hardcodes grey instead of using muted_text

1 participant