Changeset View
Changeset View
Standalone View
Standalone View
libs/widgetutils/kis_icon_utils.cpp
Context not available. | |||||
130 | return icon; | 130 | return icon; | ||
---|---|---|---|---|---|
131 | } | 131 | } | ||
132 | 132 | | |||
133 | | ||||
134 | | ||||
135 | | ||||
133 | bool useDarkIcons() { | 136 | bool useDarkIcons() { | ||
134 | QColor background = qApp->palette().background().color(); | 137 | QColor background = qApp->palette().background().color(); | ||
135 | return background.value() > 100; | 138 | return background.value() > 100; | ||
Context not available. | |||||
183 | } | 186 | } | ||
184 | } | 187 | } | ||
185 | 188 | | |||
189 | void clearIconCache() { | ||||
190 | #if defined CACHE_ICONS | ||||
191 | s_cache.clear(); | ||||
192 | #endif | ||||
193 | } | ||||
194 | | ||||
186 | void updateIcon(QAbstractButton *button) | 195 | void updateIcon(QAbstractButton *button) | ||
187 | { | 196 | { | ||
188 | QIcon icon = button->icon(); | 197 | QIcon icon = button->icon(); | ||
Context not available. |