From 8cc6679b676103c7c6696947ea43ad439e9754c5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Jul 2012 00:29:22 +0300 Subject: Add theme option to show hide opaque background for some windows. --- src/gui/questswindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/questswindow.cpp') 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")) -- cgit v1.2.3-70-g09d2