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

Unified Diff: sky/framework/sky-toolbar.sky

Issue 953903004: Factor sky-toolbar into a componet and use a proper material shadow (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« sky/examples/stocks/stocks.sky ('K') | « sky/examples/stocks/stocks.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/sky-toolbar.sky
diff --git a/sky/framework/sky-toolbar.sky b/sky/framework/sky-toolbar.sky
new file mode 100644
index 0000000000000000000000000000000000000000..494295bf01b30432a008be9ca89141bad9f1811d
--- /dev/null
+++ b/sky/framework/sky-toolbar.sky
@@ -0,0 +1,32 @@
+<!--
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+-->
+<import src="shadow.sky" as="shadow" />
+<import src="sky-element.sky" />
+
+<sky-element attributes="level:number">
+<template>
+ <style>
+ :host {
+ display: flex;
+ align-items: center;
+ height: 56px;
+ }
+ </style>
+ <content />
+</template>
+<script>
+import "dart:sky";
+
+@Tagname('sky-toolbar')
+class SkyToolbar extends SkyElement {
+ void shadowRootReady() {
+ shadow.applyTo(shadowRoot);
+ }
+}
+
+_init(script) => register(script, SkyToolbar);
+</script>
+</sky-element>
« sky/examples/stocks/stocks.sky ('K') | « sky/examples/stocks/stocks.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698