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