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

#include <DeskSkins.hpp>

Inheritance diagram for psychic_ui::DeskSkins:
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

P2 Desk: Pivotal as a dense desktop tool that is friendly with touch screens, with Desk Dark and Desk Light (themes/desk.hpp). Flush panes on hairlines, 4 px corners, 26 px rows, right-aligned inspector labels, value-field sliders, square swatches. Its sizes follow the input mode (the style manager's density): the board's desk sizes for a pointer, 40 px rows and controls by touch, and hit slop taking every target to 44 px.

Like Float, it falls back on PivotalSkins for every skin and rule, and only overrides the rules whose look differs (the slider's value field too: rules over RangeSkinBase's parts).

window.skinSet<DeskSkins>();

Member Function Documentation

◆ darkTheme()

const Theme & psychic_ui::DeskSkins::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::DeskSkins::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::DeskSkins::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::DeskSkins::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::DeskSkins::load ( StyleManager * manager)
overridevirtual

◆ name()

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

Implements psychic_ui::SkinSet.

◆ registerSkins()

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

Implements psychic_ui::SkinSet.


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