@@ -52,65 +52,65 @@ $prefix: (mat, button);
52
52
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
53
53
$outline : if (m2-utils .$private-is-internal-build ,
54
54
rgba (if ($is-dark , #fff , #000 ), 0.12 ),
55
- inspection .get-theme-color ($theme , foreground , divider )
55
+ inspection .get-theme-color ($theme , foreground , base-12 )
56
56
);
57
57
58
58
@return (
59
- filled- container- color: inspection .get-theme-color ($theme , background , card ),
59
+ filled- container- color: inspection .get-theme-color ($theme , background , surface ),
60
60
filled- disabled- container- color:
61
- inspection .get-theme-color ($theme , foreground , disabled-button , 0. 12 ),
61
+ inspection .get-theme-color ($theme , foreground , base- 12 ),
62
62
filled- disabled- label- text- color:
63
- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
63
+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
64
64
filled- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
65
65
filled- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
66
66
filled- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
67
- filled- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
67
+ filled- label- text- color: inspection .get-theme-color ($theme , foreground , base ),
68
68
filled- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
69
- filled- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
69
+ filled- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
70
70
filled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
71
71
outlined- disabled- label- text- color:
72
- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
72
+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
73
73
outlined- disabled- outline- color: $outline ,
74
74
outlined- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
75
75
outlined- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
76
76
outlined- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
77
- outlined- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
77
+ outlined- label- text- color: inspection .get-theme-color ($theme , foreground , base ),
78
78
outlined- outline- color: $outline ,
79
79
outlined- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
80
- outlined- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
80
+ outlined- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
81
81
outlined- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
82
- protected- container- color: inspection .get-theme-color ($theme , background , card ),
82
+ protected- container- color: inspection .get-theme-color ($theme , background , surface ),
83
83
protected- disabled- container- color:
84
- inspection .get-theme-color ($theme , foreground , disabled-button , 0. 12 ),
84
+ inspection .get-theme-color ($theme , foreground , base- 12 ),
85
85
protected- disabled- label- text- color:
86
- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
86
+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
87
87
protected- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
88
88
protected- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
89
89
protected- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
90
- protected- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
90
+ protected- label- text- color: inspection .get-theme-color ($theme , foreground , base ),
91
91
protected- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
92
- protected- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
92
+ protected- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
93
93
protected- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
94
94
text- disabled- label- text- color:
95
- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
95
+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
96
96
text- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
97
97
text- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
98
98
text- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
99
- text- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
99
+ text- label- text- color: inspection .get-theme-color ($theme , foreground , base ),
100
100
text- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
101
- text- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
101
+ text- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
102
102
text- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
103
- tonal- container- color: inspection .get-theme-color ($theme , background , card ),
103
+ tonal- container- color: inspection .get-theme-color ($theme , background , surface ),
104
104
tonal- disabled- container- color:
105
- inspection .get-theme-color ($theme , foreground , disabled-button , 0. 12 ),
105
+ inspection .get-theme-color ($theme , foreground , base- 12 ),
106
106
tonal- disabled- label- text- color:
107
- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
107
+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
108
108
tonal- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
109
109
tonal- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
110
110
tonal- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
111
- tonal- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
111
+ tonal- label- text- color: inspection .get-theme-color ($theme , foreground , base-87 ),
112
112
tonal- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
113
- tonal- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
113
+ tonal- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
114
114
tonal- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
115
115
);
116
116
}
@@ -153,7 +153,7 @@ $prefix: (mat, button);
153
153
if (
154
154
meta .type-of (inspection .get-theme-color ($theme , $palette-name )) == color ,
155
155
rgba (inspection .get-theme-color ($theme , $palette-name ), $ripple-opacity ),
156
- inspection .get-theme-color ($theme , foreground , base , $ripple-opacity )),
156
+ inspection .get-theme-color ($theme , foreground , base-10 )),
157
157
outlined- state- layer- color: inspection .get-theme-color ($theme , $palette-name ),
158
158
protected- container- color: $container-color ,
159
159
protected- label- text- color: $label-text-color ,
@@ -163,7 +163,7 @@ $prefix: (mat, button);
163
163
text- ripple- color:
164
164
if (meta .type-of (inspection .get-theme-color ($theme , $palette-name )) == color ,
165
165
rgba (inspection .get-theme-color ($theme , $palette-name ), $ripple-opacity ),
166
- inspection .get-theme-color ($theme , foreground , base , $ripple-opacity )),
166
+ inspection .get-theme-color ($theme , foreground , base-10 )),
167
167
text- state- layer- color: inspection .get-theme-color ($theme , $palette-name ),
168
168
tonal- container- color: inspection .get-theme-color ($theme , $palette-name , default ),
169
169
tonal- label- text- color: inspection .get-theme-color ($theme , $palette-name , default-contrast , 1 ),
0 commit comments