Skip to content
Open
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
79 changes: 79 additions & 0 deletions packages/material_ui/tool/gen_defaults/data/app_bar.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 38.2.31

// dart format off
import 'color_role.dart';
import 'shape_struct.dart';

class TokenAppBar {
/// md.comp.app-bar.avatar.size
static const double avatarSize = 32.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.on-scroll.container.elevation
static const double onScrollContainerElevation = 3.00;

/// md.comp.app-bar.search.container.color
static const TokenColorRole searchContainerColor =
TokenColorRole.surfaceContainer;

/// md.comp.app-bar.search.label.color
static const TokenColorRole searchLabelColor =
TokenColorRole.onSurfaceVariant;

/// 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 =
TokenColorRole.surfaceContainerHighest;

/// md.comp.app-bar.search.trailing-space
static const double searchTrailingSpace = 8.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;
}
17 changes: 17 additions & 0 deletions packages/material_ui/tool/gen_defaults/data/app_bar_large.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 38.2.31

// dart format off
import 'typescale.dart';
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 TypescaleStruct titleFont = TokenTypescale.headlineMedium;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 38.2.31

// dart format off
import 'typescale.dart';
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.subtitle.font
static const TypescaleStruct subtitleFont = TokenTypescale.titleMedium;

/// md.comp.app-bar.large-flexible.title.font
static const TypescaleStruct titleFont = TokenTypescale.displaySmall;

/// md.comp.app-bar.large-flexible.with-subtitle.container.height
static const double withSubtitleContainerHeight = 152.00;
}
17 changes: 17 additions & 0 deletions packages/material_ui/tool/gen_defaults/data/app_bar_medium.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 38.2.31

// dart format off
import 'typescale.dart';
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 = TokenTypescale.headlineSmall;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 38.2.31

// dart format off
import 'typescale.dart';
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 TypescaleStruct subtitleFont = TokenTypescale.labelLarge;

/// md.comp.app-bar.medium-flexible.title.font
static const TypescaleStruct titleFont = TokenTypescale.headlineMedium;

/// md.comp.app-bar.medium-flexible.with-subtitle.container.height
static const double withSubtitleContainerHeight = 136.00;
}
36 changes: 36 additions & 0 deletions packages/material_ui/tool/gen_defaults/data/app_bar_small.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 38.2.31

// dart format off
import 'shape_struct.dart';
import 'typescale.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',
topLeft: 0.00,
topRight: 0.00,
bottomLeft: 0.00,
bottomRight: 0.00,
);

/// md.comp.app-bar.small.search.label-text.font
static const TypescaleStruct searchLabelTextFont = TokenTypescale.bodyLarge;

/// md.comp.app-bar.small.subtitle.font
static const TypescaleStruct subtitleFont = TokenTypescale.labelMedium;

/// md.comp.app-bar.small.title.font
static const TypescaleStruct titleFont = TokenTypescale.titleLarge;
}
159 changes: 159 additions & 0 deletions packages/material_ui/tool/gen_defaults/data/assist_chip.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
// Copyright 2013 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Version: 38.2.31

// dart format off
import 'color_role.dart';
import 'shape_struct.dart';
import 'typescale.dart';
import 'typescale_struct.dart';

class TokenAssistChip {
/// md.comp.assist-chip.container.height
static const double containerHeight = 32.00;

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

/// md.comp.assist-chip.disabled.label-text.color
static const TokenColorRole disabledLabelTextColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.disabled.label-text.opacity
static const double disabledLabelTextOpacity = 0.38;

/// md.comp.assist-chip.dragged.container.elevation
static const double draggedContainerElevation = 8.00;

/// md.comp.assist-chip.dragged.label-text.color
static const TokenColorRole draggedLabelTextColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.dragged.state-layer.color
static const TokenColorRole draggedStateLayerColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.dragged.state-layer.opacity
static const double draggedStateLayerOpacity = 0.16;

/// md.comp.assist-chip.elevated.container.color
static const TokenColorRole elevatedContainerColor =
TokenColorRole.surfaceContainerLow;

/// md.comp.assist-chip.elevated.container.elevation
static const double elevatedContainerElevation = 1.00;

/// md.comp.assist-chip.elevated.container.shadow-color
static const TokenColorRole elevatedContainerShadowColor =
TokenColorRole.shadow;

/// md.comp.assist-chip.elevated.disabled.container.color
static const TokenColorRole elevatedDisabledContainerColor =
TokenColorRole.onSurface;

/// md.comp.assist-chip.elevated.disabled.container.elevation
static const double elevatedDisabledContainerElevation = 0.00;

/// md.comp.assist-chip.elevated.disabled.container.opacity
static const double elevatedDisabledContainerOpacity = 0.12;

/// md.comp.assist-chip.elevated.focus.container.elevation
static const double elevatedFocusContainerElevation = 1.00;

/// md.comp.assist-chip.elevated.hover.container.elevation
static const double elevatedHoverContainerElevation = 3.00;

/// md.comp.assist-chip.elevated.pressed.container.elevation
static const double elevatedPressedContainerElevation = 1.00;

/// md.comp.assist-chip.flat.container.elevation
static const double flatContainerElevation = 0.00;

/// md.comp.assist-chip.flat.disabled.outline.color
static const TokenColorRole flatDisabledOutlineColor =
TokenColorRole.onSurface;

/// md.comp.assist-chip.flat.disabled.outline.opacity
static const double flatDisabledOutlineOpacity = 0.12;

/// md.comp.assist-chip.flat.focus.outline.color
static const TokenColorRole flatFocusOutlineColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.flat.outline.color
static const TokenColorRole flatOutlineColor = TokenColorRole.outlineVariant;

/// md.comp.assist-chip.flat.outline.width
static const double flatOutlineWidth = 1.00;

/// md.comp.assist-chip.focus.indicator.color
static const TokenColorRole focusIndicatorColor = TokenColorRole.secondary;

/// md.comp.assist-chip.focus.indicator.outline.offset
static const double focusIndicatorOutlineOffset = 2.00;

/// md.comp.assist-chip.focus.indicator.thickness
static const double focusIndicatorThickness = 3.00;

/// md.comp.assist-chip.focus.label-text.color
static const TokenColorRole focusLabelTextColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.focus.state-layer.color
static const TokenColorRole focusStateLayerColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.focus.state-layer.opacity
static const double focusStateLayerOpacity = 0.10;

/// md.comp.assist-chip.hover.label-text.color
static const TokenColorRole hoverLabelTextColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.hover.state-layer.color
static const TokenColorRole hoverStateLayerColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.hover.state-layer.opacity
static const double hoverStateLayerOpacity = 0.08;

/// md.comp.assist-chip.label-text.color
static const TokenColorRole labelTextColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.label-text.type
static const TypescaleStruct labelTextType = TokenTypescale.labelLarge;

/// md.comp.assist-chip.pressed.label-text.color
static const TokenColorRole pressedLabelTextColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.pressed.state-layer.color
static const TokenColorRole pressedStateLayerColor = TokenColorRole.onSurface;

/// md.comp.assist-chip.pressed.state-layer.opacity
static const double pressedStateLayerOpacity = 0.10;

/// md.comp.assist-chip.with-icon.disabled.icon.color
static const TokenColorRole withIconDisabledIconColor =
TokenColorRole.onSurface;

/// md.comp.assist-chip.with-icon.disabled.icon.opacity
static const double withIconDisabledIconOpacity = 0.38;

/// md.comp.assist-chip.with-icon.dragged.icon.color
static const TokenColorRole withIconDraggedIconColor = TokenColorRole.primary;

/// md.comp.assist-chip.with-icon.focus.icon.color
static const TokenColorRole withIconFocusIconColor = TokenColorRole.primary;

/// md.comp.assist-chip.with-icon.hover.icon.color
static const TokenColorRole withIconHoverIconColor = TokenColorRole.primary;

/// md.comp.assist-chip.with-icon.icon.color
static const TokenColorRole withIconIconColor = TokenColorRole.primary;

/// md.comp.assist-chip.with-icon.icon.size
static const double withIconIconSize = 18.00;

/// md.comp.assist-chip.with-icon.pressed.icon.color
static const TokenColorRole withIconPressedIconColor = TokenColorRole.primary;
}
Loading
Loading