mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[escher] In text view, fix bug: color all background in background color
Change-Id: I45bab2759cde8d6af51b927750ba16610afc36cd
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
|
||||
namespace Graph {
|
||||
|
||||
FunctionTitleCell::FunctionTitleCell() :
|
||||
FunctionTitleCell::FunctionTitleCell(Orientation orientation) :
|
||||
EvenOddCell(),
|
||||
m_bufferTextView(0.5f, 0.5f)
|
||||
m_bufferTextView(0.5f, 0.5f),
|
||||
m_orientation(orientation)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -23,10 +24,6 @@ void FunctionTitleCell::setColor(KDColor color) {
|
||||
m_bufferTextView.setTextColor(color);
|
||||
}
|
||||
|
||||
void FunctionTitleCell::setOrientation(Orientation orientation) {
|
||||
m_orientation = orientation;
|
||||
}
|
||||
|
||||
int FunctionTitleCell::numberOfSubviews() const {
|
||||
return 1;
|
||||
}
|
||||
@@ -37,7 +34,11 @@ View * FunctionTitleCell::subviewAtIndex(int index) {
|
||||
}
|
||||
|
||||
void FunctionTitleCell::layoutSubviews() {
|
||||
m_bufferTextView.setFrame(bounds());
|
||||
KDRect textFrame(0, k_colorIndicatorThickness, bounds().width(), bounds().height() - k_colorIndicatorThickness);
|
||||
if (m_orientation == Orientation::VerticalIndicator){
|
||||
textFrame = KDRect(k_colorIndicatorThickness, 0, bounds().width() - k_colorIndicatorThickness, bounds().height());
|
||||
}
|
||||
m_bufferTextView.setFrame(textFrame);
|
||||
}
|
||||
|
||||
void FunctionTitleCell::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
|
||||
Reference in New Issue
Block a user