mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
21 lines
457 B
C++
21 lines
457 B
C++
#include "hideable_even_odd_editable_text_cell.h"
|
|
|
|
namespace Shared {
|
|
|
|
KDColor HideableEvenOddEditableTextCell::backgroundColor() const {
|
|
if (hidden()) {
|
|
return hideColor();
|
|
}
|
|
return EvenOddEditableTextCell::backgroundColor();
|
|
}
|
|
|
|
void HideableEvenOddEditableTextCell::setHide(bool hide) {
|
|
if (hidden() != hide) {
|
|
Hideable::setHide(hide);
|
|
editableTextCell()->textField()->setBackgroundColor(backgroundColor());
|
|
reloadCell();
|
|
}
|
|
}
|
|
|
|
}
|