/third_party/flutter/flutter/packages/flutter/lib/src/material/ |
D | theme.dart | 15 /// The duration over which theme changes animate by default. 18 /// Applies a theme to descendant widgets. 20 /// A theme describes the colors and typographic choices of an application. 22 /// Descendant widgets obtain the current theme's [ThemeData] object using 23 /// [Theme.of]. When a widget uses [Theme.of], it is automatically rebuilt if 24 /// the theme later changes, so that the changes can be applied. 26 /// The [Theme] widget implies an [IconTheme] widget, set to the value of the 27 /// [ThemeData.iconTheme] of the [data] for the [Theme]. 31 /// * [ThemeData], which describes the actual configuration of a theme. 33 /// than changing the theme all at once. [all …]
|
D | app.dart | 17 import 'theme.dart'; 37 /// Describes which theme will be used by [MaterialApp]. 39 /// Use either the light or dark theme based on what the user has selected in 125 /// This example shows how to create a [MaterialApp] that defines a [theme] that 128 /// , 178 this.theme, 253 /// control which theme will be used if a [darkTheme] is provided. 259 /// * [themeMode], which controls which theme to use. [all …]
|
D | text_theme.dart | 10 /// Material design text theme. 16 /// To obtain the current text theme, call [Theme.of] with the current 75 /// To configure a [Theme] for the new sizes, weights, and letter spacings, 94 /// * [Theme], for other aspects of a material design application that can be 99 /// Creates a text theme that uses the given values. 101 /// Rather than creating a new text theme, consider using [Typography.black] 107 /// If you do decide to create your own text theme, consider using one of 172 /// Creates a copy of this text theme but with the given fields replaced with 182 /// /// A Widget that sets the ambient theme's title text color for its 183 /// /// descendants, while leaving other ambient theme attributes alone. [all …]
|
/third_party/flutter/flutter/packages/flutter/test/material/ |
D | theme_test.dart | 22 testWidgets('PopupMenu inherits app theme', (WidgetTester tester) async { 26 theme: ThemeData(brightness: Brightness.dark), 47 expect(Theme.of(tester.element(find.text('menuItem'))).brightness, equals(Brightness.dark)); 50 testWidgets('Fallback theme', (WidgetTester tester) async { 61 …expect(Theme.of(capturedContext), equals(ThemeData.localize(ThemeData.fallback(), defaultGeometryT… 62 expect(Theme.of(capturedContext, shadowThemeOnly: true), isNull); 81 // Different base theme, different output. 88 testWidgets('PopupMenu inherits shadowed app theme', (WidgetTester tester) async { 93 theme: ThemeData(brightness: Brightness.dark), 94 home: Theme( [all …]
|
D | text_theme_test.dart | 88 final TextTheme theme = typography.black.apply( 97 expect(theme.display4.color, displayColor); 98 expect(theme.display3.color, displayColor); 99 expect(theme.display2.color, displayColor); 100 expect(theme.display1.color, displayColor); 101 expect(theme.caption.color, displayColor); 102 expect(theme.headline.color, bodyColor); 103 expect(theme.title.color, bodyColor); 104 expect(theme.subhead.color, bodyColor); 105 expect(theme.body2.color, bodyColor); [all …]
|
D | button_theme_test.dart | 12 const ButtonThemeData theme = ButtonThemeData(); 13 expect(theme.textTheme, ButtonTextTheme.normal); 14 expect(theme.constraints, const BoxConstraints(minWidth: 88.0, minHeight: 36.0)); 15 expect(theme.padding, const EdgeInsets.symmetric(horizontal: 16.0)); 16 expect(theme.shape, const RoundedRectangleBorder( 19 expect(theme.alignedDropdown, false); 20 expect(theme.layoutBehavior, ButtonBarLayoutBehavior.padded); 24 const ButtonThemeData theme = ButtonThemeData( 32 expect(theme.textTheme, ButtonTextTheme.primary); 33 expect(theme.constraints, const BoxConstraints(minWidth: 100.0, minHeight: 200.0)); [all …]
|
D | dialog_theme_test.dart | 9 MaterialApp _appWithAlertDialog(WidgetTester tester, AlertDialog dialog, { ThemeData theme }) { 11 theme: theme, 45 testWidgets('Dialog Theme implements debugFillProperties', (WidgetTester tester) async { 71 final ThemeData theme = ThemeData(dialogTheme: const DialogTheme(backgroundColor: customColor)); 73 await tester.pumpWidget(_appWithAlertDialog(tester, dialog, theme: theme)); 87 final ThemeData theme = ThemeData(dialogTheme: const DialogTheme(elevation: customElevation)); 90 _appWithAlertDialog(tester, dialog, theme: theme) 106 final ThemeData theme = ThemeData(dialogTheme: const DialogTheme(shape: customBorder)); 109 _appWithAlertDialog(tester, dialog, theme: theme) 125 final ThemeData theme = ThemeData(dialogTheme: const DialogTheme(shape: customBorder)); [all …]
|
D | theme_data_test.dart | 9 test('Theme data control test', () { 25 final ThemeData theme = ThemeData(platform: platform); 27 expect(theme.textTheme, typography.black.apply(decoration: TextDecoration.none), 32 test('Default text theme contrasts with brightness', () { 41 test('Default primary text theme contrasts with primary brightness', () { 50 test('Default accent text theme contrasts with accent brightness', () { 69 test('Default icon theme contrasts with brightness', () { 78 test('Default primary icon theme contrasts with primary brightness', () { 87 test('Default accent icon theme contrasts with accent brightness', () { 142 final ThemeData theme = ThemeData.from(colorScheme: lightColors); [all …]
|
D | bottom_app_bar_theme_test.dart | 10 testWidgets('BAB theme overrides color', (WidgetTester tester) async { 12 const BottomAppBarTheme theme = BottomAppBarTheme(color: themedColor); 14 await tester.pumpWidget(_withTheme(theme)); 24 const BottomAppBarTheme theme = BottomAppBarTheme(color: babThemeColor); 27 theme: ThemeData(bottomAppBarTheme: theme, bottomAppBarColor: themeColor), 38 const BottomAppBarTheme theme = BottomAppBarTheme(color: babThemeColor); 41 theme: ThemeData(bottomAppBarTheme: theme, bottomAppBarColor: themeColor), 49 testWidgets('BAB color - Theme', (WidgetTester tester) async { 53 theme: ThemeData(bottomAppBarColor: themeColor), 63 theme: ThemeData(), [all …]
|
D | theme_defaults_test.dart | 15 testWidgets('theme: ThemeData.light(), enabled: true', (WidgetTester tester) async { 18 theme: ThemeData.light(), 43 testWidgets('theme: ThemeData.light(), enabled: false', (WidgetTester tester) async { 46 theme: ThemeData.light(), 73 testWidgets('theme: ThemeData.light(), enabled: true', (WidgetTester tester) async { 76 theme: ThemeData.light(), 101 testWidgets('theme: ThemeData.light(), enabled: false', (WidgetTester tester) async { 104 theme: ThemeData.light(), 131 …testWidgets('theme: ThemeData.light(), enabled: true, highlightElevation: 2.0', (WidgetTester test… 134 theme: ThemeData.light(), [all …]
|
D | toggle_buttons_theme_test.dart | 41 const ToggleButtonsTheme theme = ToggleButtonsTheme(data: ToggleButtonsThemeData()); 42 expect(theme.data.color, null); 43 expect(theme.data.selectedColor, null); 44 expect(theme.data.disabledColor, null); 45 expect(theme.data.fillColor, null); 46 expect(theme.data.focusColor, null); 47 expect(theme.data.highlightColor, null); 48 expect(theme.data.hoverColor, null); 49 expect(theme.data.splashColor, null); 50 expect(theme.data.borderColor, null); [all …]
|
D | toggle_buttons_test.dart | 22 final ThemeData theme = ThemeData(); 43 theme.colorScheme.onSurface.withOpacity(0.87), 48 expect(textStyleTwo.style.color, theme.colorScheme.primary); 55 final ThemeData theme = ThemeData(); 89 theme.colorScheme.onSurface.withOpacity(0.87), 94 expect(textStyleTwo.style.color, theme.colorScheme.primary); 106 theme.colorScheme.onSurface.withOpacity(0.87), 113 theme.colorScheme.onSurface.withOpacity(0.87), 122 final ThemeData theme = ThemeData(); 148 theme.colorScheme.onSurface.withOpacity(0.38), [all …]
|
/third_party/flutter/flutter/packages/flutter/test/cupertino/ |
D | theme_test.dart | 23 Future<CupertinoThemeData> testTheme(WidgetTester tester, CupertinoThemeData theme) async { 26 data: theme, 33 Future<IconThemeData> testIconTheme(WidgetTester tester, CupertinoThemeData theme) async { 36 data: theme, 49 testWidgets('Default theme has defaults', (WidgetTester tester) async { 50 final CupertinoThemeData theme = await testTheme(tester, const CupertinoThemeData()); 52 expect(theme.brightness, Brightness.light); 53 expect(theme.primaryColor, CupertinoColors.activeBlue); 54 expect(theme.textTheme.textStyle.fontSize, 17.0); 57 testWidgets('Theme attributes cascade', (WidgetTester tester) async { [all …]
|
/third_party/node/deps/npm/node_modules/gauge/ |
D | README.md | 72 * **themes**: A themeset to use when selecting the theme to use. Defaults 74 * **theme**: Select a theme for use, it can be a: 75 * Theme object, in which case the **themes** is not used. 76 * The name of a theme, which will be looked up in the current *themes* 80 a default theme selection. 82 If no theme is selected then a default is picked using a combination of our 154 Change the themeset to select a theme from. The same as the `themes` option 155 used in the constructor. The theme will be reselected from this themeset. 157 #### `gauge.setTheme(theme)` 159 Change the active theme, will be displayed with the next show or pulse. This can be: [all …]
|
D | index.js | 50 this._theme = options.theme 51 var theme = this._computeTheme(options.theme) 60 this._gauge = new PlumbingClass(theme, template, this.getWidth()) 85 Gauge.prototype._computeTheme = function (theme) { argument 86 if (!theme) theme = {} 87 if (typeof theme === 'string') { 88 theme = this._themes.getTheme(theme) 89 …} else if (theme && (Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor… 90 var useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode 91 var useColor = theme.hasColor == null ? hasColor : theme.hasColor [all …]
|
D | theme-set.js | 10 ThemeSetProto.baseTheme = require('./base-theme.js') 12 ThemeSetProto.newTheme = function (parent, theme) { argument 13 if (!theme) { 14 theme = parent 17 return objectAssign({}, parent, theme) 24 ThemeSetProto.addTheme = function (name, parent, theme) { argument 25 this.themes[name] = this.newTheme(parent, theme) 28 ThemeSetProto.addToAllThemes = function (theme) { argument 31 objectAssign(themes[name], theme) 33 objectAssign(this.baseTheme, theme) [all …]
|
D | plumbing.js | 6 var Plumbing = module.exports = function (theme, template, width) { 8 validate('OAN', [theme, template, width]) 10 this.theme = theme 16 Plumbing.prototype.setTheme = function (theme) { argument 17 validate('O', [theme]) 18 this.theme = theme 40 var values = Object.create(this.theme)
|
/third_party/icu/docs/ |
D | Gemfile.lock | 51 jekyll-remote-theme (= 0.4.1) 56 jekyll-theme-architect (= 0.1.1) 57 jekyll-theme-cayman (= 0.1.1) 58 jekyll-theme-dinky (= 0.1.1) 59 jekyll-theme-hacker (= 0.1.1) 60 jekyll-theme-leap-day (= 0.1.1) 61 jekyll-theme-merlot (= 0.1.1) 62 jekyll-theme-midnight (= 0.1.1) 63 jekyll-theme-minimal (= 0.1.1) 64 jekyll-theme-modernist (= 0.1.1) [all …]
|
/third_party/flutter/flutter/examples/flutter_gallery/test/ |
D | accessibility_test.dart | 487 final ThemeData theme = themes[themeIndex]; 493 await tester.pumpWidget(MaterialApp(theme: theme, home: BackdropDemo())); 501 await tester.pumpWidget(MaterialApp(theme: theme, home: BottomAppBarDemo())); 504 }, skip: theme == ThemeData.light()); 509 await tester.pumpWidget(MaterialApp(theme: theme, home: BottomNavigationDemo())); 517 await tester.pumpWidget(MaterialApp(theme: theme, home: ButtonsDemo())); 525 await tester.pumpWidget(MaterialApp(theme: theme, home: CardsDemo())); 533 await tester.pumpWidget(MaterialApp(theme: theme, home: ChipDemo())); 541 await tester.pumpWidget(MaterialApp(theme: theme, home: DataTableDemo())); 549 await tester.pumpWidget(MaterialApp(theme: theme, home: DateAndTimePickerDemo())); [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/directfb/ |
D | SDL_DirectFB_WM.c | 90 if (windata->theme.font != NULL) in LoadFont() 96 fdesc.height = windata->theme.font_size; in LoadFont() 98 dfb->CreateFont(devdata->dfb, windata->theme.font, in LoadFont() 119 DFB_Theme *t = &windata->theme; in DirectFB_WM_RedrawLayout() 191 *cw -= windata->theme.left_size + windata->theme.right_size; in DirectFB_WM_GetClientSize() 193 windata->theme.top_size + windata->theme.caption_size + in DirectFB_WM_GetClientSize() 194 windata->theme.bottom_size; in DirectFB_WM_GetClientSize() 204 windata->theme = theme_none; in DirectFB_WM_AdjustWindowLayout() 207 windata->theme = theme_none; in DirectFB_WM_AdjustWindowLayout() 209 windata->theme = theme_none; in DirectFB_WM_AdjustWindowLayout() [all …]
|
/third_party/python/Lib/tkinter/test/test_ttk/ |
D | test_style.py | 111 for theme in self.style.theme_names(): 112 if theme != curr_theme: 113 new_theme = theme 114 self.style.theme_use(theme) 117 # just one theme available, can't go on with tests 131 for theme in self.style.theme_names(): 132 self.style.theme_use(theme) 137 with self.subTest(theme=theme, name=name): 139 print('configure', theme, name, default) 140 if (theme in ('vista', 'xpnative') [all …]
|
/third_party/flutter/flutter/packages/flutter/lib/src/cupertino/ |
D | theme.dart | 18 /// Applies a visual styling theme to descendant Cupertino widgets. 32 /// * [CupertinoThemeData], specifies the theme's visual styling. 34 /// * [Theme], a Material theme which will automatically add a [CupertinoTheme] 48 /// The [CupertinoThemeData] styling for this theme. 57 return inheritedTheme?.theme?.data ?? const CupertinoThemeData(); 68 theme: this, 80 @required this.theme, 82 }) : assert(theme != null), 85 final CupertinoTheme theme; 88 bool updateShouldNotify(_InheritedCupertinoTheme old) => theme.data != old.theme.data; [all …]
|
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/material/ |
D | full_screen_dialog_demo.dart | 32 final ThemeData theme = Theme.of(context); 35 style: theme.textTheme.subhead, 42 border: Border(bottom: BorderSide(color: theme.dividerColor)) 71 border: Border(bottom: BorderSide(color: theme.dividerColor)) 117 final ThemeData theme = Theme.of(context); 118 …final TextStyle dialogTextStyle = theme.textTheme.subhead.copyWith(color: theme.textTheme.caption.… 149 final ThemeData theme = Theme.of(context); 156 child: Text('SAVE', style: theme.textTheme.body1.copyWith(color: Colors.white)), 177 style: theme.textTheme.headline, 207 Text('From', style: theme.textTheme.caption), [all …]
|
/third_party/vk-gl-cts/android/openglcts/ |
D | AndroidManifest.xml | 10 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 23 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 38 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 53 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 68 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 83 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 98 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
/third_party/node/deps/npm/node_modules/colors/lib/ |
D | extendStringPrototype.js | 53 function applyTheme(theme) { argument 68 Object.keys(theme).forEach(function(prop) { 74 if (typeof(theme[prop]) === 'string') { 75 colors[prop] = colors[theme[prop]]; 82 for (var t = 0; t < theme[prop].length; t++) { 83 ret = colors[theme[prop][t]](ret); 96 colors.setTheme = function(theme) { argument 97 if (typeof theme === 'string') { 99 'If you are trying to set a theme from a file, it is now your (the ' + 107 applyTheme(theme);
|