From 49883a8775cad4bb63c8ba035532cd9666dfd933 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 16 Feb 2019 23:19:04 +0100 Subject: [PATCH] - listframe: add minimal offset to header line Signed-off-by: Thilo Graf --- src/gui/widget/listframe.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/widget/listframe.cpp b/src/gui/widget/listframe.cpp index 34e5c400b..c2a766ab0 100644 --- a/src/gui/widget/listframe.cpp +++ b/src/gui/widget/listframe.cpp @@ -252,8 +252,8 @@ void CListFrame::initFramesRel(void) if(m_nMode & HEADER_LINE) { m_cFrameHeaderListRel.iX = 0; - m_cFrameHeaderListRel.iY = 0 + m_cFrameTitleRel.iHeight; - m_cFrameHeaderListRel.iHeight = m_nFontHeaderListHeight ; + m_cFrameHeaderListRel.iY = m_cFrameTitleRel.iHeight; + m_cFrameHeaderListRel.iHeight = m_nFontHeaderListHeight + 2*OFFSET_INNER_MIN; } else { @@ -433,7 +433,7 @@ void CListFrame::refreshLine(int line) fb_pixel_t color, bgcolor; int rel_line = line - m_nCurrentLine; - int y = m_cFrameListRel.iY + OFFSET_INNER_MID + (rel_line*m_nFontListHeight); + int y = m_cFrameListRel.iY + (rel_line*m_nFontListHeight); int radius = 0; bool selected = (line == m_nSelectedLine && m_showSelection == true); @@ -478,7 +478,7 @@ void CListFrame::refreshHeaderList(void) int width; int x = m_cFrameHeaderListRel.iX + OFFSET_INNER_MID; - int y = m_cFrameHeaderListRel.iY + m_nFontHeaderListHeight; + int y = m_cFrameHeaderListRel.iY + m_nFontHeaderListHeight + OFFSET_INNER_MIN; int net_width = m_cFrameHeaderListRel.iWidth - OFFSET_INNER_SMALL * (m_pLines->rows - 1); bool loop = true; for(int row = 0; row < m_pLines->rows && loop == true; row++)