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

Side by Side Diff: sky/framework/components/ink_splash.dart

Issue 1065643003: [Effen] Make the material splashes a bit lighter. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import '../animation/animated_value.dart'; 5 import '../animation/animated_value.dart';
6 import '../animation/curves.dart'; 6 import '../animation/curves.dart';
7 import '../animation/generators.dart'; 7 import '../animation/generators.dart';
8 import '../fn.dart'; 8 import '../fn.dart';
9 import '../theme/view-configuration.dart' as config; 9 import '../theme/view-configuration.dart' as config;
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 position: absolute; 92 position: absolute;
93 pointer-events: none; 93 pointer-events: none;
94 overflow: hidden; 94 overflow: hidden;
95 top: 0; 95 top: 0;
96 left: 0; 96 left: 0;
97 bottom: 0; 97 bottom: 0;
98 right: 0;'''); 98 right: 0;''');
99 99
100 static final Style _splashStyle = new Style(''' 100 static final Style _splashStyle = new Style('''
101 position: absolute; 101 position: absolute;
102 background-color: rgba(0, 0, 0, 0.4);'''); 102 background-color: rgba(0, 0, 0, 0.2);''');
103 103
104 Stream<String> onStyleChanged; 104 Stream<String> onStyleChanged;
105 105
106 double _offsetX; 106 double _offsetX;
107 double _offsetY; 107 double _offsetY;
108 String _inlineStyle; 108 String _inlineStyle;
109 109
110 InkSplash(Stream<String> onStyleChanged) 110 InkSplash(Stream<String> onStyleChanged)
111 : onStyleChanged = onStyleChanged, 111 : onStyleChanged = onStyleChanged,
112 super(stateful: true, key: onStyleChanged.hashCode); 112 super(stateful: true, key: onStyleChanged.hashCode);
(...skipping 20 matching lines...) Expand all
133 style: _clipperStyle, 133 style: _clipperStyle,
134 children: [ 134 children: [
135 new Container( 135 new Container(
136 inlineStyle: _inlineStyle, 136 inlineStyle: _inlineStyle,
137 style: _splashStyle 137 style: _splashStyle
138 ) 138 )
139 ] 139 ]
140 ); 140 );
141 } 141 }
142 } 142 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698