Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ThemeColorPair Struct Reference

Public Member Functions

QColor forMode (bool isDarkMode) const
void setForMode (bool isDarkMode, const QColor &color)
bool isValid () const
bool operator== (const ThemeColorPair &other) const
bool operator!= (const ThemeColorPair &other) const

Static Public Member Functions

static bool sameColor (const QColor &a, const QColor &b)

Public Attributes

QColor light
QColor dark

Member Function Documentation

◆ forMode()

QColor ThemeColorPair::forMode ( bool isDarkMode) const
inline

The color for a mode: dark when isDarkMode, else light.

◆ isValid()

bool ThemeColorPair::isValid ( ) const
inline

True when both the light and the dark side are valid colors.

◆ sameColor()

bool ThemeColorPair::sameColor ( const QColor & a,
const QColor & b )
inlinestatic

True when both colors are valid, or both are invalid, and valid ones have the same RGBA.

◆ setForMode()

void ThemeColorPair::setForMode ( bool isDarkMode,
const QColor & color )
inline

Sets the color for a mode: dark when isDarkMode, else light.


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