Unified
Split
Showing
with
3 additions
and 25 deletions.
- +2 −2 sources-experimental/SubscriptionColumn.cpp
- +0 −15 sources-experimental/SubscriptionListItem.cpp
- +1 −8 sources-experimental/SubscriptionListView.cpp
| @@ -115,7 +115,7 @@ SubscriptionColumn::DrawBigField(SubscriptionField* field, BRect rect, BView* pa | ||
|
|
||
| rect.left += 45.0; //55.0; | ||
|
|
||
| float width = rect.Width() - (2 * kTEXT_MARGIN); | ||
| float width = rect.Width() - (2 * kTEXT_MARGIN); | ||
|
|
||
| if (width != field->Width()) | ||
| { | ||
| @@ -136,7 +136,7 @@ SubscriptionColumn::DrawBigField(SubscriptionField* field, BRect rect, BView* pa | ||
| //debug: parent->StrokeRect(rect); | ||
| rect.top = rect.bottom; | ||
| rect.bottom = rect.top + hei; //19; //19 | ||
| parent->SetHighColor(0,0,0); //(125,125,125) | ||
| //parent->SetHighColor(0,0,0); //(125,125,125) | ||
|
|
||
| DrawString("", parent, rect); | ||
| //debug: parent->StrokeRect(rect); | ||
| @@ -120,18 +120,3 @@ SubscriptionListItem::~SubscriptionListItem(){ | ||
| //nothing to do here? | ||
| } | ||
|
|
||
|
|
||
| /* TODO deprecated | ||
| void | ||
| SubscriptionListItem::DrawBackground(BRect _rect, | ||
| BView* parent, | ||
| bool _is_selected, | ||
| bool _is_focus ){ | ||
| BRow::DrawBackground(_rect,parent,_is_selected,_is_focus); | ||
| if(isNew) { | ||
| parent->SetHighColor(0,0,0); | ||
| parent->FillRoundRect(BRect(_rect.left + 6, _rect.top + 6,_rect.left + 9,_rect.top + 9),1,1); | ||
| } | ||
| } | ||
| */ | ||
| @@ -25,14 +25,7 @@ BColumnListView(r,"SubscriptionListView",B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW|B_FRAM | ||
| AddColumn(podcast,0); | ||
| SetColumnFlags(B_ALLOW_COLUMN_RESIZE ); | ||
| SetSelectionMode(B_SINGLE_SELECTION_LIST); | ||
| const rgb_color x = {238,185,0,255}; //244,203,63 244,190,23 | ||
| SetColor(B_COLOR_SELECTION,x);//! | ||
|
|
||
| SetColor(B_COLOR_BACKGROUND,White); | ||
|
|
||
| SetColor(B_COLOR_ROW_DIVIDER,BeBackgroundGrey); | ||
|
|
||
|
|
||
|
|
||
| CurrentSelection(0); | ||
|
|
||
| BMessage* selected=new BMessage(CHANNEL_SELECTED); | ||