HaikuDepot: Layout and labeling tweaks
* Swap rating and version in title view so it matches the order in the Ratings tab (rating XX for version YY). * Give a chance to decorate the version in translations. * Drop the parenthesis around version in Ratings tab.
This commit is contained in:
parent
b939c39167
commit
b928a72b88
@ -394,13 +394,13 @@ public:
|
|||||||
.Add(fPublisherView)
|
.Add(fPublisherView)
|
||||||
.End()
|
.End()
|
||||||
.AddGlue(0.1f)
|
.AddGlue(0.1f)
|
||||||
.Add(fVersionInfo)
|
|
||||||
.AddGlue(0.2f)
|
|
||||||
.AddGroup(B_HORIZONTAL, B_USE_SMALL_SPACING)
|
.AddGroup(B_HORIZONTAL, B_USE_SMALL_SPACING)
|
||||||
.Add(fRatingView)
|
.Add(fRatingView)
|
||||||
.Add(fAvgRating)
|
.Add(fAvgRating)
|
||||||
.Add(fVoteInfo)
|
.Add(fVoteInfo)
|
||||||
.End()
|
.End()
|
||||||
|
.AddGlue(0.2f)
|
||||||
|
.Add(fVersionInfo)
|
||||||
.AddGlue(3.0f)
|
.AddGlue(3.0f)
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -424,7 +424,9 @@ public:
|
|||||||
publisher.ReplaceAll("%Publisher%", package.Publisher().Name());
|
publisher.ReplaceAll("%Publisher%", package.Publisher().Name());
|
||||||
fPublisherView->SetText(publisher);
|
fPublisherView->SetText(publisher);
|
||||||
|
|
||||||
fVersionInfo->SetText(package.Version());
|
BString version = B_TRANSLATE("%Version%");
|
||||||
|
version.ReplaceAll("%Version%", package.Version());
|
||||||
|
fVersionInfo->SetText(version);
|
||||||
|
|
||||||
RatingSummary ratingSummary = package.CalculateRatingSummary();
|
RatingSummary ratingSummary = package.CalculateRatingSummary();
|
||||||
|
|
||||||
@ -722,7 +724,7 @@ public:
|
|||||||
ratingLabel.SetToFormat("%.1f", rating.Rating());
|
ratingLabel.SetToFormat("%.1f", rating.Rating());
|
||||||
fRatingLabelView = new BStringView("rating label", ratingLabel);
|
fRatingLabelView = new BStringView("rating label", ratingLabel);
|
||||||
|
|
||||||
BString versionLabel(B_TRANSLATE("(for %Version%)"));
|
BString versionLabel(B_TRANSLATE("for %Version%"));
|
||||||
versionLabel.ReplaceAll("%Version%", rating.PackageVersion());
|
versionLabel.ReplaceAll("%Version%", rating.PackageVersion());
|
||||||
fPackageVersionView = new BStringView("package version",
|
fPackageVersionView = new BStringView("package version",
|
||||||
versionLabel);
|
versionLabel);
|
||||||
|
Loading…
Reference in New Issue
Block a user