GUI: Turn scrollbar width into a theme variable

svn-id: r35021
This commit is contained in:
Max Horn 2008-11-12 13:07:41 +00:00
parent 42533c2354
commit 190468c79a
10 changed files with 20 additions and 16 deletions

View file

@ -114,11 +114,7 @@ void ConsoleDialog::init() {
_h = _h * kConsoleLineHeight + 2;
// Set scrollbar dimensions
int scrollBarWidth;
if (g_gui.getWidgetSize() == kBigWidgetSize)
scrollBarWidth = kBigScrollBarWidth;
else
scrollBarWidth = kNormalScrollBarWidth;
int scrollBarWidth = g_gui.xmlEval()->getVar("Globals.Scrollbar.Width", 0);
_scrollBar->resize(_w - scrollBarWidth - 1, 0, scrollBarWidth, _h);
_pageWidth = (_w - scrollBarWidth - 2 - _leftPadding - _topPadding - scrollBarWidth) / kConsoleCharWidth;