Commit Graph

64 Commits

Author SHA1 Message Date
Maciej Janicki
bb59805a8e [EGD-4822] Add color test window to settings app
Add new window to allow convenient display and globally
change used color intensities  for design and testing purposes.
Changes were introduced to Renderer as well as GUI service
to allow global change of used color scheme.
When using list, screen is deep refreshed each
time the color is changed.
Known issues:
Item focus borders (top,bottom) with changed black intensity
may not render properly, however it doesn't obscure the
target functionality.
2021-02-04 13:34:04 +01:00
Maciej Janicki
e6fdf0e22c [EGD-5333] Change renderer to follow command design pattern
Changes draw command implementation to properly follow
command design pattern. All drawing commands have been
moved to separate inheriting draw commands from renderer.

Other changes:
- New draw methods overloads have been added to pixel renderer.
 Now pixel rendering methods are in one class.
- Simplified draw commands naming.
- Changed variable naming in draw commands to be more verbose.
- Changed {x,y} pairs to Points where possible.
2021-02-03 16:24:48 +01:00
Piotr Tański
3f29c30bed [EGD-4968] Change GUI service to optimize flow and memory management
Gui and Eink services refactor.
Displaying frames performance optimization.
Critical resources management.
2021-01-08 16:36:12 +01:00
Adam
64db7d8327 EDG-3585 Small fixup for refresh & cleanup in buildDrawLists (#916)
* EGD-3585 Minor refresh fixup&  Normalised buildDrawList everywhere
2020-10-30 10:13:47 +01:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Piotr Tanski
fdb2cfdb5a [EGD-3597] Shape rendering refactored. (#827) 2020-10-14 12:24:41 +02:00
Piotr Tanski
f5aec0444a [EGD-3838] Introduced a meditation progress bar with simple implementation of meditation application. (#783) 2020-10-09 14:14:40 +02:00
Piotr Tanski
2090deddb0 [EGD-3661] Drawing circles and arcs functionality added into the Renderer. (#755)
- Major code cleanup in lines drawing functionality.
2020-10-01 09:08:14 +02:00
Michał Kamoń
f2c2c2eb9a fallback font added to RawFont, functionality initialized by FontManager, UITestWindow update to include functionality visual confirmation. An unused argument in Renderer::drawChar removed. Removed unnecessary usage of unique_ptrs that was forcing a lot of glyph copying (#686)
test-gui-TextLine::TextLine - non fitting text fix
2020-09-18 07:37:25 +02:00
Tomasz Sobkowiak
45773ddfdf [EDG-3415] Handle new line when entering text 2020-09-04 13:12:02 +02:00
alek
9821cd77c6 [EGD-3558] remove memalloc 2020-09-04 11:45:50 +02:00
mozdzyk
81e14554c5 [EGD-3476] Fixed font parser and utf8 decode function for 3-byte and 4-byte characters (emojis etc.). 2020-09-01 12:03:19 +02:00
pholat
ef170c0d27 EGD-3393 UTF8 Unicode fixup for ostry cień mgły (#587)
EGD-3393 UTF8 Unicode fixup for ostry cień mgły

* We are working in little endian, string notation doest't care
* UTF8 cleanup - removed reinterpret casts, removed unused code, and added {}
* added forward declaration for ostream and moved operator<< to cpp
* Removed dead code
* Fixed crash on out of memory access in Renderer on draw char
* Fixed tests failing - there was no test for operator==
* Added changelog
2020-08-07 09:12:27 +02:00
pholat
50a1f97643 [feature] Font handling feature (#527)
* Font renamed to RawFont
* Added gui::Font adapter
2020-07-15 12:15:14 +02:00
pholat
dfbe4d4acd fixed gramar in Color (#526) 2020-07-14 13:31:46 +02:00
pholat
938cbc186a Gui text pr1 utils and fixes (needed for gui::Text rewrite mostly) (#485)
* EGD-3229 [FIX] UTF8 fixed uint32_t range error

* EGD-3229 [util] gui::Item Navigation switch case moved to function

Needed to not copy senslessly NavigationDirection enum switch case
* gui::Item Navigation switch case moved to function
* added NavigationDirection::None enum value
* cleaned up Navigation.hpp/cpp

* EGD-3229 [util] gui: InputEvent - str() for logging added & is...() check methods

* EGD-3229 [util] removed notorious log on unknown glyph

* EGD-3229 [util] InputMode - added is(Mode) method, input Profile added default definition

* is() method addded to check instead of `==` comparison
* added default to Profile instead of `== 0` use

* [FIX] ARM GCC 10.1.0 - build fixed

fixed include in wrong place

* PR style fix

* Review applied
2020-07-01 13:14:07 +02:00
pholat
55ca62e66d cleanup: removed empty ctor/dtor stubs & some TODO (#481) 2020-06-30 08:32:05 +02:00
Mateusz Grzywacz
9da22edbdb [EGD-3074] rect fill fix 2020-04-17 15:19:55 +02:00
Adam Dobrowolski
4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +02:00
Przemyslaw Brudny
c0822b6658 [EDG-3019] Moved log.hpp and debug.hpp into main PurePhone repo 2020-03-24 15:55:32 +01:00
Adam Dobrowolski
7674b44385 EGD-3026 PR applied, fixed buid for release 2020-03-24 14:17:12 +01:00
Adam Dobrowolski
abe6813ce6 EGD-3026 Wall Werror and Wextra added to project 2020-03-24 14:17:12 +01:00
Przemyslaw Brudny
8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
Mateusz Grzywacz
7b656ae101 [EGD-2958] yaps expansion correction & narrower font 2020-03-18 15:21:17 +01:00
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Adam Dobrowolski
8b6b3c649a EGD-2848 PR applied 2020-03-12 15:24:39 +01:00
Adam Dobrowolski
7aad9dc59f EGD-2848 Applied fix for both axis 2020-03-12 15:24:39 +01:00
Adam Dobrowolski
cff3391d06 EGD-2848 Renderer Image trimming warn for both type, fixed trim 2020-03-12 15:24:39 +01:00
Mateusz Grzywacz
36ae87da26 [EGD-2952] render unsupported character (sms.db for show) 2020-03-12 13:20:34 +01:00
Mateusz Grzywacz
9cf26f986d Revert "[EGD-2952] render unsupported character (sms.db for show)"
This reverts commit 31de7fcaf0.
2020-03-10 11:47:55 +01:00
Mateusz Grzywacz
31de7fcaf0 [EGD-2952] render unsupported character (sms.db for show) 2020-03-09 18:03:51 +01:00
Mateusz Grzywacz
3eb6f52952 [EGD-2947] fix | truncate image if it's height or width exceeds drawArea 2020-03-04 14:24:52 +01:00
Mateusz Grzywacz
1d20b6b123 [EGD-2536] fonts - do not dereference iterator, if it's ::end() 2020-03-03 15:43:09 +01:00
Mateusz Grzywacz
3d3a019de1 [EGD-2393] yaps in thread view and yap size 2020-02-11 11:50:15 +01:00
Mateusz Grzywacz
4182d778f7 [EGD-2393] separate size for yaps 2020-02-11 11:50:15 +01:00
Adam Dobrowolski
7d1e788753 [EGD-2476] Added static lifetime store for battery state and use it on UI 2020-01-20 11:05:05 +01:00
Mateusz Grzywacz
d4a6c3f022 [EGD-2393] review mods 2020-01-10 15:50:31 +01:00
Mateusz Grzywacz
a2bbe2b01d [EGD-2393] Added left hand side yaps @TODO unified size reference (cmd->areaW) 2020-01-10 15:50:31 +01:00
Mateusz Grzywacz
6d313c5723 [EGD-2393] Added tips (endings allowing blending of 45° line) 2020-01-10 15:50:31 +01:00
Mateusz Grzywacz
c47926019d [fix] round corners fixed 2020-01-10 15:50:31 +01:00
Mateusz Grzywacz
87439700d0 [EGD-2393] hardcode crosssection of skewed line (45°) & fixes offsetting and calling yaps 2020-01-10 15:50:31 +01:00
Mateusz Grzywacz
61a3eadbd5 [EGD-2393] line draw off-by-1 fixes & added 45° skewed line & length adjustment 2020-01-10 15:50:31 +01:00
Mateusz Grzywacz
83578c1566 [EGD-2393] docs comments 2020-01-10 15:50:31 +01:00
Mateusz Grzywacz
955612ce62 [EGD-2393] Added yaps (to rect) 2020-01-10 15:50:31 +01:00
Robert Borzecki
d9c4e119f4 Merge branch 'master' of github.com:muditacom/PurePhone into application-window 2019-06-26 12:34:44 +02:00
Robert Borzecki
35d15b2bc7 Added key handling logic to applications. 2019-06-26 12:34:06 +02:00
Kuba
773f2dbc3c Merge branch 'master' of github.com:muditacom/PurePhone into widget_progress_bar 2019-06-25 11:25:30 +02:00
Kuba
26e80bef11 Code cleanup. 2019-06-25 11:07:11 +02:00
Kuba
7662b9f39e First version of new progress bar. 2019-06-25 09:55:15 +02:00
Robert Borzecki
5dc4c6c134 Merge branch 'master' of github.com:muditacom/PurePhone into keyboard_fix 2019-06-17 18:23:26 +02:00