|
1 | 1 | #include <QColor> |
2 | 2 |
|
3 | | -static const char *LABEL_FONT = "Roboto Mono"; |
4 | | -static int LABEL_TITLE_SIZE = 22; |
5 | | -static int LABEL_KV_SIZE = 12; |
| 3 | +static const char* LABEL_FONT = "Roboto Mono"; |
| 4 | +static int LABEL_TITLE_SIZE = 22; |
| 5 | +static int LABEL_KV_SIZE = 12; |
6 | 6 |
|
7 | | -static const int LABEL_LEFT_SIZE = 0;// space + #.# MvB -- // |
8 | | -static const int LABEL_RIGHT_SIZE = 0; |
9 | | -static const int GRAPH_PADDING_LEFT = 100+LABEL_LEFT_SIZE; |
10 | | -static const int GRAPH_PADDING_RIGHT = 50 +LABEL_RIGHT_SIZE; |
11 | | -static const int GRAPH_PADDING_TOP = 50; |
12 | | -static const int GRAPH_PADDING_TOP_LABEL = 0; |
13 | | -static const int GRAPH_PADDING_BOTTOM = 50; |
| 7 | +static const int LABEL_LEFT_SIZE = 60; // space + #.# MvB -- // |
| 8 | +static const int LABEL_RIGHT_SIZE = 0; |
| 9 | +static const int GRAPH_PADDING_LEFT = 10 + LABEL_LEFT_SIZE; |
| 10 | +static const int GRAPH_PADDING_RIGHT = 10 + LABEL_RIGHT_SIZE; |
| 11 | +static const int GRAPH_PADDING_TOP = 10; |
| 12 | +static const int GRAPH_PADDING_TOP_LABEL = 0; |
| 13 | +static const int GRAPH_PADDING_BOTTOM = 0; |
14 | 14 |
|
15 | | -static const int ITEM_TX_COUNT_PADDING_LEFT = 5; |
16 | | -static const int ITEM_TX_COUNT_PADDING_RIGHT = 5; |
17 | | -static const int AMOUNT_OF_H_LINES = 9; |
18 | | -static const double GRAPH_PATH_SCALAR = 1.0; |
| 15 | +static const int ITEM_TX_COUNT_PADDING_LEFT = 5; |
| 16 | +static const int ITEM_TX_COUNT_PADDING_RIGHT = 5; |
| 17 | +static const int AMOUNT_OF_H_LINES = 9; |
| 18 | +static const double GRAPH_PATH_SCALAR = 1.0; |
19 | 19 |
|
20 | | -const qreal C_X = 10; |
21 | | -const qreal C_W = 20; |
22 | | -const qreal C_H = 20; |
23 | | -const qreal C_MARGIN = 2; |
| 20 | +const qreal C_X = 10; |
| 21 | +const qreal C_W = 20; |
| 22 | +const qreal C_H = 20; |
| 23 | +const qreal C_MARGIN = 2; |
24 | 24 |
|
25 | | -bool const ADD_TEXT = true; |
26 | | -bool const ADD_FEE_RANGES = true; |
27 | | -bool const ADD_FEE_RECTS = true; |
28 | | -bool const MEMPOOL_GRAPH_LOGGING = true; |
29 | | -bool const ADD_TOTAL_TEXT = true; |
| 25 | +bool const ADD_TEXT = true; |
| 26 | +bool const ADD_FEE_RANGES = true; |
| 27 | +bool const ADD_FEE_RECTS = true; |
| 28 | +bool const MEMPOOL_GRAPH_LOGGING = true; |
| 29 | +bool const ADD_TOTAL_TEXT = true; |
30 | 30 |
|
31 | 31 | const static std::vector<QColor> colors = { |
32 | 32 | // Hue ranges from 120 (Green) down to 0 (Red) |
@@ -54,8 +54,8 @@ const static std::vector<QColor> colors = { |
54 | 54 | QColor::fromHsv(15, 255, 255), |
55 | 55 | QColor::fromHsv(10, 255, 255), |
56 | 56 | QColor::fromHsv(5, 255, 255), |
57 | | - QColor::fromHsv(0, 255, 255), // Red |
58 | | - QColor::fromHsv(0, 255, 200), // Darker Red |
59 | | - QColor::fromHsv(0, 255, 150), // Even Darker Red |
60 | | - QColor(70, 70, 70, 255) // Final dark gray/black for extreme values |
| 57 | + QColor::fromHsv(0, 255, 255), // Red |
| 58 | + QColor::fromHsv(0, 255, 200), // Darker Red |
| 59 | + QColor::fromHsv(0, 255, 150), // Even Darker Red |
| 60 | + QColor(70, 70, 70, 255) // Final dark gray/black for extreme values |
61 | 61 | }; |
0 commit comments