mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher/scroll_view] Remove setColorsBackground
Introduced in commit37da7b95ato avoid screen tearing. Not necessary anymore since commit0e9092d2e.
This commit is contained in:
committed by
EmilieNumworks
parent
538d5cce64
commit
fd654d1c79
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user