Repository navigation
Reuse existing design tokens for duplicates from the desktop restyle - #45
Merged
Merged
Conversation
removes the copies and points their callers at the originals: - OpenCodeSheetDefaults.shape duplicated OpenCodeShape.sheetTop (10 sheets). - OpenCodeButtonDefaults.shape duplicated OpenCodeShape.control. - BorderStroke(1.dp, colors.border) was inlined 6 times; it is OpenCodeSurfaces.border (buttons, circle icon button, AppView, permission panel, Catch Up). - The circle icon button's RoundedCornerShape(OpenCodeRadius.card) is OpenCodeShape.card. - VoiceView's two callSurface overloads had the same body; the Shape overload now delegates to the lambda one. No visual or behaviour change: every replacement has the same value. Verified: vm.sh check (all modules) passes; before/after emulator screenshots of the connection screen and the New Server sheet, light and dark, are pixel-identical.
Tarquinen
force-pushed
the
simplify/pr21
branch
from
November 12, 2026 00:12
d74e2ba to
0134a31
Compare
Merged
This branch was previously deployed
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.
Follow-up to #21. No visual or behaviour change.
#21 added a few tokens and inline styles that copy ones
core/uialready has. This removes the copies:OpenCodeSheetDefaults.shapewas the same asOpenCodeShape.sheetTop. It's removed, and its 10 sheets now usesheetTop.OpenCodeButtonDefaults.shapewas the same asOpenCodeShape.control.BorderStroke(1.dp, colors.border)was written out 6 times. Those places now useOpenCodeSurfaces.border.RoundedCornerShape(OpenCodeRadius.card)is nowOpenCodeShape.card.callSurfaceinVoiceView.kthad two overloads with the same body. TheShapeone now calls the lambda one.Each replacement has exactly the same value as what it replaces.
Verification:
scripts/check.shpasses on every module. Before/after emulator screenshots of the connection screen and the New Server sheet, in light and dark, are pixel-identical.