[escher/scroll_view] Remove setColorsBackground

Introduced in commit 37da7b95a to avoid screen tearing.
Not necessary anymore since commit 0e9092d2e.
This commit is contained in:
Ruben Dashyan
2019-02-08 14:01:19 +01:00
committed by EmilieNumworks
parent 538d5cce64
commit fd654d1c79
6 changed files with 1 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ Controller::ContentView::ContentView(Controller * controller, SelectableTableVie
{
m_selectableTableView.setVerticalCellOverlap(0);
m_selectableTableView.setMargins(0, k_sideMargin, k_bottomMargin, k_sideMargin);
m_selectableTableView.setColorsBackground(false);
m_selectableTableView.setBackgroundColor(KDColorWhite);
static_cast<ScrollView::BarDecorator *>(m_selectableTableView.decorator())->setBarsFrameBreadth(k_scrollBarsFrameBreadth);
static_cast<ScrollView::BarDecorator *>(m_selectableTableView.decorator())->verticalBar()->setMargin(k_indicatorMargin);
}

View File

@@ -23,7 +23,6 @@ CalculationTypeController::CalculationTypeController(Responder * parentResponder
m_selectableTableView.setMargins(0);
m_selectableTableView.setVerticalCellOverlap(0);
m_selectableTableView.setDecoratorType(ScrollView::Decorator::Type::None);
m_selectableTableView.setColorsBackground(false);
}
View * CalculationTypeController::view() {

View File

@@ -73,8 +73,6 @@ public:
Decorator * decorator();
void setDecoratorType(Decorator::Type t) { m_decoratorType = t; }
void setColorsBackground(bool c) { m_colorsBackground = c; }
bool colorsBackground() const { return m_colorsBackground; }
virtual void setBackgroundColor(KDColor c) { m_backgroundColor = c; }
KDColor backgroundColor() const { return m_backgroundColor; }
@@ -112,7 +110,6 @@ private:
Decorator m_decorator;
BarDecorator m_barDecorator;
ArrowDecorator m_arrowDecorator;
bool m_colorsBackground;
KDColor m_backgroundColor;
};

View File

@@ -13,11 +13,9 @@ ExpressionField::ExpressionField(Responder * parentResponder, char * textBuffer,
// Initialize text field
m_textField.setMargins(0, k_horizontalMargin, 0, k_horizontalMargin);
m_textField.setBackgroundColor(KDColorWhite);
m_textField.setColorsBackground(true);
// Initialize layout field
m_layoutField.setMargins(k_verticalMargin, k_horizontalMargin, k_verticalMargin, k_horizontalMargin);
m_layoutField.setBackgroundColor(KDColorWhite);
m_layoutField.setColorsBackground(true);
}
void ExpressionField::setEditing(bool isEditing, bool reinitDraftBuffer) {

View File

@@ -18,7 +18,6 @@ ScrollView::ScrollView(View * contentView, ScrollViewDataSource * dataSource) :
m_decorator(),
m_barDecorator(),
m_arrowDecorator(),
m_colorsBackground(true),
m_backgroundColor(Palette::WallScreen)
{
assert(m_dataSource != nullptr);
@@ -44,9 +43,6 @@ ScrollView::Decorator * ScrollView::decorator() {
}
void ScrollView::drawRect(KDContext * ctx, KDRect rect) const {
if (!m_colorsBackground) {
return;
}
KDCoordinate height = bounds().height();
KDCoordinate width = bounds().width();
KDCoordinate offsetX = contentOffset().x();

View File

@@ -8,7 +8,6 @@ ScrollableView::ScrollableView(Responder * parentResponder, View * view, ScrollV
m_manualScrollingOffset(KDPointZero)
{
setDecoratorType(ScrollView::Decorator::Type::None);
setColorsBackground(false);
}
bool ScrollableView::handleEvent(Ion::Events::Event event) {