默认暗色模式,添加值显示开关

This commit is contained in:
2025-12-16 19:18:21 +08:00
parent a1f7f337c2
commit 5b319cb76d
14 changed files with 372 additions and 75 deletions

View File

@@ -14,6 +14,7 @@
#include <QPaintEvent>
#include <concepts>
#include <qsize.h>
#include <qpoint.h>
#include <qvector.h>
namespace creeper {
@@ -39,12 +40,13 @@ class VectorPlot : public QCustomPlot {
void ensure_arrows();
void apply_color_scheme();
QSize matrix_size_{ 3, 4 };
QVector<PointData> data_points_;
bool initialized_ = false;
QSize matrix_size_{ 3, 4 };
QVector<PointData> data_points_;
bool initialized_ = false;
std::optional<ColorScheme> scheme_;
QColor arrow_color_{ 16, 54, 128 }; // 深蓝色
QCPItemLine* primary_arrow_ = nullptr;
QColor arrow_color_{ 16, 54, 128 }; // 深蓝色
QPointF arrow_dir_{ 0.0, 1.0 };
QCPItemLine* primary_arrow_ = nullptr;
void ensure_primary_arrow();
};