diff options
-rw-r--r-- | src/TextDialog.cc | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/src/TextDialog.cc b/src/TextDialog.cc index dc35dbe..f86c1e6 100644 --- a/src/TextDialog.cc +++ b/src/TextDialog.cc | |||
@@ -135,19 +135,28 @@ void TextDialog::keyPressEvent(XKeyEvent &event) { | |||
135 | } | 135 | } |
136 | 136 | ||
137 | void TextDialog::render() { | 137 | void TextDialog::render() { |
138 | Pixmap tmp = m_pixmap; | 138 | if (m_screen.focusedWinFrameTheme()->iconbarTheme().texture().type() & |
139 | if (!m_screen.focusedWinFrameTheme()->iconbarTheme().texture().usePixmap()) { | 139 | FbTk::Texture::PARENTRELATIVE) { |
140 | m_label.setBackgroundColor(m_screen.focusedWinFrameTheme()->iconbarTheme().texture().color()); | 140 | if (!m_screen.focusedWinFrameTheme()->titleTexture().usePixmap()) { |
141 | m_pixmap = 0; | 141 | m_pixmap = None; |
142 | m_label.setBackgroundColor(m_screen.focusedWinFrameTheme()->titleTexture().color()); | ||
143 | } else { | ||
144 | m_pixmap = m_screen.imageControl().renderImage(m_label.width(), m_label.height(), | ||
145 | m_screen.focusedWinFrameTheme()->titleTexture()); | ||
146 | m_label.setBackgroundPixmap(m_pixmap); | ||
147 | } | ||
142 | } else { | 148 | } else { |
143 | m_pixmap = m_screen.imageControl().renderImage(m_label.width(), m_label.height(), | 149 | if (!m_screen.focusedWinFrameTheme()->iconbarTheme().texture().usePixmap()) { |
144 | m_screen.focusedWinFrameTheme()->iconbarTheme().texture()); | 150 | m_pixmap = None; |
145 | m_label.setBackgroundPixmap(m_pixmap); | 151 | m_label.setBackgroundColor(m_screen.focusedWinFrameTheme()->iconbarTheme().texture().color()); |
152 | } else { | ||
153 | m_pixmap = m_screen.imageControl().renderImage(m_label.width(), m_label.height(), | ||
154 | m_screen.focusedWinFrameTheme()->iconbarTheme().texture()); | ||
155 | m_label.setBackgroundPixmap(m_pixmap); | ||
156 | } | ||
146 | } | 157 | } |
147 | 158 | if (m_pixmap) | |
148 | if (tmp) | 159 | m_screen.imageControl().removeImage(m_pixmap); |
149 | m_screen.imageControl().removeImage(tmp); | ||
150 | |||
151 | } | 160 | } |
152 | 161 | ||
153 | void TextDialog::init() { | 162 | void TextDialog::init() { |