使用预设颜色,避免随机生成的奇怪颜色

This commit is contained in:
seven332 committed 2014-07-24 23:06:11 +08:00
1 parent ba7f1a5aed
commit ff2ed3205d
9 files changed
+70 -64

No files matched your search

@@ -273,7 +273,7 @@ public class FavouriteActivity extends AbstractGalleryActivity
});
// Set random color
int color = Config.getRandomThemeColor() ? Theme.getRandomDeepColor() : Config.getThemeColor();
int color = Config.getRandomThemeColor() ? Theme.getRandomDarkColor() : Config.getThemeColor();
color = color & 0x00ffffff | 0xdd000000;
Drawable drawable = new ColorDrawable(color);
actionBar.setBackgroundDrawable(drawable);