From 84b2ff554488c15f46aa8e6283f218ac03b136a3 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 14 Jul 2018 16:05:23 -0700 Subject: [PATCH] A bit more bold experimentation. --- src/musikcube/app/layout/NowPlayingLayout.cpp | 1 + src/musikcube/app/window/CategoryListView.cpp | 1 + src/musikcube/app/window/TrackListView.cpp | 1 + src/musikcube/cursespp/Window.cpp | 5 +++-- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/musikcube/app/layout/NowPlayingLayout.cpp b/src/musikcube/app/layout/NowPlayingLayout.cpp index a17b2f361..4b91507b1 100755 --- a/src/musikcube/app/layout/NowPlayingLayout.cpp +++ b/src/musikcube/app/layout/NowPlayingLayout.cpp @@ -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; } } diff --git a/src/musikcube/app/window/CategoryListView.cpp b/src/musikcube/app/window/CategoryListView.cpp index 6043eb68a..c488c6156 100755 --- a/src/musikcube/app/window/CategoryListView.cpp +++ b/src/musikcube/app/window/CategoryListView.cpp @@ -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()); diff --git a/src/musikcube/app/window/TrackListView.cpp b/src/musikcube/app/window/TrackListView.cpp index b5d158b64..0da2555cb 100755 --- a/src/musikcube/app/window/TrackListView.cpp +++ b/src/musikcube/app/window/TrackListView.cpp @@ -458,6 +458,7 @@ IScrollAdapter::EntryPtr TrackListView::Adapter::GetEntry(cursespp::ScrollableWi else { attrs = COLOR_PAIR(CURSESPP_SELECTED_LIST_ITEM); } + attrs |= A_BOLD; } } diff --git a/src/musikcube/cursespp/Window.cpp b/src/musikcube/cursespp/Window.cpp index e2fb2caee..4cefffabd 100755 --- a/src/musikcube/cursespp/Window.cpp +++ b/src/musikcube/cursespp/Window.cpp @@ -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); } } }