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

Issue 1194743003: Add a new Theme widget to control color and text color of apps (Closed)

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

Description

Add a new Theme widget to control color and text color of apps R=abarth@chromium.org, abarth, hixie Committed: https://chromium.googlesource.com/external/mojo/+/e6b4158dbd2cd8aef7c824c7169c982858c15453

Patch Set 1 #

Patch Set 2 : clean up imports and rebase #

Total comments: 6

Patch Set 3 : support reparenting #

Total comments: 22

Patch Set 4 : hixie cr feedback #

Patch Set 5 : fix test #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -96 lines) Patch
M sky/examples/stocks2/lib/stock_app.dart View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M sky/examples/stocks2/lib/stock_home.dart View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M sky/examples/stocks2/lib/stock_settings.dart View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M sky/examples/widgets/sector.dart View 1 2 3 4 2 chunks +59 lines, -55 lines 0 comments Download
M sky/examples/widgets/styled_text.dart View 1 2 3 4 5 2 chunks +9 lines, -5 lines 0 comments Download
M sky/sdk/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A + sky/sdk/lib/theme/theme_data.dart View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M sky/sdk/lib/theme/typography.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M sky/sdk/lib/widgets/checkbox.dart View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M sky/sdk/lib/widgets/scaffold.dart View 1 2 3 2 chunks +14 lines, -10 lines 0 comments Download
A sky/sdk/lib/widgets/theme.dart View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M sky/sdk/lib/widgets/tool_bar.dart View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M sky/sdk/lib/widgets/widget.dart View 1 2 3 4 5 9 chunks +89 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jackson
5 years, 6 months ago (2015-06-19 01:06:48 UTC) #1
jackson
Question: should we have a default theme for components like checkbox, switch, radio? Or force ...
5 years, 6 months ago (2015-06-19 01:12:40 UTC) #2
abarth-chromium
On 2015/06/19 at 01:12:40, jackson wrote: > Question: should we have a default theme for ...
5 years, 6 months ago (2015-06-19 01:50:09 UTC) #3
abarth-chromium
LGTM https://codereview.chromium.org/1194743003/diff/20001/sky/examples/stocks2/lib/stock_app.dart File sky/examples/stocks2/lib/stock_app.dart (right): https://codereview.chromium.org/1194743003/diff/20001/sky/examples/stocks2/lib/stock_app.dart#newcode55 sky/examples/stocks2/lib/stock_app.dart:55: theme: new ThemeInfo(color: colors.Purple, text: typography.white) sorry to ...
5 years, 6 months ago (2015-06-19 01:50:17 UTC) #4
abarth-chromium
There's actually a bug in this CL. Consider the case where a component moves from ...
5 years, 6 months ago (2015-06-19 01:55:41 UTC) #5
Hixie
Another example would be a build() method that only changes the theme, where the theme's ...
5 years, 6 months ago (2015-06-19 02:23:18 UTC) #6
Hixie
https://codereview.chromium.org/1194743003/diff/20001/sky/sdk/lib/widgets/widget.dart File sky/sdk/lib/widgets/widget.dart (right): https://codereview.chromium.org/1194743003/diff/20001/sky/sdk/lib/widgets/widget.dart#newcode47 sky/sdk/lib/widgets/widget.dart:47: _inherited = null; Why is this logic on Widget ...
5 years, 6 months ago (2015-06-19 02:23:23 UTC) #7
abarth-chromium
On 2015/06/19 at 02:23:18, ianh wrote: > Another example would be a build() method that ...
5 years, 6 months ago (2015-06-19 02:31:41 UTC) #8
jackson
reparenting should work now, I'll do support for inherited text styling in a separate CL. ...
5 years, 6 months ago (2015-06-22 16:52:48 UTC) #9
jackson
https://codereview.chromium.org/1194743003/diff/30001/sky/sdk/lib/widgets/widget.dart File sky/sdk/lib/widgets/widget.dart (right): https://codereview.chromium.org/1194743003/diff/30001/sky/sdk/lib/widgets/widget.dart#newcode385 sky/sdk/lib/widgets/widget.dart:385: void setParent(Widget parent) { I'll add a TODO here ...
5 years, 6 months ago (2015-06-22 16:56:15 UTC) #10
Hixie
https://codereview.chromium.org/1194743003/diff/30001/sky/examples/stocks2/lib/stock_settings.dart File sky/examples/stocks2/lib/stock_settings.dart (right): https://codereview.chromium.org/1194743003/diff/30001/sky/examples/stocks2/lib/stock_settings.dart#newcode34 sky/examples/stocks2/lib/stock_settings.dart:34: center: new Text('Settings', style: Theme.of(this).text.title) shouldn't this be automatic ...
5 years, 6 months ago (2015-06-22 17:06:40 UTC) #11
jackson
https://codereview.chromium.org/1194743003/diff/30001/sky/examples/stocks2/lib/stock_settings.dart File sky/examples/stocks2/lib/stock_settings.dart (right): https://codereview.chromium.org/1194743003/diff/30001/sky/examples/stocks2/lib/stock_settings.dart#newcode34 sky/examples/stocks2/lib/stock_settings.dart:34: center: new Text('Settings', style: Theme.of(this).text.title) On 2015/06/22 17:06:39, Hixie ...
5 years, 6 months ago (2015-06-22 17:45:45 UTC) #12
jackson
5 years, 6 months ago (2015-06-22 19:10:35 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:80001) manually as
e6b4158dbd2cd8aef7c824c7169c982858c15453 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698