Files
Upsilon/escher/src/message_table_cell_with_gauge.cpp
2018-10-11 16:44:02 +02:00

19 lines
574 B
C++

#include <escher/message_table_cell_with_gauge.h>
#include <escher/palette.h>
MessageTableCellWithGauge::MessageTableCellWithGauge(I18n::Message message, const KDFont * font) :
MessageTableCell(message, font),
m_accessoryView()
{
}
View * MessageTableCellWithGauge::accessoryView() const {
return (View *)&m_accessoryView;
}
void MessageTableCellWithGauge::setHighlighted(bool highlight) {
MessageTableCell::setHighlighted(highlight);
KDColor backgroundColor = highlight? Palette::Select : KDColorWhite;
m_accessoryView.setBackgroundColor(backgroundColor);
}