mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
A bit more bold experimentation.
This commit is contained in:
parent
1b7f02d02e
commit
84b2ff5544
@ -111,6 +111,7 @@ int64_t NowPlayingLayout::RowDecorator(musik::core::TrackPtr track, size_t index
|
||||
else {
|
||||
attrs = COLOR_PAIR(CURSESPP_SELECTED_LIST_ITEM);
|
||||
}
|
||||
attrs |= A_BOLD;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -295,6 +295,7 @@ IScrollAdapter::EntryPtr CategoryListView::Adapter::GetEntry(cursespp::Scrollabl
|
||||
else {
|
||||
attrs = COLOR_PAIR(CURSESPP_SELECTED_LIST_ITEM);
|
||||
}
|
||||
attrs |= A_BOLD;
|
||||
}
|
||||
|
||||
value = text::Ellipsize(value, this->GetWidth());
|
||||
|
@ -458,6 +458,7 @@ IScrollAdapter::EntryPtr TrackListView::Adapter::GetEntry(cursespp::ScrollableWi
|
||||
else {
|
||||
attrs = COLOR_PAIR(CURSESPP_SELECTED_LIST_ITEM);
|
||||
}
|
||||
attrs |= A_BOLD;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -413,9 +413,10 @@ void Window::DrawFrameAndTitle() {
|
||||
if (max > 3) { /* 3 = first character plus ellipse (e.g. 'F..')*/
|
||||
std::string adjusted = " " + text::Ellipsize(this->title, (size_t) max - 2) + " ";
|
||||
wmove(this->frame, 0, 2);
|
||||
wattron(this->frame, A_BOLD);
|
||||
bool focused = IsFocused();
|
||||
if (focused) { wattron(this->frame, A_BOLD); }
|
||||
checked_waddstr(this->frame, adjusted.c_str());
|
||||
wattroff(this->frame, A_BOLD);
|
||||
if (focused) { wattroff(this->frame, A_BOLD); }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user