psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::FloatSkins Class Reference

#include <FloatSkins.hpp>

Inheritance diagram for psychic_ui::FloatSkins:
psychic_ui::SkinSet psychic_ui::StyleSheet

Public Member Functions

std::string_view name () const override
const Theme & defaultTheme () const override
const Theme & lightTheme () const override
const Theme & darkTheme () const override
std::unique_ptr< SkinSet > fallback () const override
void registerSkins (SkinRegistry &skins) const override
void load (StyleManager *manager) override
Public Member Functions inherited from psychic_ui::SkinSet
const Theme & theme (ColorScheme scheme) const
virtual std::vector< const Theme * > themes () const
bool hasTheme (const Theme &theme) const
Public Member Functions inherited from psychic_ui::StyleSheet
 StyleSheet (const StyleSheet &)=delete
StyleSheet & operator= (const StyleSheet &)=delete
 StyleSheet (StyleSheet &&)=delete
StyleSheet & operator= (StyleSheet &&)=delete

Detailed Description

S5 Float, the sample skin set: rounded panels floating over a dotted canvas, gentle two-layer shadows, neutral greys and a violet accent, light first (Float Light, Float Dark).

It shows how little a skin set needs: it falls back on the default set for every skin and rule, and only overrides the rules whose look differs. Most of the change comes from its themes alone (corners, sizes, colors), since the default set's rules are written from the theme.

window.skinSet<FloatSkins>();

Member Function Documentation

◆ darkTheme()

const Theme & psychic_ui::FloatSkins::darkTheme ( ) const
nodiscardoverridevirtual

The set's theme for a dark system: its default theme unless it has a dark one

Reimplemented from psychic_ui::SkinSet.

◆ defaultTheme()

const Theme & psychic_ui::FloatSkins::defaultTheme ( ) const
nodiscardoverridevirtual

The theme the set ships with, for a system that doesn't say whether it is light or dark

Implements psychic_ui::SkinSet.

◆ fallback()

std::unique_ptr< SkinSet > psychic_ui::FloatSkins::fallback ( ) const
nodiscardoverridevirtual

Where the skins this set lacks come from; the default set has none

Reimplemented from psychic_ui::SkinSet.

◆ lightTheme()

const Theme & psychic_ui::FloatSkins::lightTheme ( ) const
nodiscardoverridevirtual

The set's theme for a light system: its default theme unless it has a light one

Reimplemented from psychic_ui::SkinSet.

◆ load()

void psychic_ui::FloatSkins::load ( StyleManager * manager)
overridevirtual

◆ name()

std::string_view psychic_ui::FloatSkins::name ( ) const
nodiscardoverridevirtual

Implements psychic_ui::SkinSet.

◆ registerSkins()

void psychic_ui::FloatSkins::registerSkins ( SkinRegistry & skins) const
overridevirtual

Implements psychic_ui::SkinSet.


The documentation for this class was generated from the following files: