diff options
| author | 2026-11-07 03:20:46 +0000 | |
|---|---|---|
| committer | 2026-11-07 04:21:37 +0000 | |
| commit | 556fea05affe6fe8866557d42b6c1ef6559d7880 (patch) | |
| tree | f8de5473f16e65fcbe10f280b4cf54ee7e32b5b7 /src/config.h | |
| download | lab-01-05-556fea05affe6fe8866557d42b6c1ef6559d7880.tar.gz | |
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..fa04908 --- /dev/null +++ b/src/config.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | #ifndef INCLUDED_CONFIG_H | ||
| 2 | #define INCLUDED_CONFIG_H | ||
| 3 | |||
| 4 | #define INITIAL_SCREEN_WIDTH 500 | ||
| 5 | #define INITIAL_SCREEN_HEIGHT 500 | ||
| 6 | #define WINDOW_TITLE "Graph visualization" | ||
| 7 | |||
| 8 | // // TODO(cmmm): compute | ||
| 9 | #define BUTTON_HEIGHT 30 | ||
| 10 | #define BUTTON_WIDTH 300 | ||
| 11 | #define PADDING 10 | ||
| 12 | |||
| 13 | #define VERTEX_RADIUS 20 | ||
| 14 | #define BASE_LINE_THICKNESS 6 | ||
| 15 | |||
| 16 | #define FONT_SIZE 20 | ||
| 17 | #define TEXT_SPACING 1 | ||
| 18 | |||
| 19 | #define INITIAL_VERTEX_COUNT 8 | ||
| 20 | |||
| 21 | #define MAX_VERTEX_COUNT ((size_t) 40) | ||
| 22 | #define MAX_WEIGHT ((double) 10) | ||
| 23 | #define MAX_CAPACITY ((double) MAX_WEIGHT) | ||
| 24 | |||
| 25 | #define DIST_N 10 | ||
| 26 | #define DIST_B 20 | ||
| 27 | #define DIST_R 1 | ||
| 28 | #define DIST_C 10 | ||
| 29 | |||
| 30 | #define MODEL_L ((double) 1.0) | ||
| 31 | #define MODEL_C_REP ((double) 1.0) | ||
| 32 | #define MODEL_C_SPRING ((double) 10.0) | ||
| 33 | #define MODEL_COOLING_FACTOR ((double) 0.9) | ||
| 34 | |||
| 35 | #define DARK_THEME | ||
| 36 | #if defined (LIGHT_THEME) | ||
| 37 | #define BACKGROUND_COLOR WHITE | ||
| 38 | #define VERTEX_COLOR RED | ||
| 39 | #define VERTEX_OUTLINE_COLOR MAROON | ||
| 40 | #define VERTEX_OUTLINE_HIGHLIGHTED_COLOR BLACK | ||
| 41 | #define VERTEX_TEXT_COLOR WHITE | ||
| 42 | #define EDGE_TEXT_COLOR BLACK | ||
| 43 | #define BUTTON_COLOR LIGHTGRAY | ||
| 44 | #define BUTTON_OUTLINE_COLOR GRAY | ||
| 45 | #define BUTTON_HOVER_COLOR MAROON | ||
| 46 | #define BUTTON_HOVER_OUTLINE_COLOR RED | ||
| 47 | #define BUTTON_TEXT_COLOR BLACK | ||
| 48 | #define BUTTON_TEXT_HOVER_COLOR WHITE | ||
| 49 | #elif defined (DARK_THEME) | ||
| 50 | #define BACKGROUND_COLOR BLACK | ||
| 51 | // #define EDGE_MIN_COLOR WHITE | ||
| 52 | // #define EDGE_MAX_COLOR WHITE | ||
| 53 | #define EDGE_TEXT_COLOR WHITE | ||
| 54 | #define VERTEX_COLOR RED | ||
| 55 | #define VERTEX_OUTLINE_COLOR MAROON | ||
| 56 | #define VERTEX_OUTLINE_HIGHLIGHTED_COLOR WHITE | ||
| 57 | #define VERTEX_TEXT_COLOR WHITE | ||
| 58 | #define BUTTON_COLOR DARKGRAY | ||
| 59 | #define BUTTON_OUTLINE_COLOR GRAY | ||
| 60 | #define BUTTON_HOVER_COLOR MAROON | ||
| 61 | #define BUTTON_HOVER_OUTLINE_COLOR RED | ||
| 62 | #define BUTTON_TEXT_COLOR LIGHTGRAY | ||
| 63 | #define BUTTON_TEXT_HOVER_COLOR LIGHTGRAY | ||
| 64 | #endif | ||
| 65 | |||
| 66 | #endif | ||
