From 49549db4517dd7f1ec1d66626578296f5524517b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Jul 2012 01:20:14 +0300 Subject: Change avatar list box theming. --- data/graphics/gui/CMakeLists.txt | 4 ++-- data/graphics/gui/Makefile.am | 4 ++-- data/graphics/gui/circle-gray.png | Bin 300 -> 0 bytes data/graphics/gui/circle-green.png | Bin 328 -> 0 bytes data/graphics/gui/circle-off.xml | 5 +++++ data/graphics/gui/circle-on.xml | 5 +++++ data/graphics/gui/window.png | Bin 14682 -> 15332 bytes src/gui/widgets/avatarlistbox.cpp | 4 ++-- 8 files changed, 16 insertions(+), 6 deletions(-) delete mode 100644 data/graphics/gui/circle-gray.png delete mode 100644 data/graphics/gui/circle-green.png create mode 100644 data/graphics/gui/circle-off.xml create mode 100644 data/graphics/gui/circle-on.xml diff --git a/data/graphics/gui/CMakeLists.txt b/data/graphics/gui/CMakeLists.txt index 00acf90f9..a8be383b2 100644 --- a/data/graphics/gui/CMakeLists.txt +++ b/data/graphics/gui/CMakeLists.txt @@ -6,8 +6,8 @@ SET (FILES button_pressed.xml buttonplay.png checkbox.png - circle-gray.png - circle-green.png + circle-off.xml + circle-on.xml colors.xml dropdown.xml dropdown_background.xml diff --git a/data/graphics/gui/Makefile.am b/data/graphics/gui/Makefile.am index 1567f2752..7cd231eae 100644 --- a/data/graphics/gui/Makefile.am +++ b/data/graphics/gui/Makefile.am @@ -9,8 +9,8 @@ gui_DATA = \ button_pressed.xml \ buttonplay.png \ checkbox.png \ - circle-gray.png \ - circle-green.png \ + circle-off.xml \ + circle-on.xml \ colors.xml \ dropdown.xml \ dropdown_background.xml \ diff --git a/data/graphics/gui/circle-gray.png b/data/graphics/gui/circle-gray.png deleted file mode 100644 index 3e884f405..000000000 Binary files a/data/graphics/gui/circle-gray.png and /dev/null differ diff --git a/data/graphics/gui/circle-green.png b/data/graphics/gui/circle-green.png deleted file mode 100644 index 2c98e9ef1..000000000 Binary files a/data/graphics/gui/circle-green.png and /dev/null differ diff --git a/data/graphics/gui/circle-off.xml b/data/graphics/gui/circle-off.xml new file mode 100644 index 000000000..8d35ab4f2 --- /dev/null +++ b/data/graphics/gui/circle-off.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/data/graphics/gui/circle-on.xml b/data/graphics/gui/circle-on.xml new file mode 100644 index 000000000..4afe34024 --- /dev/null +++ b/data/graphics/gui/circle-on.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/data/graphics/gui/window.png b/data/graphics/gui/window.png index 5eeb95ab5..477602fa6 100644 Binary files a/data/graphics/gui/window.png and b/data/graphics/gui/window.png differ diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 377ddac2c..c648c56dd 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -57,8 +57,8 @@ AvatarListBox::AvatarListBox(AvatarListModel *model): if (instances == 1) { - onlineIcon = Theme::getImageFromTheme("circle-green.png"); - offlineIcon = Theme::getImageFromTheme("circle-gray.png"); + onlineIcon = Theme::getImageFromThemeXml("circle-on.xml"); + offlineIcon = Theme::getImageFromThemeXml("circle-off.xml"); } setWidth(200); -- cgit v1.2.3-70-g09d2