mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- listframe/moviebrowser: add round corners to scrollbar
This commit is contained in:
@@ -368,21 +368,27 @@ void CListFrame::refreshScroll(void)
|
|||||||
if( frameBuffer == NULL) return;
|
if( frameBuffer == NULL) return;
|
||||||
if(!(m_nMode & SCROLL)) return;
|
if(!(m_nMode & SCROLL)) return;
|
||||||
|
|
||||||
if (m_nNrOfPages > 1)
|
/*
|
||||||
{
|
FIXME: Find right conditions.
|
||||||
frameBuffer->paintBoxRel(m_cFrameScrollRel.iX+m_cFrame.iX, m_cFrameScrollRel.iY+m_cFrame.iY,
|
So long let's paint scrollbar background in every case
|
||||||
m_cFrameScrollRel.iWidth, m_cFrameScrollRel.iHeight, COL_SCROLLBAR_PASSIVE_PLUS_0);
|
to avoid transparent spaces in scrollbar corners.
|
||||||
unsigned int marker_size = m_cFrameScrollRel.iHeight / m_nNrOfPages;
|
*/
|
||||||
frameBuffer->paintBoxRel(m_cFrameScrollRel.iX + SCROLL_MARKER_BORDER+m_cFrame.iX,
|
if (1)
|
||||||
m_cFrameScrollRel.iY + m_nCurrentPage * marker_size +m_cFrame.iY,
|
|
||||||
m_cFrameScrollRel.iWidth - (2*SCROLL_MARKER_BORDER),
|
|
||||||
marker_size, COL_SCROLLBAR_ACTIVE_PLUS_0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
frameBuffer->paintBoxRel(m_cFrameScrollRel.iX+m_cFrame.iX, m_cFrameScrollRel.iY+m_cFrame.iY,
|
frameBuffer->paintBoxRel(m_cFrameScrollRel.iX+m_cFrame.iX, m_cFrameScrollRel.iY+m_cFrame.iY,
|
||||||
m_cFrameScrollRel.iWidth, m_cFrameScrollRel.iHeight, COL_MENUCONTENT_PLUS_0);
|
m_cFrameScrollRel.iWidth, m_cFrameScrollRel.iHeight, COL_MENUCONTENT_PLUS_0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_nNrOfPages > 1)
|
||||||
|
{
|
||||||
|
frameBuffer->paintBoxRel(m_cFrameScrollRel.iX+m_cFrame.iX, m_cFrameScrollRel.iY+m_cFrame.iY,
|
||||||
|
m_cFrameScrollRel.iWidth, m_cFrameScrollRel.iHeight, COL_SCROLLBAR_PASSIVE_PLUS_0, RADIUS_MIN);
|
||||||
|
unsigned int marker_size = (m_cFrameScrollRel.iHeight - 2*SCROLL_MARKER_BORDER) / m_nNrOfPages;
|
||||||
|
frameBuffer->paintBoxRel(m_cFrameScrollRel.iX + SCROLL_MARKER_BORDER+m_cFrame.iX,
|
||||||
|
m_cFrameScrollRel.iY + SCROLL_MARKER_BORDER + m_nCurrentPage * marker_size +m_cFrame.iY,
|
||||||
|
m_cFrameScrollRel.iWidth - (2*SCROLL_MARKER_BORDER),
|
||||||
|
marker_size, COL_SCROLLBAR_ACTIVE_PLUS_0, RADIUS_MIN);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int CListFrame::paintListIcon(int x, int y, int line)
|
int CListFrame::paintListIcon(int x, int y, int line)
|
||||||
|
Reference in New Issue
Block a user