#include #include MessageTableCellWithExpression::MessageTableCellWithExpression(I18n::Message message, const KDFont * font) : MessageTableCell(message, font), m_subtitleView(1.0f, 0.5f, Palette::GreyDark) { } View * MessageTableCellWithExpression::accessoryView() const { return (View *)&m_subtitleView; } void MessageTableCellWithExpression::setHighlighted(bool highlight) { MessageTableCell::setHighlighted(highlight); KDColor backgroundColor = isHighlighted()? Palette::Select : KDColorWhite; m_subtitleView.setBackgroundColor(backgroundColor); } void MessageTableCellWithExpression::setLayout(Poincare::Layout layout) { m_subtitleView.setLayout(layout); reloadCell(); layoutSubviews(); }