Repository navigation
Split uikit into core + M3 / foundation backends with slots - #21
Merged
Merged
Conversation
- uikit-core: configurations, shared state types, slot states and the M3-free components (TextField, TextFieldArea, PageIndicator, shimmer) - uikit-components: Material3 backend restored from comp-preview, adapted to the core state types; renders byte-identically to the old goldens - uikit-components-foundation: the foundation rewrite, no M3/Accompanist - Slots: Checkbox.box, RadioButton.indicator, Button.loadingIndicator, ModalBottomSheet.dragHandle (showHandle deprecated) - sample: backend flavor dimension sharing one set of goldens - Version 0.3.0, CHANGELOG, README backend section, CI for all modules
Inset the track by half a thumb, pad to the 48dp touch size, draw the thumb gap with inside corners and the stop indicator, matching the Material3 backend screenshots.
… for screenshot parity
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.
Builds on #20 (its commits are included) and replaces the all-or-nothing Material 3 removal with a choice of backend.
Modules
uikit-core: configurations,UikitConfiguration, shared state types (UikitSliderState,SelectableDates,DatePickerState, …), slot state classes, and the M3-free components (TextField, TextFieldArea, PageIndicator, shimmer).uikit-components: Material 3 backend (same artifact id, so existing apps just bump the version).uikit-components-foundation: the WIP: remove Material 3 and rewrite components from scratch #20 rewrite, no Material 3 or Accompanist.Both backends share the package
ru.kode.uikit.componentsand the same API. Depending on both fails with duplicate classes on purpose.Slots
Checkbox.box,RadioButton.indicator,Button.loadingIndicator,ModalBottomSheet.dragHandle(showHandledeprecated),TextFieldDatePicker.title/headline, plus the existing sliderthumb/track. Defaults are inUikit*Defaults(UikitDatePickerDefaults.Title/.Headlinefor the date picker). A day-cell slot is not offered: Material 3'sDatePickerhas no hook for it.Screenshots
The sample has a
backendflavor dimension (material3,foundation) and both flavors sharesample/src/test/snapshots.verifyRoborazziMaterial3Debug: 17/17. The M3 goldens are byte-identical to the pre-split ones.verifyRoborazziFoundationDebug: 17/17. The foundation backend ports Material 3 1.4.0's drawing and layout code (checkbox, radio, indeterminate spinner, slider track with thumb gap and stop dots, date picker layout, sheet scrim and window), with no Material 3 dependency.Textan explicit colour, because only the M3 sheet provides M3'sLocalContentColor. The M3 render is unchanged. This is listed under known differences in the CHANGELOG, together with the slider limits: the thumb gap comes from the configuration, and no step ticks are drawn.Other
.claude/(local worktrees).Not for merge or release yet.