Commit graph

620 commits

Author SHA1 Message Date
Adam Barth c20659024e Merge pull request #308 from abarth/rm_dart_pkg
Remove DEPS-managed Dart packages
2015-07-27 17:07:54 -07:00
Adam Barth be52cb8690 Improve init.dart not to assume dart is in your PATH
Instead, use Platform.executable, which is the path to the current `dart`
executable.
2015-07-27 16:56:18 -07:00
Adam Barth 30648059aa Remove DEPS-managed Dart packages
We now use `pub` to manage Dart packages.
2015-07-27 16:54:30 -07:00
Viktor Lidholt 09cfb05908 Merge pull request #300 from vlidholt/master
Optimizations for Particle Systems
2015-07-27 15:42:50 -07:00
Viktor Lidholt 59b0e328e7 Refactors randomizations of color sequences and optimizes particle systems (uses single Paint instance, doesn't compute accelerations unless used, reduces number of created objects, faster color calculations)
Fixes indentation
Optimizes lookup in fast version of atan2 (toInt is faster than floor)
Removes frame rate printout and adds assert
2015-07-27 15:41:08 -07:00
Adam Barth 6d717593bd Pull a newer mojo_services
This patch picks up a new url_loader.mojom interface that is needed to access
the network in production.
2015-07-27 14:04:37 -07:00
Adam Barth ff1f08333f Merge pull request #297 from abarth/network_nits
Cleanups to network service
2015-07-27 14:04:08 -07:00
Adam Barth b9e74071d8 Cleanups to network service
This patch contains some minor improvements to the network service:

- We now cache the connection to the network service so we don't need to spin
  it up for each request.
- We now manage the lifetime of NetworkServiceImpl in the same way as other
  services.

Also, update the workbench sky_tools dependency to the latest version.
2015-07-27 13:50:42 -07:00
Adam Barth 7cf81c81ce Merge pull request #294 from abarth/big_red_button
Teach big_red_button how to publish sky, sky_engine, sky_services
2015-07-27 12:22:18 -07:00
Adam Barth b96512ccef Teach big_red_button how to publish sky, sky_engine, sky_services
This CL makess big_red_button.py work for the sky, sky_engine, sky_services
packages.
2015-07-27 12:21:33 -07:00
Hans Muller 65caad4703 Enable fling scrolling in TabBar 2015-07-27 11:13:37 -07:00
Adam Barth 2c09a98299 Update Sky package version
We need to pull in an updated version of sky_tools to get a version that
doesn't try to gzip everything.
2015-07-27 10:07:41 -07:00
Adam Barth 378b9c2ff5 Merge pull request #292 from abarth/fix_sky_tools
Fix sky_tool's installing of SkyShell.apk
2015-07-27 10:06:53 -07:00
Adam Barth c420d2c3f4 Fix sky_tool's installing of SkyShell.apk
We were walking over to the realdir too quickly, which meant we lost which
version of the sky_engine package we were supposed to use.
2015-07-27 10:05:16 -07:00
Adam Barth ef600e145e Update README.md 2015-07-27 09:47:29 -07:00
Adam Barth 623bc3efd6 Rev Sky package 2015-07-27 09:13:01 -07:00
Hixie 60177a71ab Scoped focus, so you can have a dialog with input controls and not lose your focus in the background.
This introduces a GlobalKey registry so that you can tell when a key
has gone away (so you can unfocus dead dialogs).

Also I added an assert that you're not calling setState() during a
build. It turns out that doing so means you have a bug, because since
you're dirty already (you're building), you won't get rebuilt.

The focus code itself is gnarly. It uses a Component and an internal
Inherited TagNode to manage the focus state, and does crazy things
like updating its state during build to pretend retroactively that it
was built with some other state, once someone asks for focus the first
time (i.e. the first time it's examined, so you can't tell that it was
in a different state before). It does this so that it can autofocus
controls which otherwise wouldn't be focused.

This moves all the focus management into Navigator and showDialog(),
so the complexity is all buried deep and not visible to apps,
hopefully.

To do something like two tabs that each have an Input widget that
needs to be focused when you switch panes, you'd need to have two
Focus objects, one in each tab, and you need to set their autofocus to
true (maybe that should be the default?).
2015-07-24 18:18:04 -07:00
Hixie f13f8894e4 Fix review feedback from previous checkin.
@abarth doesn't like Futures that explicitly point out they're type-unsafe. :-P
2015-07-24 18:08:04 -07:00
Hixie 1b7aa1153e Fix the lerp the RIGHT way. 2015-07-24 18:05:14 -07:00
Ian Hickson 4f9f5656c7 Merge pull request #281 from Hixie/buttons
Fix the crash for buttons.
2015-07-24 17:55:13 -07:00
Hixie be5545cf28 Fix the crash for buttons.
Turns out there was a typo in lerpColor.

Fixes #277.
2015-07-24 17:44:20 -07:00
Hixie df7fdb5b12 pushDialog(navigator, (navigator) => new Dialog(...)).then((result) => process(result)); 2015-07-24 17:40:41 -07:00
Collin Jackson 82f5f14b98 Move dialog into its own class 2015-07-24 15:16:40 -07:00
Ian Hickson 051655fa6d Merge pull request #278 from Hixie/nav-dialogs
Use the navigator to stack dialogs.
2015-07-24 15:02:20 -07:00
Hixie db63850e42 Fix test breakage (stocks test imports stocks app differently than a recent checkin expected). 2015-07-24 14:54:56 -07:00
Hixie ac6342ab8a Use the navigator to stack dialogs.
This removes the need to manually include the dialog builder in the main window's build() function.
It also removes the need to track if a dialog is visible.

Other changes:
- I made dialog.dart a bit more readable.
- I renamed transitionFinished to fullyOpaque since that's what actually matters.
- I made Routes track if they're opaque. Eventually this should probably be more configurable when creating the route.

Directions for Future Research:
- Use this for focus management somehow.
- The popup menu should use something like this.
- We should factor the following out into a showDialog() function that returns a future for the dialog's exit result:
    navigator.push(new DialogRoute(builder: (navigator, route) { ... }));
- Maybe navigator.pop() should take a value to return to that Future.
2015-07-24 14:33:09 -07:00
Adam Barth c6fe01eda3 Merge pull request #274 from jimsimon/examples-as-libraries
Examples as libraries
2015-07-24 14:23:39 -07:00
Viktor Lidholt 80f8435916 Merge pull request #273 from vlidholt/master
Optimizations for Particle Systems
2015-07-24 13:04:34 -07:00
Viktor Lidholt 45399c7a53 Fixes formatting and abstraction in GameMath 2015-07-24 12:59:08 -07:00
Adam Barth 544e19d48c Merge pull request #265 from abarth/workbench
Create //sky/packages/workbench
2015-07-24 12:50:51 -07:00
Viktor Lidholt ab2b791866 Optimizes ColorSequence 2015-07-24 12:39:02 -07:00
Jim Simon 3089686eeb Converted examples to libraries
Converted demo launcher example to library

Converted fitness example to library

Converted hello world example to library

Converted mine digger example to library

Converted stocks example to library
2015-07-24 12:27:27 -07:00
Viktor Lidholt 2e2331ab5e Merge branch 'master' of github.com:domokit/sky_engine
Conflicts:
	sky/sdk/example/game/lib/particle_system.dart
2015-07-24 12:17:18 -07:00
Viktor Lidholt 53c66a5f4c Optimizations to particle systems. Uses single instance of Random and faster atan2 function. 2015-07-24 12:14:22 -07:00
Eric Seidel 4f8de2ee82 Merge pull request #271 from eseidelGoogle/draw_atlas
Use Skia's drawAtlas now that we've rolled to a newer Skia
2015-07-24 11:27:15 -07:00
Hans Muller 9ac347da62 Dismissable animation simplifications; added backgrounds to CardCollection cards 2015-07-24 11:15:37 -07:00
Eric Seidel 7a1e3bb389 Use Skia's drawAtlas now that we've rolled to a newer Skia
Roll was ff8bbe4e1674ae57f2ea3a2841a37a9c099beac8
This is another step in fixing #138

R=viktork@google.com
2015-07-24 11:11:30 -07:00
Collin Jackson 9f6fc78ceb Fix the new item dialog for fitness app 2015-07-24 10:27:16 -07:00
Adam Barth a3b44a566c Create //sky/packages/workbench
The workbench package exists to pull in pub packages from both pub.dartlang.org
and from the source tree (using dependency overrides). The idea is that
workbench will reflect a typical Sky developer's environment so that we can use
the same tools as a typical sky developer by running them with the workbench as
the cwd.
2015-07-23 22:20:07 -07:00
Adam Barth cb8e1b58cb Add back some DEPS
Turns out if we don't have these deps, nothing builds these packages.
2015-07-23 19:07:20 -07:00
Adam Barth edd9ddccb4 Remove the magic from the Sky package
We now just symlink the lib directory into the packages directory in the output
directory.
2015-07-23 16:52:32 -07:00
Adam Barth 40913d0363 Add sky_services pub package
This package contains the mojom.dart files we generate from the sky_engine
repository.
2015-07-23 15:51:37 -07:00
Adam Barth e2db025317 Merge pull request #250 from abarth/material_package
Move Material Design Icons to their own package
2015-07-23 14:57:52 -07:00
Adam Barth 1892149897 Move Material Design Icons to their own package
After this patch, we use pub to manage versioning and fetching the material
design icons.
2015-07-23 14:54:59 -07:00
Viktor Lidholt 2bccb1890d Merge pull request #249 from vlidholt/master
Adds test case for drawAtlas in games
2015-07-23 14:44:37 -07:00
Viktor Lidholt f3e51d9f05 Adds test case for drawAtlas in games 2015-07-23 14:39:39 -07:00
Ian Hickson 9ac6830770 Merge pull request #244 from Hixie/focus
Add a dialog to the address book app to test scoped focus.
2015-07-23 14:19:42 -07:00
Adam Barth 1570b17237 Merge pull request #245 from abarth/sky_engine_package
Add a sky_engine package to contain the dart:sky SDK extensions
2015-07-23 14:18:05 -07:00
Adam Barth dfce6c7191 Add a sky_engine package to contain the dart:sky SDK extensions 2015-07-23 14:17:35 -07:00
Hixie 2694d67551 Add a dialog to the address book app to test scoped focus. 2015-07-23 14:06:12 -07:00