diff options
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r-- | src/IconButton.cc | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc index f7b4f5f..f1dd1f0 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc | |||
@@ -142,28 +142,24 @@ void IconButton::setPixmap(bool use) { | |||
142 | 142 | ||
143 | void IconButton::reconfigTheme() { | 143 | void IconButton::reconfigTheme() { |
144 | 144 | ||
145 | if (m_theme->texture().usePixmap()) | 145 | setFont(m_theme->text().font()); |
146 | setGC(m_theme->text().textGC()); | ||
147 | setBorderWidth(m_theme->border().width()); | ||
148 | setBorderColor(m_theme->border().color()); | ||
149 | setJustify(m_theme->text().justify()); | ||
150 | setAlpha(parent()->alpha()); | ||
151 | |||
152 | if (m_theme->texture().usePixmap()) { | ||
146 | m_pm.reset(m_win.screen().imageControl().renderImage( | 153 | m_pm.reset(m_win.screen().imageControl().renderImage( |
147 | width(), height(), m_theme->texture(), | 154 | width(), height(), m_theme->texture(), |
148 | orientation())); | 155 | orientation())); |
149 | else | ||
150 | m_pm.reset(0); | ||
151 | |||
152 | setAlpha(parent()->alpha()); | ||
153 | |||
154 | if (m_pm != 0) | ||
155 | setBackgroundPixmap(m_pm); | 156 | setBackgroundPixmap(m_pm); |
156 | else | 157 | } else{ |
158 | m_pm.reset(0); | ||
157 | setBackgroundColor(m_theme->texture().color()); | 159 | setBackgroundColor(m_theme->texture().color()); |
158 | 160 | } | |
159 | setGC(m_theme->text().textGC()); | ||
160 | setFont(m_theme->text().font()); | ||
161 | setJustify(m_theme->text().justify()); | ||
162 | setBorderWidth(m_theme->border().width()); | ||
163 | setBorderColor(m_theme->border().color()); | ||
164 | 161 | ||
165 | updateBackground(false); | 162 | updateBackground(false); |
166 | |||
167 | } | 163 | } |
168 | 164 | ||
169 | void IconButton::reconfigAndClear() { | 165 | void IconButton::reconfigAndClear() { |