Custom themes

Added toggles for the "Custom Themes" configuration. Colors, icons, sounds, and turn signal animations are all individually toggleable.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 142e5e0975
commit 7e0e9f2643
67 changed files with 281 additions and 28 deletions

View File

@@ -115,6 +115,7 @@ private:
// FrogPilot widgets
void drawLeadInfo(QPainter &p);
void drawStatusBar(QPainter &p);
void drawTurnSignals(QPainter &p);
void initializeFrogPilotWidgets();
void updateFrogPilotWidgets(QPainter &p);
@@ -133,6 +134,8 @@ private:
bool conditionalExperimental;
bool experimentalMode;
bool leadInfo;
bool turnSignalLeft;
bool turnSignalRight;
bool useSI;
double maxAcceleration;
float laneWidthLeft;
@@ -141,10 +144,18 @@ private:
int conditionalSpeed;
int conditionalSpeedLead;
int conditionalStatus;
int customColors;
int customSignals;
int desiredFollow;
int obstacleDistance;
int obstacleDistanceStock;
int stoppedEquivalence;
int totalFrames = 8;
QTimer *animationTimer;
size_t animationFrameIndex;
std::unordered_map<int, std::pair<QString, std::pair<QColor, std::map<double, QBrush>>>> themeConfiguration;
std::vector<QPixmap> signalImgVector;
protected:
void paintGL() override;