A bit more bold experimentation.

This commit is contained in:
casey langen 2018-07-14 16:05:23 -07:00
parent 1b7f02d02e
commit 84b2ff5544
4 changed files with 6 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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());

View File

@ -458,6 +458,7 @@ IScrollAdapter::EntryPtr TrackListView::Adapter::GetEntry(cursespp::ScrollableWi
else {
attrs = COLOR_PAIR(CURSESPP_SELECTED_LIST_ITEM);
}
attrs |= A_BOLD;
}
}

View File

@ -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); }
}
}