Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
HomeTabButtonColor Namespace Reference

Classes

struct  Entry

Enumerations

enum  Source { FromThemeColors , FromBackground }
 Where to get the colors for the home tab buttons from. More...

Functions

QList< Entry > all ()
Source intToSource (int value)

Enumeration Type Documentation

◆ Source

Where to get the colors for the home tab buttons from.

Enumerator
FromThemeColors 

Use the theme's identity accent colors.

FromBackground 

Extract colour from the background image.

Function Documentation

◆ all()

QList< Entry > HomeTabButtonColor::all ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ intToSource()

Source HomeTabButtonColor::intToSource ( int value)
inline

Safely converts an int into the corresponding Source.

Parameters
valueThe int value
Returns
The Source. Returns Source::FromThemeColors if the value is not within range
Here is the call graph for this function:
Here is the caller graph for this function: