granite icon indicating copy to clipboard operation
granite copied to clipboard

Deprecate all external Style Class APIs

Open wpkelso opened this issue 8 months ago • 1 comments

Many of our public style classes are targeted toward a few widgets, or have some general parameters we tend to use by default (CARD doesn't work well if the element has no margin).

Instead of having developers apply these styles manually, I propose we deprecate exposing all existing style class constants externally, and control their application via properties on subclassed widgets instead. Ideally, this leads to more concise end-developer code, and we can give away more defaults for free.

wpkelso avatar May 16 '25 21:05 wpkelso

I think this is a good ideal but unless we implement our own buttons, for example, I don't think we can achieve it 100%

danirabbit avatar May 16 '25 23:05 danirabbit