Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions packages/material_ui/tool/gen_defaults/data/app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,48 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 36.0.6
// Version: 38.0.15

import 'color_role.dart';
import 'shape_struct.dart';

class TokenAppBar {
/// md.comp.app-bar.on-scroll.container.elevation
static const double onScrollContainerElevation = 3.00;
/// md.comp.app-bar.avatar.size
static const double avatarSize = 32.00;

/// md.comp.app-bar.icon-button-space
static const double iconButtonSpace = 0.00;
/// md.comp.app-bar.container.color
static const TokenColorRole containerColor = TokenColorRole.surface;

/// md.comp.app-bar.container.elevation
static const double containerElevation = 0.00;

/// md.comp.app-bar.container.shape
static const ShapeStruct containerShape = ShapeStruct(
family: 'SHAPE_FAMILY_ROUNDED_CORNERS',
topLeft: 0.00,
topRight: 0.00,
bottomLeft: 0.00,
bottomRight: 0.00,
);

/// md.comp.app-bar.icon-button-space
static const double iconButtonSpace = 0.00;

/// md.comp.app-bar.icon.size
static const double iconSize = 24.00;

/// md.comp.app-bar.leading-icon.color
static const TokenColorRole leadingIconColor = TokenColorRole.onSurface;

/// md.comp.app-bar.leading-space
static const double leadingSpace = 4.00;

/// md.comp.app-bar.on-scroll.container.color
static const TokenColorRole onScrollContainerColor =
TokenColorRole.surfaceContainer;

/// md.comp.app-bar.title.color
static const TokenColorRole titleColor = TokenColorRole.onSurface;
/// md.comp.app-bar.on-scroll.container.elevation
static const double onScrollContainerElevation = 3.00;

/// md.comp.app-bar.search.container.color
static const TokenColorRole searchContainerColor =
Expand All @@ -35,8 +53,8 @@ class TokenAppBar {
static const TokenColorRole searchLabelColor =
TokenColorRole.onSurfaceVariant;

/// md.comp.app-bar.leading-space
static const double leadingSpace = 4.00;
/// md.comp.app-bar.search.leading-space
static const double searchLeadingSpace = 8.00;

/// md.comp.app-bar.search.on-scroll.container.color
static const TokenColorRole searchOnScrollContainerColor =
Expand All @@ -45,34 +63,16 @@ class TokenAppBar {
/// md.comp.app-bar.search.trailing-space
static const double searchTrailingSpace = 8.00;

/// md.comp.app-bar.trailing-space
static const double trailingSpace = 4.00;

/// md.comp.app-bar.container.shape
static const ShapeStruct containerShape = ShapeStruct(
family: 'SHAPE_FAMILY_ROUNDED_CORNERS',
topLeft: 0.00,
topRight: 0.00,
bottomLeft: 0.00,
bottomRight: 0.00,
);

/// md.comp.app-bar.search.leading-space
static const double searchLeadingSpace = 8.00;

/// md.comp.app-bar.leading-icon.color
static const TokenColorRole leadingIconColor = TokenColorRole.onSurface;

/// md.comp.app-bar.container.color
static const TokenColorRole containerColor = TokenColorRole.surface;

/// md.comp.app-bar.avatar.size
static const double avatarSize = 32.00;

/// md.comp.app-bar.subtitle.color
static const TokenColorRole subtitleColor = TokenColorRole.onSurfaceVariant;

/// md.comp.app-bar.title.color
static const TokenColorRole titleColor = TokenColorRole.onSurface;

/// md.comp.app-bar.trailing-icon.color
static const TokenColorRole trailingIconColor =
TokenColorRole.onSurfaceVariant;

/// md.comp.app-bar.trailing-space
static const double trailingSpace = 4.00;
}
24 changes: 10 additions & 14 deletions packages/material_ui/tool/gen_defaults/data/app_bar_large.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 36.0.6
// Version: 38.0.15

import 'typescale_struct.dart';

class TokenAppBarLarge {
/// md.comp.app-bar.large.container.height
static const double containerHeight = 152.00;

/// md.comp.app-bar.large.title.font
static const double titleFontFontSize = 28.00;

/// md.comp.app-bar.large.title.font
static const double titleFontFontWeight = 400;

/// md.comp.app-bar.large.title.font
static const double titleFontLineHeight = 36.00;

/// md.comp.app-bar.large.title.font
static const double titleFontLetterSpacing = 0.00;

/// md.comp.app-bar.large.title.font
static const String titleFontFontFamily = 'Roboto';
static const TypescaleStruct titleFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 28.00,
fontWeight: 400,
lineHeight: 36.00,
letterSpacing: 0.00,
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 36.0.6
// Version: 38.0.15

class TokenAppBarLargeFlexible {
/// md.comp.app-bar.large-flexible.subtitle.font
static const double subtitleFontFontSize = 16.00;

/// md.comp.app-bar.large-flexible.subtitle.font
static const double subtitleFontFontWeight = 500;

/// md.comp.app-bar.large-flexible.subtitle.font
static const double subtitleFontLineHeight = 24.00;

/// md.comp.app-bar.large-flexible.subtitle.font
static const double subtitleFontLetterSpacing = 0.15;

/// md.comp.app-bar.large-flexible.subtitle.font
static const String subtitleFontFontFamily = 'Roboto';
import 'typescale_struct.dart';

class TokenAppBarLargeFlexible {
/// md.comp.app-bar.large-flexible.container.height
static const double containerHeight = 120.00;

/// md.comp.app-bar.large-flexible.title.font
static const double titleFontFontSize = 36.00;

/// md.comp.app-bar.large-flexible.title.font
static const double titleFontFontWeight = 400;

/// md.comp.app-bar.large-flexible.title.font
static const double titleFontLineHeight = 44.00;

/// md.comp.app-bar.large-flexible.title.font
static const double titleFontLetterSpacing = 0.00;
/// md.comp.app-bar.large-flexible.subtitle.font
static const TypescaleStruct subtitleFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 16.00,
fontWeight: 500,
lineHeight: 24.00,
letterSpacing: 0.15,
);

/// md.comp.app-bar.large-flexible.title.font
static const String titleFontFontFamily = 'Roboto';
static const TypescaleStruct titleFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 36.00,
fontWeight: 400,
lineHeight: 44.00,
letterSpacing: 0.00,
);

/// md.comp.app-bar.large-flexible.with-subtitle.container.height
static const double withSubtitleContainerHeight = 152.00;
Expand Down
28 changes: 12 additions & 16 deletions packages/material_ui/tool/gen_defaults/data/app_bar_medium.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 36.0.6
// Version: 38.0.15

class TokenAppBarMedium {
/// md.comp.app-bar.medium.title.font
static const double titleFontFontSize = 24.00;

/// md.comp.app-bar.medium.title.font
static const double titleFontFontWeight = 400;

/// md.comp.app-bar.medium.title.font
static const double titleFontLineHeight = 32.00;

/// md.comp.app-bar.medium.title.font
static const double titleFontLetterSpacing = 0.00;

/// md.comp.app-bar.medium.title.font
static const String titleFontFontFamily = 'Roboto';
import 'typescale_struct.dart';

class TokenAppBarMedium {
/// md.comp.app-bar.medium.container.height
static const double containerHeight = 112.00;

/// md.comp.app-bar.medium.title.font
static const TypescaleStruct titleFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 24.00,
fontWeight: 400,
lineHeight: 32.00,
letterSpacing: 0.00,
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 36.0.6
// Version: 38.0.15

import 'typescale_struct.dart';

class TokenAppBarMediumFlexible {
/// md.comp.app-bar.medium-flexible.container.height
static const double containerHeight = 112.00;

/// md.comp.app-bar.medium-flexible.subtitle.font
static const double subtitleFontFontSize = 14.00;

/// md.comp.app-bar.medium-flexible.subtitle.font
static const double subtitleFontFontWeight = 500;

/// md.comp.app-bar.medium-flexible.subtitle.font
static const double subtitleFontLineHeight = 20.00;

/// md.comp.app-bar.medium-flexible.subtitle.font
static const double subtitleFontLetterSpacing = 0.10;

/// md.comp.app-bar.medium-flexible.subtitle.font
static const String subtitleFontFontFamily = 'Roboto';

/// md.comp.app-bar.medium-flexible.title.font
static const double titleFontFontSize = 28.00;

/// md.comp.app-bar.medium-flexible.title.font
static const double titleFontFontWeight = 400;

/// md.comp.app-bar.medium-flexible.title.font
static const double titleFontLineHeight = 36.00;

/// md.comp.app-bar.medium-flexible.title.font
static const double titleFontLetterSpacing = 0.00;
static const TypescaleStruct subtitleFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 14.00,
fontWeight: 500,
lineHeight: 20.00,
letterSpacing: 0.10,
);

/// md.comp.app-bar.medium-flexible.title.font
static const String titleFontFontFamily = 'Roboto';
static const TypescaleStruct titleFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 28.00,
fontWeight: 400,
lineHeight: 36.00,
letterSpacing: 0.00,
);

/// md.comp.app-bar.medium-flexible.with-subtitle.container.height
static const double withSubtitleContainerHeight = 136.00;
Expand Down
77 changes: 30 additions & 47 deletions packages/material_ui/tool/gen_defaults/data/app_bar_small.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 36.0.6
// Version: 38.0.15

import 'shape_struct.dart';
import 'typescale_struct.dart';

class TokenAppBarSmall {
/// md.comp.app-bar.small.container.height
static const double containerHeight = 64.00;

/// md.comp.app-bar.small.search.container.height
static const double searchContainerHeight = 56.00;

/// md.comp.app-bar.small.search.container.shape
static const ShapeStruct searchContainerShape = ShapeStruct(
family: 'SHAPE_FAMILY_CIRCULAR',
Expand All @@ -16,54 +23,30 @@ class TokenAppBarSmall {
bottomRight: 0.00,
);

/// md.comp.app-bar.small.container.height
static const double containerHeight = 64.00;

/// md.comp.app-bar.small.search.container.height
static const double searchContainerHeight = 56.00;

/// md.comp.app-bar.small.search.label-text.font
static const double searchLabelTextFontFontSize = 16.00;

/// md.comp.app-bar.small.search.label-text.font
static const double searchLabelTextFontFontWeight = 400;

/// md.comp.app-bar.small.search.label-text.font
static const double searchLabelTextFontLineHeight = 24.00;

/// md.comp.app-bar.small.search.label-text.font
static const double searchLabelTextFontLetterSpacing = 0.50;

/// md.comp.app-bar.small.search.label-text.font
static const String searchLabelTextFontFontFamily = 'Roboto';

/// md.comp.app-bar.small.title.font
static const double titleFontFontSize = 22.00;

/// md.comp.app-bar.small.title.font
static const double titleFontFontWeight = 400;

/// md.comp.app-bar.small.title.font
static const double titleFontLineHeight = 28.00;

/// md.comp.app-bar.small.title.font
static const double titleFontLetterSpacing = 0.00;

/// md.comp.app-bar.small.title.font
static const String titleFontFontFamily = 'Roboto';

/// md.comp.app-bar.small.subtitle.font
static const double subtitleFontFontSize = 12.00;

/// md.comp.app-bar.small.subtitle.font
static const double subtitleFontFontWeight = 500;

/// md.comp.app-bar.small.subtitle.font
static const double subtitleFontLineHeight = 16.00;
static const TypescaleStruct searchLabelTextFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 16.00,
fontWeight: 400,
lineHeight: 24.00,
letterSpacing: 0.50,
);

/// md.comp.app-bar.small.subtitle.font
static const double subtitleFontLetterSpacing = 0.50;
static const TypescaleStruct subtitleFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 12.00,
fontWeight: 500,
lineHeight: 16.00,
letterSpacing: 0.50,
);

/// md.comp.app-bar.small.subtitle.font
static const String subtitleFontFontFamily = 'Roboto';
/// md.comp.app-bar.small.title.font
static const TypescaleStruct titleFont = TypescaleStruct(
fontFamily: 'Roboto',
fontSize: 22.00,
fontWeight: 400,
lineHeight: 28.00,
letterSpacing: 0.00,
);
}
Loading