From 9aababa520d55e97ee101b2015cf3a313a7711dc Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Fri, 5 Oct 2018 09:10:20 +1000 Subject: [PATCH] StreamRadio: fix background for stations --- .../patches/streamradio-0.0.3_14.patchset | 27 +++++++++++++++++-- .../streamradio/streamradio-0.0.3_14.recipe | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/haiku-apps/streamradio/patches/streamradio-0.0.3_14.patchset b/haiku-apps/streamradio/patches/streamradio-0.0.3_14.patchset index 56a356e20..c8f4e6342 100644 --- a/haiku-apps/streamradio/patches/streamradio-0.0.3_14.patchset +++ b/haiku-apps/streamradio/patches/streamradio-0.0.3_14.patchset @@ -1,4 +1,4 @@ -From acfb54eb6994f3de43e75b304c187cb55fd5efb2 Mon Sep 17 00:00:00 2001 +From fc2ddfbd9a097be2556736607a0f23947eab3cd3 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 27 Aug 2017 18:50:54 +0200 Subject: Rename to "StreamRadio" @@ -4362,5 +4362,28 @@ index 9b20d3a..088d4c5 100644 StationsList::StationsList() : BObjectList() -- -2.7.0 +2.19.0 + + +From dfc07d50eb18c3b2a2fac12fa420f489c35aab13 Mon Sep 17 00:00:00 2001 +From: Alex Hitech +Date: Tue, 2 Oct 2018 13:41:04 +0300 +Subject: Corrected stations' background + + +diff --git a/StationListView.cpp b/StationListView.cpp +index 6e37365..1ed71d9 100644 +--- a/StationListView.cpp ++++ b/StationListView.cpp +@@ -52,7 +52,7 @@ void StationListViewItem::DrawItem(BView* owner, BRect frame, bool complete) { + ownerList->FillRect(frame); + + owner->SetHighColor(ui_color(IsSelected() ? B_MENU_SELECTED_ITEM_TEXT_COLOR : B_MENU_ITEM_TEXT_COLOR)); +- owner->SetLowColor(ui_color(IsSelected() ? B_MENU_SELECTION_BACKGROUND_COLOR : B_MENU_BACKGROUND_COLOR)); ++ owner->SetLowColor(ui_color(IsSelected() ? B_MENU_SELECTION_BACKGROUND_COLOR : ((index % 2) ? B_MENU_BACKGROUND_COLOR : B_DOCUMENT_BACKGROUND_COLOR))); + if (BBitmap* logo = fStation->Logo()) { + BRect target(SLV_INSET, SLV_INSET, SLV_HEIGHT - 2 * SLV_INSET, SLV_HEIGHT - 2 * SLV_INSET); + target.OffsetBy(frame.LeftTop()); +-- +2.19.0 diff --git a/haiku-apps/streamradio/streamradio-0.0.3_14.recipe b/haiku-apps/streamradio/streamradio-0.0.3_14.recipe index 0c85adfad..e0ee72484 100644 --- a/haiku-apps/streamradio/streamradio-0.0.3_14.recipe +++ b/haiku-apps/streamradio/streamradio-0.0.3_14.recipe @@ -4,7 +4,7 @@ streams." HOMEPAGE="https://github.com/fishpond-haiku/Haiku-Radio" COPYRIGHT="2017 Kai Niessen" LICENSE="MIT" -REVISION="1" +REVISION="2" srcGitRev="26f3bbda29da165c849d246038af98e17270249c" SOURCE_URI="https://github.com/fishpond-haiku/Haiku-Radio/archive/$srcGitRev.tar.gz" CHECKSUM_SHA256="05a015706082618e7282db537852aa697b949cb1a34f698733d0b69131938d3b"