Repository navigation
ui: own colour picker, card and slider; the last shadcn controls of settings (#1734) - #1749
Merged
Merged
Conversation
…ast shadcn controls of the theme editor, Preferences and three cards (#1734)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1734 (switch: #1488, not part of this). Epic #1465 (step 4c).
QueryaColorPicker(shared/widgets): saturation / brightness area, hue bar, alpha bar (checkered), a swatch and a hex field (#RRGGBBor#AARRGGBB);toHex/parseHexare static. The theme editor's colour dialog uses it and takes a plainColor(shadcn'sColorPickerandColorDerivativeare gone).Sliderwith aSliderThemein the kit colours (track, thumb, ticks); presets, Shift for 1 % steps and commit-on-release work as before. shadcn'shintValuemarker for the default is the one thing dropped; the default sits on a preset tick.QueryaCard: the card colour, a hairline border, radius 10; replaces shadcn'sCardin the extension stats chips, the Mongo index rows and the aggregation stages.Tests (minimal, as asked): hex round trip and parsing, typing a hex reports the colour; the slider test finds
material.Slider.dart analyzeclean; shared, settings, guards, Mongo, extensions, e2e, app and main-screen suites pass locally.Not checked on screen (picker drag behaviour especially).