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

Issue 1216133002: Theme Input, style EditableText, restore text input cursor (Closed)

Created:
5 years, 5 months ago by hansmuller1
Modified:
5 years, 5 months ago
CC:
gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Theme Input, style EditableText, restore text input cursor The Input component conforms a little more closely to the Material spec: http://www.google.com/design/spec/components/text-fields.html#text-fields-single-line-text-field Added a TextStyle attribute to EditableText and "themed" the text style for Input. Restored the blinking EditableText input cursor. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/43c3cc3d7a89ed896f33b72e23ce6895e1338fcd

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Updated per review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -25 lines) Patch
M sky/sdk/lib/editing/editable_text.dart View 1 3 chunks +49 lines, -14 lines 0 comments Download
M sky/sdk/lib/editing/input.dart View 3 chunks +21 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
hansmuller
PTAL
5 years, 5 months ago (2015-06-29 23:27:41 UTC) #5
abarth-chromium
LGTM w/ comments below https://codereview.chromium.org/1216133002/diff/40001/sky/sdk/lib/editing/editable_text.dart File sky/sdk/lib/editing/editable_text.dart (right): https://codereview.chromium.org/1216133002/diff/40001/sky/sdk/lib/editing/editable_text.dart#newcode73 sky/sdk/lib/editing/editable_text.dart:73: canvas.drawRect(cursorRect, new Paint()..color = cursorColor); ...
5 years, 5 months ago (2015-06-29 23:33:08 UTC) #6
hansmuller
https://codereview.chromium.org/1216133002/diff/40001/sky/sdk/lib/editing/editable_text.dart File sky/sdk/lib/editing/editable_text.dart (right): https://codereview.chromium.org/1216133002/diff/40001/sky/sdk/lib/editing/editable_text.dart#newcode73 sky/sdk/lib/editing/editable_text.dart:73: canvas.drawRect(cursorRect, new Paint()..color = cursorColor); On 2015/06/29 23:33:08, abarth ...
5 years, 5 months ago (2015-06-29 23:56:34 UTC) #7
hansmuller1
Committed patchset #2 (id:60001) manually as 43c3cc3d7a89ed896f33b72e23ce6895e1338fcd (presubmit successful).
5 years, 5 months ago (2015-06-30 00:00:42 UTC) #8
abarth-chromium
5 years, 5 months ago (2015-06-30 02:01:06 UTC) #9
Message was sent while issue was closed.
On 2015/06/29 at 23:56:34, hansmuller wrote:
>
https://codereview.chromium.org/1216133002/diff/40001/sky/sdk/lib/editing/edi...
> File sky/sdk/lib/editing/editable_text.dart (right):
> 
>
https://codereview.chromium.org/1216133002/diff/40001/sky/sdk/lib/editing/edi...
> sky/sdk/lib/editing/editable_text.dart:73: canvas.drawRect(cursorRect, new
Paint()..color = cursorColor);
> On 2015/06/29 23:33:08, abarth wrote:
> > Interesting that you're drawing outside the bounds here.
> 
> The cursor extends _kCursorHeightOffset above and below the line.
> 
> The Material spec doesn't define this value (as far as I can tell) but that's
what the screenshots looked like to me.

Yeah, that make sense.  We've just been on the lookout for use cases for drawing
outside your bounds.  Shadows is another one.

Powered by Google App Engine
This is Rietveld 408576698