HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields | Friends
tt::theme Class Reference

Public Member Functions

 theme (theme const &) noexcept=delete
 
 theme (theme &&) noexcept=delete
 
themeoperator= (theme const &) noexcept=delete
 
themeoperator= (theme &&) noexcept=delete
 
 theme (URL const &url)
 Open and parse a theme file.
 
tt::color color (theme_color theme_color, ssize_t nesting_level=0) const noexcept
 
tt::text_style const & text_style (theme_text_style theme_color) const noexcept
 

Static Public Member Functions

static void set_global (theme *theme) noexcept
 
static themeglobal () noexcept
 
static tt::color global (theme_color color, ssize_t nesting_level=0) noexcept
 
static tt::text_style const & global (theme_text_style text_style) noexcept
 

Data Fields

operating_system operating_system = operating_system::windows
 
float toolbar_height = (operating_system == operating_system::windows) ? 30.0f : 20.0f
 
float toolbar_decoration_button_width = (operating_system == operating_system::windows) ? 30.0f : 20.0f
 The width of a close, minimize, maximize, system menu button.
 
float margin = 6.0f
 Distance between widgets and between widgets and the border of the container.
 
float border_width = 1.0f
 The line-width of a border.
 
float rounding_radius = 5.0f
 The rounding radius of boxes with rounded corners.
 
float size = 15.0f
 The size of small square widgets.
 
float large_size = 25.0f
 The size of large widgets.
 
float icon_size = 10.0f
 Size of icons inside a widget.
 
float large_icon_size = 30.0f
 Size of icons representing the length of am average word of a label's text.
 
float label_icon_size = 20.0f
 Size of icons being inline with a label's text.
 
std::string name
 
theme_mode mode
 

Friends

std::string to_string (theme const &rhs) noexcept
 
std::ostreamoperator<< (std::ostream &lhs, theme const &rhs)
 

Constructor & Destructor Documentation

◆ theme()

tt::theme::theme ( URL const & url)

Open and parse a theme file.

Field Documentation

◆ border_width

float tt::theme::border_width = 1.0f

The line-width of a border.

◆ icon_size

float tt::theme::icon_size = 10.0f

Size of icons inside a widget.

◆ label_icon_size

float tt::theme::label_icon_size = 20.0f

Size of icons being inline with a label's text.

◆ large_icon_size

float tt::theme::large_icon_size = 30.0f

Size of icons representing the length of am average word of a label's text.

◆ large_size

float tt::theme::large_size = 25.0f

The size of large widgets.

Such as the minimum scroll bar size.

◆ margin

float tt::theme::margin = 6.0f

Distance between widgets and between widgets and the border of the container.

◆ rounding_radius

float tt::theme::rounding_radius = 5.0f

The rounding radius of boxes with rounded corners.

◆ size

float tt::theme::size = 15.0f

The size of small square widgets.

◆ toolbar_decoration_button_width

float tt::theme::toolbar_decoration_button_width = (operating_system == operating_system::windows) ? 30.0f : 20.0f

The width of a close, minimize, maximize, system menu button.


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