Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Unified Diff: ui/app_list/app_list_constants.cc

Issue 2949733002: Show Play Store rating and price in app list (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/app_list/app_list_constants.cc
diff --git a/ui/app_list/app_list_constants.cc b/ui/app_list/app_list_constants.cc
index af767db26732e93e70d5e9ee4751a0d780c50ac9..e9c0be2c6052d892875f1df64616a4705c1ec56a 100644
--- a/ui/app_list/app_list_constants.cc
+++ b/ui/app_list/app_list_constants.cc
@@ -49,6 +49,10 @@ const float kFolderBubbleOffsetY = 1;
const SkColor kCardBackgroundColor = SK_ColorWHITE;
+// Colors of the text of app's price and rating.
+const SkColor kAppPriceColor = SkColorSetRGB(0x0F, 0x9D, 0x58);
+const SkColor kAppRatingColor = SkColorSetA(SK_ColorBLACK, 143); // 56% black.
+
// Duration in milliseconds for page transition.
const int kPageTransitionDurationInMs = 180;
@@ -138,6 +142,10 @@ const char kSearchQueryLength[] = "Apps.AppListSearchQueryLength";
const char kSearchResultDistanceFromOrigin[] =
"Apps.AppListSearchResultDistanceFromOrigin";
+// Fonts of the text of app's price and rating.
+const char kAppPriceFontList[] = "Arial, Roboto-Regular, 12px";
+const char kAppRatingFontList[] = "Arial, Roboto-Regular, 12px";
+
gfx::ShadowValue GetShadowForZHeight(int z_height) {
if (z_height <= 0)
return gfx::ShadowValue();

Powered by Google App Engine
This is Rietveld 408576698