mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
neutrino: make button bar use available space intelligently
modify the paintButtons() function, so that it spreads the buttons
over the available width with constant space between them.
Port over all users to the new method and clean up quite some custom
button drawing code on the way.
Attention: This code is GPL v3+ only for now!
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2f65aea744
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-10-03 (Mon, 03 Oct 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -669,12 +669,11 @@ void CPictureViewerGui::paintFoot()
|
||||
|
||||
if (!playlist.empty())
|
||||
{
|
||||
::paintButtons(x, y + (height - 2 * buttonHeight), 0, 5, PictureViewerButtons);
|
||||
|
||||
::paintButtons(x, y + (height - buttonHeight), 0, 2, (m_sort==FILENAME)?PictureViewerButtons2[0]:PictureViewerButtons2[1]);
|
||||
::paintButtons(x, y + (height - 2 * buttonHeight), 0, 5, PictureViewerButtons, width);
|
||||
::paintButtons(x, y + (height - buttonHeight), 0, 2, (m_sort==FILENAME)?PictureViewerButtons2[0]:PictureViewerButtons2[1], width);
|
||||
}
|
||||
else
|
||||
::paintButtons(x , y + (height - 2 * buttonHeight), 0, 1, &(PictureViewerButtons[1]));
|
||||
::paintButtons(x , y + (height - 2 * buttonHeight), 0, 1, &(PictureViewerButtons[1]), width);
|
||||
// printf("paintFoot}\n");
|
||||
}
|
||||
//------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user