clang-tidy: modernize-macro-to-enum
[geeqie.git] / src / pan-view / pan-calendar.cc
index 54e70d0..668d91f 100644 (file)
 #include "pixbuf-util.h"
 
 #define PAN_CAL_POPUP_COLOR 220, 220, 220
-#define PAN_CAL_POPUP_ALPHA 255
-#define PAN_CAL_POPUP_BORDER 1
+enum {
+       PAN_CAL_POPUP_ALPHA = 255,
+       PAN_CAL_POPUP_BORDER = 1
+};
 #define PAN_CAL_POPUP_BORDER_COLOR 0, 0, 0
 #define PAN_CAL_POPUP_TEXT_COLOR 0, 0, 0
 
-#define PAN_CAL_DAY_WIDTH 100
-#define PAN_CAL_DAY_HEIGHT 80
+enum {
+       PAN_CAL_DAY_WIDTH = 100,
+       PAN_CAL_DAY_HEIGHT = 80
+};
 
 #define PAN_CAL_DAY_COLOR 255, 255, 255
-#define PAN_CAL_DAY_ALPHA 220
-#define PAN_CAL_DAY_BORDER 2
+enum {
+       PAN_CAL_DAY_ALPHA = 220,
+       PAN_CAL_DAY_BORDER = 2
+};
 #define PAN_CAL_DAY_BORDER_COLOR 0, 0, 0
 #define PAN_CAL_DAY_TEXT_COLOR 0, 0, 0
 
 #define PAN_CAL_MONTH_COLOR 255, 255, 255
-#define PAN_CAL_MONTH_ALPHA 200
-#define PAN_CAL_MONTH_BORDER 4
+enum {
+       PAN_CAL_MONTH_ALPHA = 200,
+       PAN_CAL_MONTH_BORDER = 4
+};
 #define PAN_CAL_MONTH_BORDER_COLOR 0, 0, 0
 #define PAN_CAL_MONTH_TEXT_COLOR 0, 0, 0
 
-#define PAN_CAL_DOT_SIZE 3
-#define PAN_CAL_DOT_GAP 2
+enum {
+       PAN_CAL_DOT_SIZE = 3,
+       PAN_CAL_DOT_GAP = 2
+};
 #define PAN_CAL_DOT_COLOR 128, 128, 128
-#define PAN_CAL_DOT_ALPHA 128
+enum {
+       PAN_CAL_DOT_ALPHA = 128
+};
 
 #define PAN_CAL_DAY_OF_WEEK_COLOR 128, 128, 128