diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-08-28 19:02:11 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-08-28 19:02:11 (GMT) |
| commit | 31bc47d1cb397f5de0275d0d95aac7ca29cc7392 (patch) | |
| tree | 1fa8900ad36efc720f4c1cb741afbe545d930c94 /src/displayapp/Colors.h | |
| parent | ef9f809e14155ff304b8f047aa3beae3dabb78e8 (diff) | |
Settings : use enums instead of ints to store colors. Group all PTS settings into a struct.
PTS/SettingsPTS : Convert to/from LVGL color and Settings::Color, add functions to reduce code duplication.
Adapt SettingPineTimeStyle with the last Screen Interface
Diffstat (limited to 'src/displayapp/Colors.h')
| -rw-r--r-- | src/displayapp/Colors.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/displayapp/Colors.h b/src/displayapp/Colors.h new file mode 100644 index 0000000..9db7dd2 --- /dev/null +++ b/src/displayapp/Colors.h @@ -0,0 +1,10 @@ +#pragma once + +#include <lvgl/src/lv_misc/lv_color.h> +#include <components/settings/Settings.h> + +namespace Pinetime { + namespace Applications { + lv_color_t Convert(Controllers::Settings::Colors color); + } +}
\ No newline at end of file |
