Skip to content

icon_button: take an ink colour for prominent icon buttons#5

Merged
kakarot-dev merged 1 commit into
masterfrom
feat/icon-button-ink
May 22, 2026
Merged

icon_button: take an ink colour for prominent icon buttons#5
kakarot-dev merged 1 commit into
masterfrom
feat/icon-button-ink

Conversation

@kakarot-dev

Copy link
Copy Markdown
Contributor

icon_button hard-coded a muted text_2 glyph, so every icon button reads as low-emphasis. Adds an ink: Color32 parameter for the rest colour — callers pass t.text_2 (muted, unchanged look), or t.text / t.accent for a prominent button such as a global settings gear. Hover brightens the glyph toward white.

Internal callers (menu_button, modal) and the gallery pass t.text_2. fmt, clippy --all-targets, build and docs pass locally.

icon_button hard-coded a muted text_2 glyph. Add an `ink: Color32`
parameter for the rest colour so callers can render a prominent
(t.text / t.accent) icon button — e.g. a global settings gear.
Hover brightens the glyph toward white.
@kakarot-dev kakarot-dev merged commit b191eb2 into master May 22, 2026
1 check passed
@kakarot-dev kakarot-dev deleted the feat/icon-button-ink branch May 22, 2026 02:23
kakarot-dev added a commit that referenced this pull request May 22, 2026
icon_button hard-coded a muted text_2 glyph. Add an `ink: Color32`
parameter for the rest colour so callers can render a prominent
(t.text / t.accent) icon button — e.g. a global settings gear.
Hover brightens the glyph toward white.
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