Skip to main content

Crate native_theme_gtk

Crate native_theme_gtk 

Source
Expand description

Resolve the effective GTK 4 theme through GTK itself.

The crate intentionally does not parse gtk.css. GTK themes have selectors, imports, variables, media queries, user overrides, and version-dependent lookup rules. probe asks GTK for the effective settings and computed values after those layers have been applied.

Structs§

EnumSetting
A dynamically discovered GTK enum preference.
GtkSettingsSnapshot
User preferences exposed by GtkSettings.
NamedColor
A symbolic color resolved by GTK’s CSS engine.
NativeThemeBridge
A GTK snapshot resolved through native-theme, ready for framework connectors.
Rgba
An RGBA color in the sRGB color space.
SemanticPalette
Toolkit-neutral colors projected from GTK symbolic color roles.
SnapshotValidationError
Explanation of why a theme snapshot is not safe to consume.
ThemeIdentity
Identity of the active GTK theme and display backend.
ThemeSnapshot
A complete GTK theme probe result.
WidgetMetrics
GTK’s preferred dimensions for a representative widget.
WidgetSnapshot
Effective information collected for one representative control.
WidgetState
Computed visual state for a representative GTK widget.

Enums§

NativeThemeBridgeError
Failure to translate a GTK snapshot into the native-theme model.
ProbeError
Failure to initialize or query GTK.

Constants§

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

Functions§

probe
Resolve the current GTK 4 theme.