mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-10 10:45:17 -04:00
Add simple column headers to recents list views.
This commit is contained in:
parent
bd829d7d85
commit
cac9f02c48
4 changed files with 43 additions and 0 deletions
|
@ -165,6 +165,15 @@ void TPMSRecentEntry::update(const tpms::Reading& reading) {
|
|||
|
||||
namespace ui {
|
||||
|
||||
template<>
|
||||
void RecentEntriesView<TPMSRecentEntries>::draw_header(
|
||||
const Rect& target_rect,
|
||||
Painter& painter,
|
||||
const Style& style
|
||||
) {
|
||||
painter.draw_string(target_rect.pos, style, "Tp| ID |kPa| C |Cnt ");
|
||||
}
|
||||
|
||||
template<>
|
||||
void RecentEntriesView<TPMSRecentEntries>::draw(
|
||||
const Entry& entry,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue