cleanup: remove enum typedef in color.h

Just call the enum that way and be done with it.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-14 23:00:05 +02:00 committed by bstoeger
parent 37be879e17
commit eac11683a9

View file

@ -81,7 +81,7 @@ static inline QColor makeColor(double r, double g, double b, double a = 1.0)
#define VELOCITY_COLORS_START_IDX VELO_STABLE
#define VELOCITY_COLORS 5
typedef enum {
enum color_index_t {
/* SAC colors. Order is important, the SAC_COLORS_START_IDX define above. */
SAC_1,
SAC_2,
@ -145,7 +145,7 @@ typedef enum {
CALC_CEILING_DEEP,
TISSUE_PERCENTAGE,
DURATION_LINE
} color_index_t;
};
QColor getColor(const color_index_t i, bool isGrayscale = false);
QColor getSacColor(int sac, int diveSac);