#include TextMenuListCell::TextMenuListCell(char * label) : MenuListCell(label), m_accessoryView(BufferTextView(KDText::FontSize::Large, 1.0f, 0.5f)) { } void TextMenuListCell::setAccessoryText(const char * textBody) { m_accessoryView.setText(textBody); reloadCell(); } const char * TextMenuListCell::accessoryText() { return m_accessoryView.text(); } View * TextMenuListCell::accessoryView() const { return (View *)&m_accessoryView; } void TextMenuListCell::reloadCell() { MenuListCell::reloadCell(); KDColor backgroundColor = isHighlighted()? Palette::Select : KDColorWhite; m_accessoryView.setBackgroundColor(backgroundColor); } void TextMenuListCell::setHighlighted(bool highlight) { MenuListCell::setHighlighted(highlight); KDColor backgroundColor = highlight? Palette::Select : KDColorWhite; m_accessoryView.setBackgroundColor(backgroundColor); } void TextMenuListCell::setTextColor(KDColor color) { m_accessoryView.setTextColor(color); MenuListCell::setTextColor(color); }