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

Issue 2721043002: [NTP::Downloads] Scale up type based icons. (Closed)

Created:
3 years, 9 months ago by vitaliii
Modified:
3 years, 7 months ago
Reviewers:
Theresa, gone, dgn
CC:
chromium-reviews, asanka, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP::Downloads] Scale up type based icons. 1) Add missing 36dp png resources (5 icons, i.e. 25 png's, overall 6790 bytes); 2) Request 36dp resources instead of 24dp and downscale them to 32dp. Reason: UI people request. BUG=693552 Review-Url: https://codereview.chromium.org/2721043002 Cr-Commit-Position: refs/heads/master@{#453999} Committed: https://chromium.googlesource.com/chromium/src/+/fac08957f5011b15190fb2c18fe6c15fe8ed5381

Patch Set 1 : #

Patch Set 2 : clean rebase. #

Total comments: 8

Patch Set 3 : optimized icons + dgn@ & dfalcantara@ comments. #

Total comments: 4

Patch Set 4 : dgn@ comments. #

Patch Set 5 : reset padding before setting the placeholder. #

Total comments: 2

Patch Set 6 : dfalcantara@ comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -20 lines) Patch
A chrome/android/java/res/drawable-hdpi/ic_drive_file_white_36dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/ic_drive_site_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/ic_drive_text_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/ic_image_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/ic_music_note_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/ic_drive_file_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/ic_drive_site_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/ic_drive_text_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/ic_image_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/ic_music_note_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/ic_drive_file_white_36dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/ic_drive_site_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/ic_drive_text_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/ic_image_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/ic_music_note_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/ic_drive_file_white_36dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/ic_drive_site_white_36dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/ic_drive_text_white_36dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/ic_image_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/ic_music_note_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/ic_drive_file_white_36dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/ic_drive_site_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/ic_drive_text_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/ic_image_white_36dp.png View 1 2 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/ic_music_note_white_36dp.png View 1 2 Binary file 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java View 1 2 3 6 chunks +37 lines, -17 lines 2 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemView.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java View 1 2 3 4 5 3 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (21 generated)
vitaliii
Hi dgn@, Could you have a look at ntp/snippets please?
3 years, 9 months ago (2017-02-28 15:22:27 UTC) #3
vitaliii
Hi dfalcantara@
3 years, 9 months ago (2017-02-28 15:22:47 UTC) #6
vitaliii
Hi dfalcantara@
3 years, 9 months ago (2017-02-28 15:22:47 UTC) #7
vitaliii
Hi dfalcantara@, Could you have a look at java/res and browser/download please?
3 years, 9 months ago (2017-02-28 15:23:28 UTC) #9
dgn
Did you try something like https://medium.com/@emmaguy/dynamically-changing-svg-colours-on-android-b026a99137ad#.n555kqp5s? Also, do you have numbers for the APK size ...
3 years, 9 months ago (2017-02-28 17:39:13 UTC) #10
dgn
also tried to get tinting svg inside chromium to work without success. Might try again ...
3 years, 9 months ago (2017-02-28 18:30:17 UTC) #11
gone
1) Have you run tools/resources/optimize-png-files.sh on the assets? 2) I'd prefer having a single asset ...
3 years, 9 months ago (2017-02-28 18:46:25 UTC) #12
vitaliii
Hi dgn@ and dfalcantara@, I addressed your comments. Currently I am waiting for rachelis@ to ...
3 years, 9 months ago (2017-03-01 09:08:30 UTC) #14
vitaliii
Hi folks, I've just talked to rachelis@ and she is fine with the current approach ...
3 years, 9 months ago (2017-03-01 09:46:05 UTC) #17
dgn
On 2017/03/01 09:46:05, vitaliii wrote: > Hi folks, > > I've just talked to rachelis@ ...
3 years, 9 months ago (2017-03-01 10:31:21 UTC) #20
dgn
lgtm if Dan is happy. Also please put the resource size diff in the commit ...
3 years, 9 months ago (2017-03-01 10:57:01 UTC) #21
vitaliii
Hi dgn@, I've addressed your comments. No need to look. https://codereview.chromium.org/2721043002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2721043002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode93 ...
3 years, 9 months ago (2017-03-01 11:24:44 UTC) #25
vitaliii
Hi dgn@, I've addressed your comments. No need to look. https://codereview.chromium.org/2721043002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2721043002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode93 ...
3 years, 9 months ago (2017-03-01 11:24:45 UTC) #26
tschumann
On 2017/03/01 10:31:21, dgn wrote: > On 2017/03/01 09:46:05, vitaliii wrote: > > Hi folks, ...
3 years, 9 months ago (2017-03-01 11:30:28 UTC) #27
vitaliii
I noticed that sometimes the placeholder was set in a padded view, so now I ...
3 years, 9 months ago (2017-03-01 14:08:21 UTC) #30
gone
lgtm for this as is, but I'm pushing back on the bug now that I've ...
3 years, 9 months ago (2017-03-01 18:21:13 UTC) #31
vitaliii
Hi dfalcantara@, I addressed your comment. No need to look. Just in case I will ...
3 years, 9 months ago (2017-03-01 19:01:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2721043002/140001
3 years, 9 months ago (2017-03-01 19:03:09 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:140001) as https://chromium.googlesource.com/chromium/src/+/fac08957f5011b15190fb2c18fe6c15fe8ed5381
3 years, 9 months ago (2017-03-01 19:44:19 UTC) #38
Theresa
https://codereview.chromium.org/2721043002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2721043002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode714 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:714: : R.drawable.ic_drive_text_white_36dp; Is this supposed to be ic_drive_file_white_36dp?
3 years, 7 months ago (2017-05-24 21:57:11 UTC) #41
Theresa
https://codereview.chromium.org/2721043002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2721043002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode714 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:714: : R.drawable.ic_drive_text_white_36dp; Is this supposed to be ic_drive_file_white_36dp?
3 years, 7 months ago (2017-05-24 21:57:11 UTC) #42
vitaliii
3 years, 7 months ago (2017-05-26 09:41:12 UTC) #43
Message was sent while issue was closed.
https://codereview.chromium.org/2721043002/diff/140001/chrome/android/java/sr...
File
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java
(right):

https://codereview.chromium.org/2721043002/diff/140001/chrome/android/java/sr...
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:714:
: R.drawable.ic_drive_text_white_36dp;
On 2017/05/24 21:57:11, Theresa (OOO) wrote:
> Is this supposed to be ic_drive_file_white_36dp?

Yes (copy-paste mistake). Good catch! 

Fix: https://chromium-review.googlesource.com/c/517062/

Powered by Google App Engine
This is Rietveld 408576698