Allow Effen Styles to be extendable
R=abarth@chromium.org Review URL: https://codereview.chromium.org/1006053002
This commit is contained in:
parent
51db28b81b
commit
4c2f2486cf
@ -74,11 +74,11 @@ class StockArrow extends Component {
|
|||||||
|
|
||||||
return new Container(
|
return new Container(
|
||||||
inlineStyle: 'border-color: $border',
|
inlineStyle: 'border-color: $border',
|
||||||
styles: [_style],
|
style: _style,
|
||||||
children: [
|
children: [
|
||||||
new Container(
|
new Container(
|
||||||
inlineStyle: 'border-$type-color: $border',
|
inlineStyle: 'border-$type-color: $border',
|
||||||
styles: [up ? _upStyle : _downStyle]
|
style: up ? _upStyle : _downStyle
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
@ -47,23 +47,23 @@ class StockRow extends Component {
|
|||||||
),
|
),
|
||||||
new Container(
|
new Container(
|
||||||
key: 'Ticker',
|
key: 'Ticker',
|
||||||
styles: [_tickerStyle],
|
style: _tickerStyle,
|
||||||
children: [new Text(stock.symbol)]
|
children: [new Text(stock.symbol)]
|
||||||
),
|
),
|
||||||
new Container(
|
new Container(
|
||||||
key: 'LastSale',
|
key: 'LastSale',
|
||||||
styles: [_lastSaleStyle],
|
style: _lastSaleStyle,
|
||||||
children: [new Text(lastSale)]
|
children: [new Text(lastSale)]
|
||||||
),
|
),
|
||||||
new Container(
|
new Container(
|
||||||
key: 'Change',
|
key: 'Change',
|
||||||
styles: [_changeStyle],
|
style: _changeStyle,
|
||||||
children: [new Text(changeInPrice)]
|
children: [new Text(changeInPrice)]
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
return new Material(
|
return new Material(
|
||||||
styles: [_style],
|
style: _style,
|
||||||
children: children
|
children: children
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -105,19 +105,19 @@ class StocksApp extends App {
|
|||||||
|
|
||||||
var toolbar = new Toolbar(
|
var toolbar = new Toolbar(
|
||||||
children: [
|
children: [
|
||||||
new Icon(key: 'menu', styles: [_iconStyle],
|
new Icon(key: 'menu', style: _iconStyle,
|
||||||
size: 24,
|
size: 24,
|
||||||
type: 'navigation/menu_white')
|
type: 'navigation/menu_white')
|
||||||
..events.listen('click', _drawerAnimation.toggle),
|
..events.listen('click', _drawerAnimation.toggle),
|
||||||
new Container(
|
new Container(
|
||||||
styles: [_titleStyle],
|
style: _titleStyle,
|
||||||
children: [title]
|
children: [title]
|
||||||
),
|
),
|
||||||
new Icon(key: 'search', styles: [_iconStyle],
|
new Icon(key: 'search', style: _iconStyle,
|
||||||
size: 24,
|
size: 24,
|
||||||
type: 'action/search_white')
|
type: 'action/search_white')
|
||||||
..events.listen('click', _handleSearchClick),
|
..events.listen('click', _handleSearchClick),
|
||||||
new Icon(key: 'more_white', styles: [_iconStyle],
|
new Icon(key: 'more_white', style: _iconStyle,
|
||||||
size: 24,
|
size: 24,
|
||||||
type: 'navigation/more_vert_white')
|
type: 'navigation/more_vert_white')
|
||||||
]
|
]
|
||||||
@ -133,7 +133,7 @@ class StocksApp extends App {
|
|||||||
children: [
|
children: [
|
||||||
new Container(
|
new Container(
|
||||||
key: 'Content',
|
key: 'Content',
|
||||||
styles: [_style],
|
style: _style,
|
||||||
children: [toolbar, list]
|
children: [toolbar, list]
|
||||||
),
|
),
|
||||||
fab,
|
fab,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user