mirror of
https://github.com/clangen/musikcube.git
synced 2025-04-10 21:44:30 +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()) {
|
if (this->title.size()) {
|
||||||
wmove(c, 0, 1);
|
wmove(c, 0, 1);
|
||||||
wattron(c, A_BOLD);
|
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);
|
wattroff(c, A_BOLD);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -230,7 +230,7 @@ void ListOverlay::Redraw() {
|
|||||||
if (this->title.size()) {
|
if (this->title.size()) {
|
||||||
wmove(c, currentY, currentX);
|
wmove(c, currentY, currentX);
|
||||||
wattron(c, A_BOLD);
|
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);
|
wattroff(c, A_BOLD);
|
||||||
currentY += 2;
|
currentY += 2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user