Skip to content

Commit

Permalink
changed colors and language for Dice app
Browse files Browse the repository at this point in the history
  • Loading branch information
SadAlexa committed Apr 21, 2024
1 parent 07529e3 commit 4da590f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/displayapp/screens/Dice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Dice::Dice(Controllers::MotionController& motionController,
LV_LABEL_LONG_EXPAND,
0,
LV_LABEL_ALIGN_CENTER,
"count",
"Dadi:",
lv_scr_act(),
LV_ALIGN_IN_TOP_LEFT,
0,
Expand All @@ -65,7 +65,7 @@ Dice::Dice(Controllers::MotionController& motionController,
LV_LABEL_LONG_EXPAND,
0,
LV_LABEL_ALIGN_CENTER,
"sides",
"Lati:",
nCounterLabel,
LV_ALIGN_OUT_RIGHT_MID,
20,
Expand Down
3 changes: 2 additions & 1 deletion src/displayapp/screens/Dice.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "displayapp/widgets/Counter.h"
#include "displayapp/Controllers.h"
#include "Symbols.h"
#include "displayapp/InfiniTimeTheme.h"

#include <array>
#include <random>
Expand All @@ -31,7 +32,7 @@ namespace Pinetime {

std::mt19937 gen;

std::array<lv_color_t, 3> resultColors = {LV_COLOR_YELLOW, LV_COLOR_MAGENTA, LV_COLOR_AQUA};
std::array<lv_color_t, 3> resultColors = {Colors::yellow, Colors::red, Colors::teal};
uint8_t currentColorIndex;
void NextColor();

Expand Down

0 comments on commit 4da590f

Please sign in to comment.