Skip to content

feat(settings): type a hex code for the theme colour - #244

Open
arnavaggarwal-dev wants to merge 1 commit into
little-systems:mainfrom
arnavaggarwal-dev:feat/hex-colour-input
Open

arnavaggarwal-dev wants to merge 1 commit into
little-systems:mainfrom
arnavaggarwal-dev:feat/hex-colour-input

Conversation

@arnavaggarwal-dev

@arnavaggarwal-dev arnavaggarwal-dev commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Hi @SehajveerSingh2005, this lets you type an exact hex code for the custom theme colour instead of only picking it.

Hex colour input

In Settings > Appearance, the read-only label next to the colour picker (#RRGGBB) becomes a small text field:

  • Type #RGB or #RRGGBB, with or without the #, in any case. Short codes are expanded (#0af becomes #00aaff).
  • It is applied on Enter or when the field loses focus, through the same handleThemeColorChange the picker uses.
  • Anything that isn't a valid code, or pressing Escape, snaps back to the current colour.
  • It follows the picker: choosing a colour there updates the field.

The .color-picker-label style is replaced by .color-hex-input (monospace, matches the settings inputs, accent border on focus). No new settings.

Related issue

Closes #258 (waiting for a maintainer to agree on the approach).

How was this tested?

  • Frontend typecheck passes (tsc --noEmit).
  • No Rust changes.

Checklist

  • I read CONTRIBUTING.md
  • This change has a linked, approved issue (required for features): linked, waiting for approval
  • CI passes
  • The change is focused on one thing
  • Tested on Windows

The custom theme colour's read-only label becomes an input: a typed #RGB or #RRGGBB code (with or without the #) is applied on Enter or when the field loses focus; anything else, or Escape, snaps back to the current colour.
@SehajveerSingh2005 SehajveerSingh2005 added the needs-testing Needs relevant reproduction or Windows validation before merge label Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-testing Needs relevant reproduction or Windows validation before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Type a hex code for the custom theme colour

2 participants