mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[apps/sequence/list] Improve cell rendering
Change-Id: I64e713a3beae2574593f96fa05717f346e5ffd07
This commit is contained in:
@@ -39,13 +39,16 @@ View * FunctionExpressionCell::subviewAtIndex(int index) {
|
||||
}
|
||||
|
||||
void FunctionExpressionCell::layoutSubviews() {
|
||||
KDRect expressionFrame(k_separatorThickness, 0, bounds().width() - k_separatorThickness, bounds().height());
|
||||
KDRect expressionFrame(k_separatorThickness, 0, bounds().width() - k_separatorThickness, bounds().height()-k_separatorThickness);
|
||||
m_expressionView.setFrame(expressionFrame);
|
||||
}
|
||||
|
||||
void FunctionExpressionCell::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
// Color the separator
|
||||
KDColor separatorColor = m_even ? Palette::WallScreen : KDColorWhite;
|
||||
// Color the vertical separator
|
||||
ctx->fillRect(KDRect(0, 0, k_separatorThickness, bounds().height()), Palette::GreyBright);
|
||||
// Color the horizontal separator
|
||||
ctx->fillRect(KDRect(k_separatorThickness, bounds().height()-k_separatorThickness, bounds().width()-k_separatorThickness, k_separatorThickness), separatorColor);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user