Audit finding
ModernTheme.cs contains theme tokens, menu roles, form styling, custom buttons, toggle switch, rounded panel and additional drawing/rendering classes.
ModernSelectorComboBoxColumn.cs contains the selector option model, column, cell, editing control, dropdown behavior and painter.
These files have become presentation “grab bags”, making ownership and tests harder to locate.
Target state
Organize custom presentation code by responsibility:
- immutable theme tokens and theme application;
- each reusable widget in its own focused type/file;
- selector model/column/cell/editor/painter separated by role;
- pure visual-state resolvers kept testable without control creation.
This is a structural clean-up, not a redesign of the visual style.
Acceptance criteria
Audit finding
ModernTheme.cscontains theme tokens, menu roles, form styling, custom buttons, toggle switch, rounded panel and additional drawing/rendering classes.ModernSelectorComboBoxColumn.cscontains the selector option model, column, cell, editing control, dropdown behavior and painter.These files have become presentation “grab bags”, making ownership and tests harder to locate.
Target state
Organize custom presentation code by responsibility:
This is a structural clean-up, not a redesign of the visual style.
Acceptance criteria