Skip to content

refactor(settings): trim PR #28's settings chrome - #46

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

Tarquinen merged 1 commit into
devfrom
simplify/pr28

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Follow-up to #28. No behaviour change.

Removed:

  • settingsSliderColors(): it had one caller, so it now sits inline in SoundEffectsSettings.
  • SettingsDividerThickness: a private constant used once, now inline. SettingsDivider's start inset is now one expression.
  • A redundant .height(48.dp) on the segmented control's Row. Its segments are already 48 dp, and so is the Box around it.
  • Comments that repeated the code, and stale KDoc: "[inset] is kept so the call sites stay as on iOS", even though inset is used now.
  • Detail in the SettingsRows parity row that only repeated the code.

Verification: check :core :feature:settings passes. Took emulator screenshots before and after of Settings root, Sessions, Models, Appearance, Themes and Experimental (Sound Effects slider and switches on). Covered light and dark with the OpenCode, Tokyo Night and System themes: 34 pairs, all pixel-identical except the live latency graph.

No behaviour change. Inlines settingsSliderColors() into its only caller
(SoundEffectsSettings) and the single-use SettingsDividerThickness, folds
SettingsDivider's start inset into one expression, drops a redundant Row
height in SettingsSegmentedControl, removes narrating comments and stale
KDoc ("[inset] is kept so the call sites stay as on iOS"; inset is used),
and shortens the SettingsRows parity row.

Verified: vm check :core :feature:settings; emulator before/after shots of
Settings root, Sessions, Models, Appearance, Themes and Experimental (with
the Sound Effects slider and on switches) in light and dark, with the
OpenCode, Tokyo Night and System themes: pixel-identical apart from the
live latency graph.
@Tarquinen
Tarquinen merged commit ff0de7d 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 — 15b310c2 Deployed Nov 11, 2026 by Tarquinen via check #130
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