mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Ensure Input and List overlay titles are centered like the other
overlays.
This commit is contained in:
parent
cbd2d3f4d2
commit
2e66777ba0
@ -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);
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user