Ensure Input and List overlay titles are centered like the other

overlays.
This commit is contained in:
casey langen 2018-01-06 15:08:23 -08:00
parent cbd2d3f4d2
commit 2e66777ba0
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ void InputOverlay::Redraw() {
if (this->title.size()) {
wmove(c, 0, 1);
wattron(c, A_BOLD);
checked_wprintw(c, text::Ellipsize(this->title, this->width - 4).c_str());
checked_wprintw(c, text::Align(this->title, text::AlignCenter, this->width - 4).c_str());
wattroff(c, A_BOLD);
}
}

View File

@ -230,7 +230,7 @@ void ListOverlay::Redraw() {
if (this->title.size()) {
wmove(c, currentY, currentX);
wattron(c, A_BOLD);
checked_wprintw(c, text::Ellipsize(this->title, this->width - 4).c_str());
checked_wprintw(c, text::Align(this->title, text::AlignCenter, this->width - 4).c_str());
wattroff(c, A_BOLD);
currentY += 2;
}