Skip to content

Settings: open the Custom accent's colour wheel on its own swatch - #624

Merged
nuriapenya merged 1 commit into
trunkfrom
opensta-126-position-custom-color-picker-as-final-swatch
Aug 18, 2026
Merged

nuriapenya merged 1 commit into
trunkfrom
opensta-126-position-custom-color-picker-as-final-swatch

Conversation

@nuriapenya

@nuriapenya nuriapenya commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

What

Open the Custom accent's colour wheel on the Custom swatch, instead of at the bottom left of the Accent color section.

Before After
Screenshot 2026-08-18 at 19 50 36 Screenshot 2026-08-18 at 19 52 06

The Custom swatch and its input now share a cell that is the last item of the accent row, anchored in CSS. The input is on the swatch from first paint, and it follows the swatch through window resize and grid reflow with nothing to measure.

Testing Instructions

  1. Open OpenStation Preferences, then Appearance, then Accent color.
  2. Click the last swatch, Custom. The wheel should open on that square.
  3. Pick a colour and confirm it applies to focused title bars, buttons and focus rings.
  4. Narrow the window until the accent row wraps onto two lines, then click Custom again. The wheel should still open on the swatch.

The native colour wheel is a browser popup anchored to the box of the
`<input type="color">` it belongs to, and the browser places it from the
layout it has already computed. The input was measured and moved with an
inline left/top one line before showPicker(), which leaves layout dirty,
so the wheel was placed from the input's previous box: its static
position at the start of the row, under the first swatch.

Put the input in the Custom swatch's own cell and anchor it there in CSS
instead. It sits on the swatch from first paint, so there is no dirty
layout left to place it from, and it follows the swatch through window
resize and grid reflow with nothing to measure.
@nuriapenya
nuriapenya marked this pull request as ready for review August 18, 2026 17:48
@nuriapenya nuriapenya added the bug Something isn't working label Aug 18, 2026
@nuriapenya nuriapenya self-assigned this Aug 18, 2026
@nuriapenya
nuriapenya merged commit fc24382 into trunk Aug 18, 2026
5 checks passed
@nuriapenya
nuriapenya deleted the opensta-126-position-custom-color-picker-as-final-swatch branch August 18, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant