• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2024 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.ux.material.libmonet.palettes;
18 
19 /**
20  * Comprises foundational palettes to build a color scheme.
21  *
22  * <p>Generated from a source color, these palettes will then be part of a [DynamicScheme] together
23  * with appearance preferences.
24  */
25 public final class CorePalettes {
26   public TonalPalette primary;
27   public TonalPalette secondary;
28   public TonalPalette tertiary;
29   public TonalPalette neutral;
30   public TonalPalette neutralVariant;
31 
32   /** Creates a new CorePalettes. */
CorePalettes( TonalPalette primary, TonalPalette secondary, TonalPalette tertiary, TonalPalette neutral, TonalPalette neutralVariant)33   public CorePalettes(
34       TonalPalette primary,
35       TonalPalette secondary,
36       TonalPalette tertiary,
37       TonalPalette neutral,
38       TonalPalette neutralVariant) {
39     this.primary = primary;
40     this.secondary = secondary;
41     this.tertiary = tertiary;
42     this.neutral = neutral;
43     this.neutralVariant = neutralVariant;
44   }
45 }
46