API reference
OverlayScrim
Same-window dim/scrim used behind modal overlays, drawers, and spotlights.
No matching API members.
fluent::overlay::OverlayScrim
Inherits QWidget · FluentElement
Constructors
Properties
double progressShared blur and dim fade progress from 0 (clear) to 1 (fully shown).
Readprogress()WritesetProgress()QRect spotlightRectRounded cut-out kept undimmed (scrim-local coordinates).
ReadspotlightRect()WritesetSpotlightRect()
Methods
double progress() constAlias used by Dialog smoke fade and Gallery intro tour animations.
void setProgress(double progress)Shared blur and dim fade progress from 0 (clear) to 1 (fully shown).
void setColor(const QColor& color)Overrides the theme smoke color; an invalid color restores the theme token.
QRect spotlightRect() constRounded cut-out kept undimmed (scrim-local coordinates).
void setSpotlightRect(const QRect& rect)Rounded cut-out kept undimmed (scrim-local coordinates).
Signals
Subclass interfaces
Methods
Inherited from fluent::FluentElement
Methods
static void setTheme(Theme theme)Updates the global theme and notifies active FluentElement instances.
static void setThemeDeferred(Theme theme)Schedules a visible-first batched theme refresh without blocking the current interaction.
static Theme currentTheme()Returns the currently active global theme.
static bool themeUsesDarkAppearance(Theme theme)Returns whether a theme uses dark-backed chrome and material tokens.
static void refreshTheme()Re-broadcasts the current theme to repaint after a design-token change.
static int themeGeneration()Monotonic counter bumped on every theme change, for staleness checks.
Theme effectiveTheme() constResolves the theme used by this element, honoring an inherited QWidget override.
bool effectiveThemeUsesDarkAppearance() constReturns whether this element's effective theme uses dark-backed chrome.
bool setThemeOverrides(const QJsonObject& overrides)Component-facing token accessors.
QJsonObject themeOverrides() constReturns this element's authored overrides.
void clearThemeOverrides()Restores all token fields to global theme defaults.
const Colors& themeColorsRef() constNon-copying access to the active color set (for hot paint paths).
Material::AcrylicToken themeAcrylic() constMaterial, elevation, and adaptive layout tokens.
QColor themeBackdrop(bool active) constWindow-chrome backdrop color for the given activation state.
virtual void onThemeUpdated()Called after the global theme changes.
Enumerations
enum ThemeGlobal visual theme used when resolving design tokens.
Light = 0Dark = 1HighContrast = 2
Types and aliases
struct ColorsDesign token snapshots returned to components.
All inherited Qt members:QWidget