[go: nahoru, domu]

blob: 35282dc26949926425cf06cdd2fd455996d7af24 [file] [log] [blame]
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.wear.tiles.material;
import static androidx.wear.tiles.DimensionBuilders.dp;
import androidx.annotation.NonNull;
import androidx.wear.tiles.DimensionBuilders.DpProp;
/** Contains the default values used by chip Tiles components. */
public class ChipDefaults {
private ChipDefaults() {}
/** The default height for standard {@link Chip} */
@NonNull public static final DpProp DEFAULT_HEIGHT = dp(52);
/** The default height for standard {@link CompactChip} */
@NonNull public static final DpProp COMPACT_HEIGHT = dp(32);
/** The default height for standard {@link TitleChip} */
@NonNull public static final DpProp TITLE_HEIGHT = dp(60);
/** The recommended horizontal margin used for width for standard {@link Chip} */
public static final float DEFAULT_MARGIN_PERCENT = 5.2f;
/** The recommended horizontal padding for standard {@link Chip} */
@NonNull public static final DpProp HORIZONTAL_PADDING = dp(14);
/** The recommended horizontal padding for standard {@link CompactChip} */
@NonNull public static final DpProp COMPACT_HORIZONTAL_PADDING = dp(12);
/** The recommended horizontal padding for standard {@link TitleChip} */
@NonNull public static final DpProp TITLE_HORIZONTAL_PADDING = dp(16);
/** The recommended vertical padding for standard {@link Chip} */
@NonNull public static final DpProp VERTICAL_PADDING = dp(6);
/** The icon size used in standard {@link Chip} */
@NonNull public static final DpProp ICON_SIZE = dp(24);
/** The recommended colors for a primary {@link Chip}. */
@NonNull
public static final ChipColors PRIMARY = new ChipColors(Colors.PRIMARY, Colors.ON_PRIMARY);
/** The recommended colors for a secondary {@link Chip}. */
@NonNull
public static final ChipColors SECONDARY = new ChipColors(Colors.SURFACE, Colors.ON_SURFACE);
/** The recommended colors for a primary {@link CompactChip}. */
@NonNull
public static final ChipColors COMPACT_PRIMARY =
new ChipColors(Colors.PRIMARY, Colors.ON_PRIMARY);
/** The recommended colors for a secondary {@link CompactChip}. */
@NonNull
public static final ChipColors COMPACT_SECONDARY =
new ChipColors(Colors.SURFACE, Colors.ON_SURFACE);
/** The recommended colors for a primary {@link TitleChip}. */
@NonNull
public static final ChipColors TITLE_PRIMARY =
new ChipColors(Colors.PRIMARY, Colors.ON_PRIMARY);
/** The recommended colors for a secondary {@link TitleChip}. */
@NonNull
public static final ChipColors TITLE_SECONDARY =
new ChipColors(Colors.SURFACE, Colors.ON_SURFACE);
}