dbs_annotator.utils.responsive

Responsive design utilities for adaptive UI scaling.

This module provides functions to scale UI elements based on screen DPI and resolution, ensuring consistent appearance across different displays.

Functions

apply_responsive_size_policy(widget[, ...])

Apply responsive size policy to a widget.

get_dpi_scale()

Get the DPI scaling factor for the current screen.

get_responsive_stylesheet_variables([dpi_scale])

Get stylesheet variables for responsive design.

scale_font_size(base_size[, dpi_scale])

Scale font size based on DPI, with reasonable limits.

scale_value(value[, dpi_scale])

Scale a value based on DPI.