summaryrefslogtreecommitdiff
path: root/src/gui/questswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-31 00:29:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-31 00:29:22 +0300
commit8cc6679b676103c7c6696947ea43ad439e9754c5 (patch)
treea3cf0f7d9e8eede421956942b4c325e191a9eb31 /src/gui/questswindow.cpp
parent793bcbe5d8308c8c33419f67378df9dc83462445 (diff)
downloadmanaverse-8cc6679b676103c7c6696947ea43ad439e9754c5.tar.gz
manaverse-8cc6679b676103c7c6696947ea43ad439e9754c5.tar.bz2
manaverse-8cc6679b676103c7c6696947ea43ad439e9754c5.tar.xz
manaverse-8cc6679b676103c7c6696947ea43ad439e9754c5.zip
Add theme option to show hide opaque background for some windows.
Diffstat (limited to 'src/gui/questswindow.cpp')
-rw-r--r--src/gui/questswindow.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp
index a33de32b6..fdda10562 100644
--- a/src/gui/questswindow.cpp
+++ b/src/gui/questswindow.cpp
@@ -82,12 +82,14 @@ class QuestsModel : public ExtendedNamesModel
};
QuestsWindow::QuestsWindow() :
- Window(_("Quests"), false, nullptr, "quest.xml"),
+ Window(_("Quests"), false, nullptr, "quests.xml"),
mQuestsModel(new QuestsModel),
mQuestsListBox(new ExtendedListBox(mQuestsModel)),
- mQuestScrollArea(new ScrollArea(mQuestsListBox)),
+ mQuestScrollArea(new ScrollArea(mQuestsListBox,
+ getOptionBool("showlistbackground"))),
mText(new BrowserBox(BrowserBox::AUTO_WRAP)),
- mTextScrollArea(new ScrollArea(mText)),
+ mTextScrollArea(new ScrollArea(mText,
+ getOptionBool("showtextbackground"))),
mCloseButton(new Button(_("Close"), "close", this)),
mCompleteIcon(Theme::getImageFromThemeXml("complete_icon.xml")),
mIncompleteIcon(Theme::getImageFromThemeXml("incomplete_icon.xml"))