StreamRadio: fix background for stations

This commit is contained in:
Gerasim Troeglazov
2018-10-05 09:10:20 +10:00
parent f537e6cb6e
commit 9aababa520
2 changed files with 26 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
From acfb54eb6994f3de43e75b304c187cb55fd5efb2 Mon Sep 17 00:00:00 2001
From fc2ddfbd9a097be2556736607a0f23947eab3cd3 Mon Sep 17 00:00:00 2001
From: Humdinger <humdingerb@gmail.com>
Date: Sun, 27 Aug 2017 18:50:54 +0200
Subject: Rename to "StreamRadio"
@@ -4362,5 +4362,28 @@ index 9b20d3a..088d4c5 100644
StationsList::StationsList()
: BObjectList<Station>()
--
2.7.0
2.19.0
From dfc07d50eb18c3b2a2fac12fa420f489c35aab13 Mon Sep 17 00:00:00 2001
From: Alex Hitech <ahitech@gmail.com>
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

View File

@@ -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"