diff -Naur mythplugins.orig/mythgallery/mythgallery/iconview.cpp mythplugins/mythgallery/mythgallery/iconview.cpp
old
|
new
|
|
107 | 107 | return; |
108 | 108 | } |
109 | 109 | |
| 110 | updateBackground(); |
| 111 | |
110 | 112 | SetupMediaMonitor(); |
111 | 113 | |
112 | 114 | srand(time(NULL)); |
… |
… |
|
165 | 167 | UpdateView(); |
166 | 168 | } |
167 | 169 | |
| 170 | void IconView::updateBackground(void) |
| 171 | { |
| 172 | QPixmap bground(size()); |
| 173 | bground.fill(this, 0, 0); |
| 174 | |
| 175 | QPainter tmp(&bground); |
| 176 | |
| 177 | LayerSet *container = m_theme->GetSet("background"); |
| 178 | if (container) |
| 179 | { |
| 180 | container->Draw(&tmp, 0, 0); |
| 181 | } |
| 182 | |
| 183 | tmp.end(); |
| 184 | m_background = bground; |
| 185 | |
| 186 | setPaletteBackgroundPixmap(m_background); |
| 187 | } |
| 188 | |
168 | 189 | void IconView::UpdateMenu(void) |
169 | 190 | { |
170 | 191 | QPixmap pix(m_menuRect.size()); |
diff -Naur mythplugins.orig/mythgallery/mythgallery/iconview.h mythplugins/mythgallery/mythgallery/iconview.h
old
|
new
|
|
59 | 59 | bool LoadViewTheme(void); |
60 | 60 | bool LoadThemeImages(void); |
61 | 61 | |
| 62 | void updateBackground(); |
| 63 | |
62 | 64 | void LoadDirectory(const QString &dir, bool topleft); |
63 | 65 | |
64 | 66 | void UpdateMenu(void); |
… |
… |
|
122 | 124 | UIListBtnType *m_menuType; |
123 | 125 | UIListBtnType *m_submenuType; |
124 | 126 | |
| 127 | QPixmap m_background; |
125 | 128 | QPixmap m_backRegPix; |
126 | 129 | QPixmap m_backSelPix; |
127 | 130 | QPixmap m_folderRegPix; |