Chatterino
Classes | Public Member Functions | Public Attributes | Friends | List of all members
chatterino::Theme Class Referencefinal

#include <Theme.hpp>

Inheritance diagram for chatterino::Theme:
[legend]
Collaboration diagram for chatterino::Theme:
[legend]

Classes

struct  TabColors
 

Public Member Functions

 Theme ()
 
bool isLightTheme () const
 
void normalizeColor (QColor &color)
 
void update ()
 
QColor blendColors (const QColor &color1, const QColor &color2, qreal ratio)
 
- Public Member Functions inherited from chatterino::Singleton
virtual ~Singleton ()=default
 
virtual void initialize (Settings &settings, Paths &paths)
 
virtual void save ()
 

Public Attributes

QColor accent {"#00aeef"}
 
struct {
   QColor   background
 
   QColor   text
 
   QColor   borderUnfocused
 
   QColor   borderFocused
 
window
 WINDOW. More...
 
struct {
   TabColors   regular
 
   TabColors   newMessage
 
   TabColors   highlighted
 
   TabColors   selected
 
   QColor   border
 
   QColor   dividerLine
 
tabs
 TABS. More...
 
struct {
   struct {
      QColor   regular
 
      QColor   caret
 
      QColor   link
 
      QColor   system
 
      QColor   chatPlaceholder
 
   }   textColors
 
   struct {
      QColor   regular
 
      QColor   alternate
 
   }   backgrounds
 
   QColor   disabled
 
   QColor   selection
 
   QColor   highlightAnimationStart
 
   QColor   highlightAnimationEnd
 
messages
 MESSAGES. More...
 
struct {
   QColor   background
 
   QColor   thumb
 
   QColor   thumbSelected
 
   struct {
      QColor   highlight
 
      QColor   subscription
 
   }   highlights
 
scrollbars
 SCROLLBAR. More...
 
struct {
   QColor   text
 
   QColor   background
 
tooltip
 TOOLTIP. More...
 
struct {
   QColor   messageSeperator
 
   QColor   background
 
   QColor   dropPreview
 
   QColor   dropPreviewBorder
 
   QColor   dropTargetRect
 
   QColor   dropTargetRectBorder
 
   QColor   resizeHandle
 
   QColor   resizeHandleBackground
 
   struct {
      QColor   border
 
      QColor   focusedBorder
 
      QColor   background
 
      QColor   focusedBackground
 
      QColor   text
 
      QColor   focusedText
 
   }   header
 
   struct {
      QColor   border
 
      QColor   background
 
      QColor   selection
 
      QColor   focusedLine
 
      QColor   text
 
      QString   styleSheet
 
   }   input
 
splits
 SPLITS. More...
 
struct {
   QPixmap   copy
 
   QPixmap   pin
 
buttons
 
pajlada::Signals::NoArgSignal updated
 
QStringSetting themeName {"/appearance/theme/name", "Dark"}
 
DoubleSetting themeHue {"/appearance/theme/hue", 0.0}
 

Friends

class WindowManager
 

Constructor & Destructor Documentation

◆ Theme()

chatterino::Theme::Theme ( )
Here is the call graph for this function:

Member Function Documentation

◆ blendColors()

QColor chatterino::Theme::blendColors ( const QColor &  color1,
const QColor &  color2,
qreal  ratio 
)

◆ isLightTheme()

bool chatterino::Theme::isLightTheme ( ) const
Here is the caller graph for this function:

◆ normalizeColor()

void chatterino::Theme::normalizeColor ( QColor &  color)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void chatterino::Theme::update ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ WindowManager

friend class WindowManager
friend

Member Data Documentation

◆ accent

QColor chatterino::Theme::accent {"#00aeef"}

◆ alternate

QColor chatterino::Theme::alternate

◆ background

QColor chatterino::Theme::background

◆ backgrounds

struct { ... } chatterino::Theme::backgrounds

◆ border

QColor chatterino::Theme::border

◆ borderFocused

QColor chatterino::Theme::borderFocused

◆ borderUnfocused

QColor chatterino::Theme::borderUnfocused

◆ buttons

struct { ... } chatterino::Theme::buttons

◆ caret

QColor chatterino::Theme::caret

◆ chatPlaceholder

QColor chatterino::Theme::chatPlaceholder

◆ copy

QPixmap chatterino::Theme::copy

◆ disabled

QColor chatterino::Theme::disabled

◆ dividerLine

QColor chatterino::Theme::dividerLine

◆ dropPreview

QColor chatterino::Theme::dropPreview

◆ dropPreviewBorder

QColor chatterino::Theme::dropPreviewBorder

◆ dropTargetRect

QColor chatterino::Theme::dropTargetRect

◆ dropTargetRectBorder

QColor chatterino::Theme::dropTargetRectBorder

◆ focusedBackground

QColor chatterino::Theme::focusedBackground

◆ focusedBorder

QColor chatterino::Theme::focusedBorder

◆ focusedLine

QColor chatterino::Theme::focusedLine

◆ focusedText

QColor chatterino::Theme::focusedText

◆ header

struct { ... } chatterino::Theme::header

◆ highlight

QColor chatterino::Theme::highlight

◆ highlightAnimationEnd

QColor chatterino::Theme::highlightAnimationEnd

◆ highlightAnimationStart

QColor chatterino::Theme::highlightAnimationStart

◆ highlighted

TabColors chatterino::Theme::highlighted

◆ highlights

struct { ... } chatterino::Theme::highlights

◆ input

struct { ... } chatterino::Theme::input

◆ link

QColor chatterino::Theme::link

◆ messages

struct { ... } chatterino::Theme::messages

MESSAGES.

◆ messageSeperator

QColor chatterino::Theme::messageSeperator

◆ newMessage

TabColors chatterino::Theme::newMessage

◆ pin

QPixmap chatterino::Theme::pin

◆ regular [1/2]

TabColors chatterino::Theme::regular

◆ regular [2/2]

QColor chatterino::Theme::regular

◆ resizeHandle

QColor chatterino::Theme::resizeHandle

◆ resizeHandleBackground

QColor chatterino::Theme::resizeHandleBackground

◆ scrollbars

struct { ... } chatterino::Theme::scrollbars

SCROLLBAR.

◆ selected

TabColors chatterino::Theme::selected

◆ selection

QColor chatterino::Theme::selection

◆ splits

struct { ... } chatterino::Theme::splits

SPLITS.

◆ styleSheet

QString chatterino::Theme::styleSheet

◆ subscription

QColor chatterino::Theme::subscription

◆ system

QColor chatterino::Theme::system

◆ tabs

struct { ... } chatterino::Theme::tabs

TABS.

◆ text

QColor chatterino::Theme::text

◆ textColors

struct { ... } chatterino::Theme::textColors

◆ themeHue

DoubleSetting chatterino::Theme::themeHue {"/appearance/theme/hue", 0.0}

◆ themeName

QStringSetting chatterino::Theme::themeName {"/appearance/theme/name", "Dark"}

◆ thumb

QColor chatterino::Theme::thumb

◆ thumbSelected

QColor chatterino::Theme::thumbSelected

◆ tooltip

struct { ... } chatterino::Theme::tooltip

TOOLTIP.

◆ updated

pajlada::Signals::NoArgSignal chatterino::Theme::updated

◆ window

struct { ... } chatterino::Theme::window

WINDOW.


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