Skip to content

Reuse existing design tokens for duplicates from the desktop restyle - #45

Merged
Tarquinen merged 1 commit into
devfrom
simplify/pr21
Nov 12, 2026
Merged

Tarquinen merged 1 commit into
devfrom
simplify/pr21

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Follow-up to #21. No visual or behaviour change.

#21 added a few tokens and inline styles that copy ones core/ui already has. This removes the copies:

  • OpenCodeSheetDefaults.shape was the same as OpenCodeShape.sheetTop. It's removed, and its 10 sheets now use sheetTop.
  • OpenCodeButtonDefaults.shape was the same as OpenCodeShape.control.
  • BorderStroke(1.dp, colors.border) was written out 6 times. Those places now use OpenCodeSurfaces.border.
  • The circle icon button's RoundedCornerShape(OpenCodeRadius.card) is now OpenCodeShape.card.
  • callSurface in VoiceView.kt had two overloads with the same body. The Shape one now calls the lambda one.

Each replacement has exactly the same value as what it replaces.

Verification: scripts/check.sh passes on every module. Before/after emulator screenshots of the connection screen and the New Server sheet, in light and dark, are pixel-identical.

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
Tarquinen merged commit dade6da into dev Nov 12, 2026
3 checks passed
Tarquinen added a commit that referenced this pull request Nov 12, 2026
No conflicts. The overscroll files now match dev's #43, and FloatingCall keeps #42's cleanup with the assistant's two internal helpers.
@Tarquinen Tarquinen mentioned this pull request Nov 12, 2026

This branch was previously deployed

1 inactive deployment
release — 0134a31a Deployed Nov 12, 2026 by Tarquinen via check #140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant