Flat Twin Shares Geometry Not Material

When a user setting picks between two renderings of the same control — an expensive decorative one and a plain twin — every geometry decision has to be mirrored between them (item width, bar height, indicator size, inset, and the rule that computes the width budget) so toggling changes the material and never the layout; the compiler cannot pair two constants declared in two files. Also covers recolouring an icon that arrives as a slot lambda, which only CompositionLocalProvider(LocalContentColor) can reach. Use when switching a visual setting also moves things, when the plain variant's indicator sits off its item, or when a slot-lambda icon ignores every tint you pass.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/flat-twin-shares-geometry-not-material commit 4c2a91e020

Frequently asked questions

npx skillmds@latest add maxrave-dev/flat-twin-shares-geometry-not-material