Ian Fischer
d44ed7dfc3
Move example out of sky/packages to //examples
2015-08-07 17:04:50 -07:00
Ian Fischer
82404e030a
Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1218593002 .
2015-06-26 15:06:40 -07:00
Hixie
12b21997ca
Let's hide double.INFINITY a bit more, by providing cleaner APIs for the cases where we're currently trying to use it.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1209233002 .
2015-06-25 17:27:43 -07:00
Hixie
a7f7e1e564
Add support for line-height in TextStyle.
...
Also, some minor cleanup in TextStyle to make it more readable.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1203253002 .
2015-06-24 13:25:17 -07:00
Collin Jackson
3616adbab3
Add Material light and dark themes to Sky widgets
...
R=ianh@google.com , hixie
Review URL: https://codereview.chromium.org/1204523002 .
2015-06-22 17:14:27 -07:00
Collin Jackson
6c38fc1b40
Add a new Theme widget to control color and text color of apps
...
R=abarth@chromium.org , abarth, hixie
Review URL: https://codereview.chromium.org/1194743003 .
2015-06-22 12:10:30 -07:00
Hixie
5b594b7c7c
Turn on wavy underlines. The waves aren't very pretty yet (they are too short somehow), I'll fix that in a subsequent CL.
...
I abstracted out the wavy underline code so that it doesn't duplicate the code for horizontal and vertical lines.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1201503003 .
2015-06-19 16:11:18 -07:00
Hans Muller
0dd98719dc
Adds TextStyle decoration, decorationColor, decorationStyle
...
Currently only the decoration property is actually translated to a CSS style.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1174213005 .
2015-06-19 10:30:38 -07:00
Hans Muller
59c4078a09
StyledText is just a convenient way to specify a
...
tree of InlineStyle and InlineText elements.
StyledText builds an Inline that renders the tree.
For example this StyledText object:
new StyledText(["FOO", [boldLargerStyle, [greenStyle "BAR"], "BAZ"] BORF]);
Renders the same way the following HTML would,
assuming that TextStyles boldLargerStyle and
greenStyle were defined.
<style>
div {
display: inline;
}
</style>
<p>
<div>
FOO
<div style="font-weight:bold; font-size:larger">
<div style="color:green">
BAR
</div>
BAZ
</div>
BORF
</div>
</p>
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1194693002 .
2015-06-18 14:35:11 -07:00