Skip to main content

Crate native_theme_qt

Crate native_theme_qt 

Source
Expand description

Resolve the effective Qt 6 widget theme through Qt itself.

The C++ probe lets Qt load the configured QPA platform theme and QStyle plugins, then returns the effective palette, fonts, metrics, and style hints as JSON. This handles configurations that cannot be reproduced by parsing a single qt6ct.conf file.

Structs§

ControlSnapshot
Resolved defaults for one representative Qt widget.
FontSnapshot
A resolved Qt font.
NativeThemeBridge
A Qt snapshot resolved through native-theme, ready for framework connectors.
PaletteBrush
One brush from a Qt palette.
QtSettingsSnapshot
Application-wide values resolved by Qt.
Rgba
An RGBA color in the sRGB color space.
SemanticPalette
Toolkit-neutral colors projected from Qt palette roles.
SizeSnapshot
A two-dimensional size in toolkit logical pixels.
SnapshotValidationError
Explanation of why a theme snapshot is not safe to consume.
ThemeIdentity
Identity of the active Qt theme and platform backend.
ThemeSnapshot
A complete Qt theme probe result.

Enums§

NativeThemeBridgeError
Failure to translate a Qt snapshot into the native-theme model.
ProbeError
Failure to initialize Qt or deserialize its probe output.

Constants§

SCHEMA_VERSION
Version of the JSON snapshot contract.
SEMANTIC_COLOR_ROLES
Stable toolkit-neutral role names shared with native-theme-gtk.

Functions§

probe
Resolve the current Qt 6 widget theme.

Type Aliases§

PaletteSnapshot
Qt palette groups keyed by active, inactive, and disabled, then role.