midday-commander
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Theme Class Reference

Represents a set of colors used by Interface. More...

#include <Theme.h>

Collaboration diagram for Theme:
[legend]

Public Member Functions

 Theme ()
 Constructs a Theme using default colors of the terminal.
 
 Theme (NCURSES_COLOR_T primary, NCURSES_COLOR_T secondary, NCURSES_COLOR_T background, NCURSES_COLOR_T accent1, NCURSES_COLOR_T accent2, NCURSES_COLOR_T accent3)
 Constructs a Theme using provided colors.
 

Public Attributes

NCURSES_COLOR_T primary
 Background of cursored-on Entry.
 
NCURSES_COLOR_T secondary
 Background of selected Entries .
 
NCURSES_COLOR_T background
 Default background.
 
NCURSES_COLOR_T accent1
 File foreground.
 
NCURSES_COLOR_T accent2
 Folder foreground.
 
NCURSES_COLOR_T accent3
 Symlink foreground.
 

Static Public Attributes

static Theme defaultTheme = Theme{240, 235, -1, 7, 3, 5}
 

Detailed Description

Represents a set of colors used by Interface.

Constructor & Destructor Documentation

◆ Theme() [1/2]

Theme::Theme ( )

Constructs a Theme using default colors of the terminal.

Warning
Only for testing purposes, corsor and selection probably won't be visible

◆ Theme() [2/2]

Theme::Theme ( NCURSES_COLOR_T  primary,
NCURSES_COLOR_T  secondary,
NCURSES_COLOR_T  background,
NCURSES_COLOR_T  accent1,
NCURSES_COLOR_T  accent2,
NCURSES_COLOR_T  accent3 
)

Constructs a Theme using provided colors.

Note
All colors are represented as ANSI color codes
Parameters
primaryBackground of cursored-on Entry
secondaryBackground of selected Entries
backgroundDefault background
accent1File foreground
accent2Folder foreground
accent3Symlink foreground

Member Data Documentation

◆ accent1

NCURSES_COLOR_T Theme::accent1

File foreground.

Note
The color is represented as ANSI color code

◆ accent2

NCURSES_COLOR_T Theme::accent2

Folder foreground.

Note
The color is represented as ANSI color code

◆ accent3

NCURSES_COLOR_T Theme::accent3

Symlink foreground.

Note
The color is represented as ANSI color code

◆ background

NCURSES_COLOR_T Theme::background

Default background.

Note
The color is represented as ANSI color code

◆ defaultTheme

Theme Theme::defaultTheme = Theme{240, 235, -1, 7, 3, 5}
static

◆ primary

NCURSES_COLOR_T Theme::primary

Background of cursored-on Entry.

Note
The color is represented as ANSI color code

◆ secondary

NCURSES_COLOR_T Theme::secondary

Background of selected Entries .

Note
The color is represented as ANSI color code

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