Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::ThemeBackground Struct Reference

A variant's background, as a theme file sets it (docs/themes.md) More...

#include <aurore/core/theme.hpp>

Public Member Functions

bool hasImage () const
 

Public Attributes

std::string image
 background_image: its path (Theme::resolveAsset), "" without one
 
BackgroundFit fit = BackgroundFit::COVER
 
float dim = DEFAULT_DIM
 background_dim: how much of aurore/background veils the image (0 to 1)
 
float surfaceOpacity = 1.0f
 

Static Public Attributes

static constexpr float DEFAULT_DIM = 0.35f
 

Detailed Description

A variant's background, as a theme file sets it (docs/themes.md)

Member Function Documentation

◆ hasImage()

bool aurore::ThemeBackground::hasImage ( ) const
inline

Member Data Documentation

◆ DEFAULT_DIM

constexpr float aurore::ThemeBackground::DEFAULT_DIM = 0.35f
staticconstexpr

◆ dim

float aurore::ThemeBackground::dim = DEFAULT_DIM

background_dim: how much of aurore/background veils the image (0 to 1)

◆ fit

BackgroundFit aurore::ThemeBackground::fit = BackgroundFit::COVER

◆ image

std::string aurore::ThemeBackground::image

background_image: its path (Theme::resolveAsset), "" without one

◆ surfaceOpacity

float aurore::ThemeBackground::surfaceOpacity = 1.0f

surface_opacity: the surfaces' opacity over the image (0 to 1), see Theme::addSurfaceKey; 1 without an image


The documentation for this struct was generated from the following file: