psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::SkinSet Class Referenceabstract

#include <SkinSet.hpp>

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

Public Member Functions

virtual std::string_view name () const =0
virtual const Theme & defaultTheme () const =0
virtual const Theme & lightTheme () const
virtual const Theme & darkTheme () const
const Theme & theme (ColorScheme scheme) const
virtual std::vector< const Theme * > themes () const
bool hasTheme (const Theme &theme) const
virtual void registerSkins (SkinRegistry &skins) const =0
virtual std::unique_ptr< SkinSet > fallback () 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
virtual void load (StyleManager *manager)=0

Detailed Description

A design system's implementation: a skin per component (registerSkins), the rules that lay them out (load, written from manager->theme()), and the theme it ships with. A set may implement only some skins: the others come from its fallback set, whose skins and rules are registered and loaded first. A style manager has one set at a time (StyleManager::skinSet<S>()).

Member Function Documentation

◆ darkTheme()

virtual const Theme & psychic_ui::SkinSet::darkTheme ( ) const
inlinenodiscardvirtual

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

Reimplemented in psychic_ui::DeskSkins, and psychic_ui::FloatSkins.

◆ defaultTheme()

virtual const Theme & psychic_ui::SkinSet::defaultTheme ( ) const
nodiscardpure virtual

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

Implemented in psychic_ui::DeskSkins, psychic_ui::FloatSkins, and psychic_ui::PivotalSkins.

◆ fallback()

virtual std::unique_ptr< SkinSet > psychic_ui::SkinSet::fallback ( ) const
inlinenodiscardvirtual

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

Reimplemented in psychic_ui::DeskSkins, and psychic_ui::FloatSkins.

◆ hasTheme()

bool psychic_ui::SkinSet::hasTheme ( const Theme & theme) const
inlinenodiscard

Whether the theme is one of the set's (themes()), by name

◆ lightTheme()

virtual const Theme & psychic_ui::SkinSet::lightTheme ( ) const
inlinenodiscardvirtual

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

Reimplemented in psychic_ui::DeskSkins, psychic_ui::FloatSkins, and psychic_ui::PivotalSkins.

◆ theme()

const Theme & psychic_ui::SkinSet::theme ( ColorScheme scheme) const
inlinenodiscard

The set's theme for a system color scheme: light, dark, or the default when it is unknown

◆ themes()

virtual std::vector< const Theme * > psychic_ui::SkinSet::themes ( ) const
inlinenodiscardvirtual

The themes made for the set, as a picker lists them: its light, dark and default themes unless it says more

Reimplemented in psychic_ui::PivotalSkins.


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