Descriptive Units
Right now Kirigami.Units.*
have a problem: they don't mean anything!
What's a smallSpacing
? What's a mediumSpacing
? What's a largeSpacing
? What's a gridUnit
? Most developers have no idea. As a result people use random units in random places, and multiply them by random numbers. It somewhat defeats the purpose of having standard units.
Now… what's a cornerRadius
? Oh wait, that one I know because its name tells me! This makes its intended usage 100% obvious and uncontroversial. This is much better.
I think Kirigami's Units
would hugely benefit from expanding this convention. We could have units with comprehensible names for lots of obvious use cases:
Kirigami.Units.buttonSpacing
Kirigami.Units.menuSpacing
Kirigami.Units.delegateEdgePadding
Kirigami.Units.windowEdgePadding
- etc.
These usages would be super obvious, people would stop multiplying them by random constants, stop arguing over which to use where, and we'd truly have a central place to change our whitespace without breaking implicit assumptions.