Skip to main content

Module editor_utils

Module editor_utils 

Source
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.