#ifndef METRICSINFO_H
#define METRICSINFO_H
+#include "ColorCode.h"
#include "FontInfo.h"
#include "support/docstring.h"
#include <string>
///
bool full_repaint;
///
- int background_color;
+ ColorCode background_color;
};
class TextMetricsInfo {};
// (if paragraph background was not cleared)
if (row_selection || (!pi.full_repaint && row_has_changed)) {
pi.pain.fillRectangle(x, y - rit->ascent(),
- width(), rit->height(),
- ColorCode(ColorCode(pi.background_color)));
+ width(), rit->height(), pi.background_color);
}
if (row_selection) {
DocIterator beg = bv_->cursor().selectionBegin();
void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
{
autoOpen_ = pi.base.bv->cursor().isInside(this);
- int const old_color = pi.background_color;
+ ColorCode old_color = pi.background_color;
pi.background_color = backgroundColor();
// Draw button first -- top, left or only