From d8aaca79e608c98dfa82f145b032ca94ce473138 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Jul 2012 01:31:22 +0300 Subject: Change shortcuts windows theming. --- src/gui/widgets/dropshortcutcontainer.cpp | 3 ++- src/gui/widgets/emoteshortcutcontainer.cpp | 3 ++- src/gui/widgets/itemshortcutcontainer.cpp | 3 ++- src/gui/widgets/spellshortcutcontainer.cpp | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/dropshortcutcontainer.cpp b/src/gui/widgets/dropshortcutcontainer.cpp index af3b78a31..d6d31871b 100644 --- a/src/gui/widgets/dropshortcutcontainer.cpp +++ b/src/gui/widgets/dropshortcutcontainer.cpp @@ -55,7 +55,8 @@ DropShortcutContainer::DropShortcutContainer(): mItemPopup = new ItemPopup; - mBackgroundImg = Theme::getImageFromTheme("item_shortcut_bgr.png"); + mBackgroundImg = Theme::getImageFromThemeXml( + "item_shortcut_background.xml"); if (dropShortcut) mMaxItems = dropShortcut->getItemCount(); else diff --git a/src/gui/widgets/emoteshortcutcontainer.cpp b/src/gui/widgets/emoteshortcutcontainer.cpp index aaf22c066..79a50bf40 100644 --- a/src/gui/widgets/emoteshortcutcontainer.cpp +++ b/src/gui/widgets/emoteshortcutcontainer.cpp @@ -56,7 +56,8 @@ EmoteShortcutContainer::EmoteShortcutContainer(): addMouseListener(this); addWidgetListener(this); - mBackgroundImg = Theme::getImageFromTheme("item_shortcut_bgr.png"); + mBackgroundImg = Theme::getImageFromThemeXml( + "item_shortcut_background.xml"); if (mBackgroundImg) mBackgroundImg->setAlpha(Client::getGuiAlpha()); diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp index 0585f59cd..714435d21 100644 --- a/src/gui/widgets/itemshortcutcontainer.cpp +++ b/src/gui/widgets/itemshortcutcontainer.cpp @@ -62,7 +62,8 @@ ItemShortcutContainer::ItemShortcutContainer(unsigned number): mItemPopup = new ItemPopup; mSpellPopup = new SpellPopup; - mBackgroundImg = Theme::getImageFromTheme("item_shortcut_bgr.png"); + mBackgroundImg = Theme::getImageFromThemeXml( + "item_shortcut_background.xml"); if (itemShortcut[mNumber]) mMaxItems = itemShortcut[mNumber]->getItemCount(); else diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index 7818dc8dc..c3e3b1495 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -63,7 +63,8 @@ SpellShortcutContainer::SpellShortcutContainer(unsigned number): mSpellPopup = new SpellPopup; - mBackgroundImg = Theme::getImageFromTheme("item_shortcut_bgr.png"); + mBackgroundImg = Theme::getImageFromThemeXml( + "item_shortcut_background.xml"); if (spellShortcut) mMaxItems = spellShortcut->getSpellsCount(); else -- cgit v1.2.3-70-g09d2