Freeciv21
Develop your civilization from humble roots to a global empire
colors_g.h File Reference
#include "colors_common.h"
+ Include dependency graph for colors_g.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int color_brightness_score (const QColor &color)
 Return a number indicating the perceptual brightness of this color relative to others (larger is brighter). More...
 
QColor get_diag_color (color_std color)
 Gets a diagram color. More...
 

Function Documentation

◆ color_brightness_score()

int color_brightness_score ( const QColor &  color)

Return a number indicating the perceptual brightness of this color relative to others (larger is brighter).

Definition at line 162 of file colors_common.cpp.

Referenced by color_best_contrast().

◆ get_diag_color()

QColor get_diag_color ( color_std  c)

Gets a diagram color.

They come from the tileset, but the theme can override them.

Definition at line 255 of file themes.cpp.

Referenced by draw_reqtree(), edge_color(), and get_edge_type().