aboutsummaryrefslogtreecommitdiff
path: root/src/CommandDialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommandDialog.cc')
-rw-r--r--src/CommandDialog.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/CommandDialog.cc b/src/CommandDialog.cc
index 17bd771..1c9005e 100644
--- a/src/CommandDialog.cc
+++ b/src/CommandDialog.cc
@@ -50,8 +50,8 @@ using std::out_of_range;
50CommandDialog::CommandDialog(BScreen &screen, 50CommandDialog::CommandDialog(BScreen &screen,
51 const string &title, const string precommand) : 51 const string &title, const string precommand) :
52 FbTk::FbWindow(screen.rootWindow().screenNumber(), 0, 0, 200, 1, ExposureMask), 52 FbTk::FbWindow(screen.rootWindow().screenNumber(), 0, 0, 200, 1, ExposureMask),
53 m_textbox(*this, screen.winFrameTheme()->font(), ""), 53 m_textbox(*this, screen.focusedWinFrameTheme()->font(), ""),
54 m_label(*this, screen.winFrameTheme()->font(), title), 54 m_label(*this, screen.focusedWinFrameTheme()->font(), title),
55 m_gc(m_textbox), 55 m_gc(m_textbox),
56 m_screen(screen), 56 m_screen(screen),
57 m_move_x(0), 57 m_move_x(0),
@@ -190,12 +190,12 @@ void CommandDialog::tabComplete() {
190 190
191void CommandDialog::render() { 191void CommandDialog::render() {
192 Pixmap tmp = m_pixmap; 192 Pixmap tmp = m_pixmap;
193 if (!m_screen.winFrameTheme()->focusedIconbarTheme().texture().usePixmap()) { 193 if (!m_screen.focusedWinFrameTheme()->iconbarTheme().texture().usePixmap()) {
194 m_label.setBackgroundColor(m_screen.winFrameTheme()->focusedIconbarTheme().texture().color()); 194 m_label.setBackgroundColor(m_screen.focusedWinFrameTheme()->iconbarTheme().texture().color());
195 m_pixmap = 0; 195 m_pixmap = 0;
196 } else { 196 } else {
197 m_pixmap = m_screen.imageControl().renderImage(m_label.width(), m_label.height(), 197 m_pixmap = m_screen.imageControl().renderImage(m_label.width(), m_label.height(),
198 m_screen.winFrameTheme()->focusedIconbarTheme().texture()); 198 m_screen.focusedWinFrameTheme()->iconbarTheme().texture());
199 m_label.setBackgroundPixmap(m_pixmap); 199 m_label.setBackgroundPixmap(m_pixmap);
200 } 200 }
201 201
@@ -210,7 +210,7 @@ void CommandDialog::init() {
210 // setup label 210 // setup label
211 // we listen to motion notify too 211 // we listen to motion notify too
212 m_label.setEventMask(m_label.eventMask() | ButtonPressMask | ButtonMotionMask); 212 m_label.setEventMask(m_label.eventMask() | ButtonPressMask | ButtonMotionMask);
213 m_label.setGC(m_screen.winFrameTheme()->focusedIconbarTheme().text().textGC()); 213 m_label.setGC(m_screen.focusedWinFrameTheme()->iconbarTheme().text().textGC());
214 m_label.show(); 214 m_label.show();
215 215
216 // setup text box 216 // setup text box