Skip to content

Commit 4c20cf1

Browse files
committed
more stats_graph styling
1 parent 6f498ee commit 4c20cf1

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

src/qt/mempoolconstants.h

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
#include <QColor>
22

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;
66

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;
1414

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;
1919

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;
2424

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;
3030

3131
const static std::vector<QColor> colors = {
3232
// Hue ranges from 120 (Green) down to 0 (Red)
@@ -54,8 +54,8 @@ const static std::vector<QColor> colors = {
5454
QColor::fromHsv(15, 255, 255),
5555
QColor::fromHsv(10, 255, 255),
5656
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
6161
};

0 commit comments

Comments
 (0)