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

Issue 1948223006: Set article spacing in dp, not px. (Closed)

Created:
4 years, 7 months ago by PEConn
Modified:
4 years, 7 months ago
CC:
chromium-reviews, mcwilliams+watch_chromium.org, dgn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set article spacing in dp, not px. The article separator is now explicitly drawn as a rectangle of the given colour (previously the effect was achieved by increasing the distance between items as the separator was the background colour). BUG=607805 Committed: https://crrev.com/413fff1d0206229797cad8eba00d24911d580715 Cr-Commit-Position: refs/heads/master@{#392326}

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -12 lines) Patch
A + chrome/android/java/res/drawable/snippet_separator.xml View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/android/java/res/values/colors.xml View 1 1 chunk +1 line, -0 lines 2 comments Download
M chrome/android/java/res/values/dimens.xml View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java View 1 2 3 1 chunk +51 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
PEConn
I've prepared this in-case UI decide to use dp for article separation.
4 years, 7 months ago (2016-05-06 16:25:56 UTC) #3
Bernhard Bauer
LGTM
4 years, 7 months ago (2016-05-06 17:03:39 UTC) #4
PEConn
PTAL, some of the logic has changed.
4 years, 7 months ago (2016-05-09 11:13:49 UTC) #6
Bernhard Bauer
lgtm https://codereview.chromium.org/1948223006/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java (right): https://codereview.chromium.org/1948223006/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java#newcode34 chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java:34: * Add space between items to show the ...
4 years, 7 months ago (2016-05-09 11:21:56 UTC) #7
May
https://codereview.chromium.org/1948223006/diff/20001/chrome/android/java/res/values/dimens.xml File chrome/android/java/res/values/dimens.xml (right): https://codereview.chromium.org/1948223006/diff/20001/chrome/android/java/res/values/dimens.xml#newcode318 chrome/android/java/res/values/dimens.xml:318: <dimen name="payments_section_largest_spacing">32dp</dimen> Why is this here? Bad merge? https://codereview.chromium.org/1948223006/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java ...
4 years, 7 months ago (2016-05-09 11:47:53 UTC) #8
PEConn
I moved the graphic part into a drawable (Rietveld is going a bit funny showing ...
4 years, 7 months ago (2016-05-09 13:33:39 UTC) #9
May
lgtm
4 years, 7 months ago (2016-05-09 15:01:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948223006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948223006/40001
4 years, 7 months ago (2016-05-09 15:04:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948223006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948223006/60001
4 years, 7 months ago (2016-05-09 15:24:04 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-09 16:04:22 UTC) #19
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/413fff1d0206229797cad8eba00d24911d580715 Cr-Commit-Position: refs/heads/master@{#392326}
4 years, 7 months ago (2016-05-09 16:06:02 UTC) #21
mcwilliams
https://codereview.chromium.org/1948223006/diff/60001/chrome/android/java/res/values/colors.xml File chrome/android/java/res/values/colors.xml (right): https://codereview.chromium.org/1948223006/diff/60001/chrome/android/java/res/values/colors.xml#newcode111 chrome/android/java/res/values/colors.xml:111: <color name="snippets_separator">#19000000</color> Is this a valid hex color? They ...
4 years, 7 months ago (2016-05-10 11:00:13 UTC) #22
Bernhard Bauer
4 years, 7 months ago (2016-05-10 13:08:04 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/1948223006/diff/60001/chrome/android/java/res...
File chrome/android/java/res/values/colors.xml (right):

https://codereview.chromium.org/1948223006/diff/60001/chrome/android/java/res...
chrome/android/java/res/values/colors.xml:111: <color
name="snippets_separator">#19000000</color>
On 2016/05/10 11:00:13, mcwilliams wrote:
> Is this a valid hex color? They are normally only 6 characters long

Yes, it's ARGB (see http://goo.gl/YEMhFL).

Powered by Google App Engine
This is Rietveld 408576698