summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-05 07:39:43 -0700
committerJared Adams <jaxad0127@gmail.com>2010-03-05 07:58:02 -0700
commit78ab7c7a2877efd245293ad00cd36bcaa8646507 (patch)
tree28ea749d784a3dbee334f6a076a7ac77bc0333e1 /src/gui/widgets/scrollarea.cpp
parentb60e6d82d6e843f9e65c81555ec281d237c3ce41 (diff)
downloadmana-78ab7c7a2877efd245293ad00cd36bcaa8646507.tar.gz
mana-78ab7c7a2877efd245293ad00cd36bcaa8646507.tar.bz2
mana-78ab7c7a2877efd245293ad00cd36bcaa8646507.tar.xz
mana-78ab7c7a2877efd245293ad00cd36bcaa8646507.zip
Rename SkinLoader to Theme
Also merge the guialpha ConfigListener into Theme. Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r--src/gui/widgets/scrollarea.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index dea99e8e..0c7f4d7d 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -24,7 +24,7 @@
#include "configuration.h"
#include "graphics.h"
-#include "gui/skin.h"
+#include "gui/theme.h"
#include "resources/image.h"
@@ -95,7 +95,7 @@ void ScrollArea::init()
if (instances == 0)
{
// Load the background skin
- Image *textbox = SkinLoader::getImageFromTheme("deepbox.png");
+ Image *textbox = Theme::getImageFromTheme("deepbox.png");
const int bggridx[4] = {0, 3, 28, 31};
const int bggridy[4] = {0, 3, 28, 31};
int a = 0, x, y;
@@ -116,8 +116,8 @@ void ScrollArea::init()
textbox->decRef();
// Load vertical scrollbar skin
- Image *vscroll = SkinLoader::getImageFromTheme("vscroll_grey.png");
- Image *vscrollHi = SkinLoader::getImageFromTheme("vscroll_highlight.png");
+ Image *vscroll = Theme::getImageFromTheme("vscroll_grey.png");
+ Image *vscrollHi = Theme::getImageFromTheme("vscroll_highlight.png");
int vsgridx[4] = {0, 4, 7, 11};
int vsgridy[4] = {0, 4, 15, 19};
@@ -145,21 +145,21 @@ void ScrollArea::init()
vscrollHi->decRef();
buttons[UP][0] =
- SkinLoader::getImageFromTheme("vscroll_up_default.png");
+ Theme::getImageFromTheme("vscroll_up_default.png");
buttons[DOWN][0] =
- SkinLoader::getImageFromTheme("vscroll_down_default.png");
+ Theme::getImageFromTheme("vscroll_down_default.png");
buttons[LEFT][0] =
- SkinLoader::getImageFromTheme("hscroll_left_default.png");
+ Theme::getImageFromTheme("hscroll_left_default.png");
buttons[RIGHT][0] =
- SkinLoader::getImageFromTheme("hscroll_right_default.png");
+ Theme::getImageFromTheme("hscroll_right_default.png");
buttons[UP][1] =
- SkinLoader::getImageFromTheme("vscroll_up_pressed.png");
+ Theme::getImageFromTheme("vscroll_up_pressed.png");
buttons[DOWN][1] =
- SkinLoader::getImageFromTheme("vscroll_down_pressed.png");
+ Theme::getImageFromTheme("vscroll_down_pressed.png");
buttons[LEFT][1] =
- SkinLoader::getImageFromTheme("hscroll_left_pressed.png");
+ Theme::getImageFromTheme("hscroll_left_pressed.png");
buttons[RIGHT][1] =
- SkinLoader::getImageFromTheme("hscroll_right_pressed.png");
+ Theme::getImageFromTheme("hscroll_right_pressed.png");
}
instances++;
@@ -214,7 +214,7 @@ void ScrollArea::logic()
void ScrollArea::updateAlpha()
{
float alpha = std::max(config.getValue("guialpha", 0.8),
- (double)SkinLoader::instance()->getMinimumOpacity());
+ (double) Theme::instance()->getMinimumOpacity());
if (alpha != mAlpha)
{