mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- upnpbrowser: activate shadow on scrollbar
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1003,10 +1003,7 @@ void CUpnpBrowserGui::paintDevices()
|
|||||||
int total_pages;
|
int total_pages;
|
||||||
int current_page;
|
int current_page;
|
||||||
getScrollBarData(&total_pages, ¤t_page, m_devices.size(), m_listmaxshow, m_selecteddevice);
|
getScrollBarData(&total_pages, ¤t_page, m_devices.size(), m_listmaxshow, m_selecteddevice);
|
||||||
paintScrollBar(m_x + m_width - SCROLLBAR_WIDTH, m_item_y, SCROLLBAR_WIDTH, m_item_height*m_listmaxshow, total_pages, current_page);
|
paintScrollBar(m_x + m_width - SCROLLBAR_WIDTH, m_item_y, SCROLLBAR_WIDTH, m_item_height*m_listmaxshow, total_pages, current_page, CC_SHADOW_ON);
|
||||||
|
|
||||||
//shadow
|
|
||||||
m_frameBuffer->paintBoxRel(m_x + m_width, m_item_y + OFFSET_SHADOW, OFFSET_SHADOW, m_item_height*m_listmaxshow, COL_SHADOW_PLUS_0);
|
|
||||||
|
|
||||||
// Foot
|
// Foot
|
||||||
footer.setCorner(RADIUS_LARGE, CORNER_BOTTOM);
|
footer.setCorner(RADIUS_LARGE, CORNER_BOTTOM);
|
||||||
@@ -1178,7 +1175,7 @@ void CUpnpBrowserGui::paintItems(std::vector<UPnPEntry> *entry, unsigned int sel
|
|||||||
int total_pages;
|
int total_pages;
|
||||||
int current_page;
|
int current_page;
|
||||||
getScrollBarData(&total_pages, ¤t_page, max + offset, m_listmaxshow, selected + offset);
|
getScrollBarData(&total_pages, ¤t_page, max + offset, m_listmaxshow, selected + offset);
|
||||||
paintScrollBar(m_x + m_width - SCROLLBAR_WIDTH, m_item_y, SCROLLBAR_WIDTH, m_item_height*m_listmaxshow, total_pages, current_page);
|
paintScrollBar(m_x + m_width - SCROLLBAR_WIDTH, m_item_y, SCROLLBAR_WIDTH, m_item_height*m_listmaxshow, total_pages, current_page, CC_SHADOW_ON);
|
||||||
|
|
||||||
// Foot buttons
|
// Foot buttons
|
||||||
size_t numbuttons = sizeof(BrowseButtons)/sizeof(BrowseButtons[0]);
|
size_t numbuttons = sizeof(BrowseButtons)/sizeof(BrowseButtons[0]);
|
||||||
|
Reference in New Issue
Block a user