MediaPlayer: Playlist window visual fixes
Signed-off-by: Dario Casalinuovo <[email protected]>
This commit is contained in:
committed by
Dario Casalinuovo
parent
b5387eff2b
commit
ecec5d0e7c
@@ -115,6 +115,8 @@ PlaylistWindow::PlaylistWindow(BRect frame, Playlist* playlist,
|
|||||||
|
|
||||||
fTotalDuration = new BStringView(frame, "fDuration", "",
|
fTotalDuration = new BStringView(frame, "fDuration", "",
|
||||||
B_FOLLOW_BOTTOM | B_FOLLOW_LEFT_RIGHT);
|
B_FOLLOW_BOTTOM | B_FOLLOW_LEFT_RIGHT);
|
||||||
|
fTotalDuration->SetAlignment(B_ALIGN_RIGHT);
|
||||||
|
fTotalDuration->SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
||||||
AddChild(fTotalDuration);
|
AddChild(fTotalDuration);
|
||||||
|
|
||||||
_UpdateTotalDuration(0);
|
_UpdateTotalDuration(0);
|
||||||
@@ -470,7 +472,7 @@ PlaylistWindow::_UpdateTotalDuration(bigtime_t duration)
|
|||||||
duration_to_string(duration, buffer, sizeof(buffer));
|
duration_to_string(duration, buffer, sizeof(buffer));
|
||||||
|
|
||||||
BString text;
|
BString text;
|
||||||
text.SetToFormat(B_TRANSLATE("Total duration : %s"), buffer);
|
text.SetToFormat(B_TRANSLATE("Total duration: %s"), buffer);
|
||||||
|
|
||||||
fTotalDuration->SetText(text.String());
|
fTotalDuration->SetText(text.String());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user