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

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

#include <aurore/core/theme.hpp>

Public Member Functions

bool enabled () const
 Whether any particle is drawn.
 

Public Attributes

ParticleKind kind = ParticleKind::NONE
 
float density = LOW
 0 to 1, of ThemeDecorations::MAX_PARTICLES
 
float speed = 1.0f
 0.25 to 4
 
ParticleLayer layer = ParticleLayer::BACK
 
std::vector< NVGcolor > colors
 particles_color: up to MAX_COLORS; empty: from the palette
 

Static Public Attributes

static constexpr float LOW = 0.3f
 
static constexpr float MEDIUM = 0.6f
 
static constexpr float HIGH = 1.0f
 
static constexpr int MAX_COLORS = 5
 

Detailed Description

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

Member Function Documentation

◆ enabled()

bool aurore::ThemeParticles::enabled ( ) const
inline

Whether any particle is drawn.

Member Data Documentation

◆ colors

std::vector<NVGcolor> aurore::ThemeParticles::colors

particles_color: up to MAX_COLORS; empty: from the palette

◆ density

float aurore::ThemeParticles::density = LOW

◆ HIGH

constexpr float aurore::ThemeParticles::HIGH = 1.0f
static

◆ kind

ParticleKind aurore::ThemeParticles::kind = ParticleKind::NONE

◆ layer

ParticleLayer aurore::ThemeParticles::layer = ParticleLayer::BACK

◆ LOW

constexpr float aurore::ThemeParticles::LOW = 0.3f
staticconstexpr

◆ MAX_COLORS

constexpr int aurore::ThemeParticles::MAX_COLORS = 5
staticconstexpr

◆ MEDIUM

constexpr float aurore::ThemeParticles::MEDIUM = 0.6f
static

◆ speed

float aurore::ThemeParticles::speed = 1.0f

0.25 to 4


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