From 84b91bd97e1f25c5e9ee5ae94db8cd7884eb8a1d Mon Sep 17 00:00:00 2001 From: JuanJakobo <34421964+JuanJakobo@users.noreply.github.com> Date: Thu, 22 Oct 2020 22:26:03 +0200 Subject: [PATCH] rearranged list view entry --- src/ui/listViewEntry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/listViewEntry.cpp b/src/ui/listViewEntry.cpp index dd0de9b..df5ee81 100644 --- a/src/ui/listViewEntry.cpp +++ b/src/ui/listViewEntry.cpp @@ -27,7 +27,7 @@ void ListViewEntry::draw(const Item &item) { FillAreaRect(&pageButton, BLACK); DrawTextRect2(&pageButton, "bitmap"); - DrawTextRect(pageButton.w, _position.y + 2 * fontHeight, _position.w, fontHeight, item.getFiletype().c_str(), ALIGN_LEFT); + DrawTextRect(pageButton.w, _position.y + fontHeight, _position.w, fontHeight, item.getFiletype().c_str(), ALIGN_LEFT); if (item.isDownloaded()) { DrawTextRect(_position.x, _position.y + 3 * fontHeight, _position.w, fontHeight, "Synced", ALIGN_RIGHT); @@ -44,9 +44,9 @@ void ListViewEntry::draw(const Item &item) } DrawTextRect(pageButton.w, _position.y, _position.w, fontHeight, item.getTitle().c_str(), ALIGN_LEFT); + DrawTextRect(pageButton.w, _position.y + 2 * fontHeight, _position.w, fontHeight, item.getLastEditDate().c_str(), ALIGN_LEFT); DrawTextRect(pageButton.w, _position.y + 3 * fontHeight, _position.w, fontHeight, Util::intToString(item.getSize()).c_str(), ALIGN_LEFT); - DrawTextRect(_position.x, _position.y + 2 * fontHeight, _position.w, fontHeight, item.getLastEditDate().c_str(), ALIGN_RIGHT); int line = (_position.y + _position.h) - 1; DrawLine(0, line, ScreenWidth(), line, BLACK);