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-02-27 16:34:47 -07:00
parent 50cc95341d
commit 786e52880d
62 changed files with 276 additions and 25 deletions

View File

@@ -110,6 +110,7 @@ private:
void updateFrogPilotWidgets(QPainter &p);
void drawStatusBar(QPainter &p);
void drawTurnSignals(QPainter &p);
// FrogPilot variables
Params paramsMemory{"/dev/shm/params"};
@@ -124,11 +125,23 @@ private:
bool blindSpotRight;
bool conditionalExperimental;
bool experimentalMode;
bool turnSignalLeft;
bool turnSignalRight;
int cameraView;
int conditionalSpeed;
int conditionalSpeedLead;
int conditionalStatus;
int customColors;
int customSignals;
int totalFrames = 8;
size_t animationFrameIndex;
std::unordered_map<int, std::tuple<QString, int, QColor, std::map<double, QBrush>>> themeConfiguration;
std::vector<QPixmap> signalImgVector;
QTimer *animationTimer;
protected:
void paintGL() override;