Skip to content

Commit

Permalink
DateTimeView32x8 - Keep text (default font) in the middle, which mean…
Browse files Browse the repository at this point in the history
…s one empty pixel row at the top and one between the text and the day lamps.
  • Loading branch information
BlueAndi committed Dec 18, 2024
1 parent 27ada00 commit 7b23aee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Views/src/layouts/DateTimeView32x8.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ class DateTimeView32x8 : public IDateTimeView
* which will continuously trigger the fading effect.
*/
m_textWidget.disableFadeEffect();

/* Keep text (default font) in the middle, which means one empty
* pixel row at the top and one between the text and the day lamps.
* Don't use text widget alignment feature, because it will calculate
* a 0 as optimum.
*/
m_textWidget.move(0, 1);
}

/**
Expand Down

0 comments on commit 7b23aee

Please sign in to comment.