Expand description
Shared utilities for settings sub-editors (e.g. LibraryEditor, RefreshRateByKindEditor).
These helpers avoid duplicating the identical dimension calculations and chrome-building code across every sub-editor.
Functionsยง
- build_
bottom_ separator - Builds the black separator line just above the bottom bar.
- build_
two_ button_ bottom_ bar - Builds a two-button bottom bar (close + validate).
- calculate_
dimensions - Returns
(bar_height, separator_thickness, separator_top_half, separator_bottom_half)based on the current device DPI.