window: make color/format/border class enums

This commit is contained in:
Andrzej Rybczak
2012-10-06 19:04:59 +02:00
parent 1f61a083cf
commit df9ecabb55
30 changed files with 270 additions and 251 deletions

View File

@@ -631,10 +631,10 @@ template <typename T> void Menu<T>::refresh()
continue;
}
if ((*m_options_ptr)[i]->isBold())
*this << fmtBold;
*this << Format::Bold;
if (m_highlight_enabled && i == m_highlight)
{
*this << fmtReverse;
*this << Format::Reverse;
*this << m_highlight_color;
}
mvwhline(m_window, line, 0, KEY_SPACE, m_width);
@@ -646,11 +646,11 @@ template <typename T> void Menu<T>::refresh()
*this << m_selected_suffix;
if (m_highlight_enabled && i == m_highlight)
{
*this << clEnd;
*this << fmtReverseEnd;
*this << Color::End;
*this << Format::NoReverse;
}
if ((*m_options_ptr)[i]->isBold())
*this << fmtBoldEnd;
*this << Format::NoBold;
}
Window::refresh();
}