|
54 | 54 | button-filled-disabled-state-layer-color: inspection.get-theme-color($theme, foreground, base), |
55 | 55 | button-filled-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity), |
56 | 56 | button-filled-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity), |
57 | | - button-filled-label-text-color: inspection.get-theme-color($theme, foreground, text, 1), |
| 57 | + button-filled-label-text-color: inspection.get-theme-color($theme, foreground, base), |
58 | 58 | button-filled-pressed-state-layer-opacity: map.get($system, pressed-state-layer-opacity), |
59 | 59 | button-filled-ripple-color: inspection.get-theme-color($theme, foreground, base, 0.1), |
60 | 60 | button-filled-state-layer-color: inspection.get-theme-color($theme, foreground, base), |
|
65 | 65 | inspection.get-theme-color($theme, foreground, base), |
66 | 66 | button-outlined-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity), |
67 | 67 | button-outlined-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity), |
68 | | - button-outlined-label-text-color: inspection.get-theme-color($theme, foreground, text, 1), |
| 68 | + button-outlined-label-text-color: inspection.get-theme-color($theme, foreground, base), |
69 | 69 | button-outlined-outline-color: $outline, |
70 | 70 | button-outlined-pressed-state-layer-opacity: |
71 | 71 | map.get($system, pressed-state-layer-opacity), |
|
80 | 80 | inspection.get-theme-color($theme, foreground, base), |
81 | 81 | button-protected-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity), |
82 | 82 | button-protected-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity), |
83 | | - button-protected-label-text-color: inspection.get-theme-color($theme, foreground, text, 1), |
| 83 | + button-protected-label-text-color: inspection.get-theme-color($theme, foreground, base), |
84 | 84 | button-protected-pressed-state-layer-opacity: |
85 | 85 | map.get($system, pressed-state-layer-opacity), |
86 | 86 | button-protected-ripple-color: inspection.get-theme-color($theme, foreground, base, 0.1), |
|
90 | 90 | button-text-disabled-state-layer-color: inspection.get-theme-color($theme, foreground, base), |
91 | 91 | button-text-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity), |
92 | 92 | button-text-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity), |
93 | | - button-text-label-text-color: inspection.get-theme-color($theme, foreground, text, 1), |
| 93 | + button-text-label-text-color: inspection.get-theme-color($theme, foreground, base), |
94 | 94 | button-text-pressed-state-layer-opacity: map.get($system, pressed-state-layer-opacity), |
95 | 95 | button-text-ripple-color: inspection.get-theme-color($theme, foreground, base, 0.1), |
96 | 96 | button-text-state-layer-color: inspection.get-theme-color($theme, foreground, base), |
|
102 | 102 | button-tonal-disabled-state-layer-color: inspection.get-theme-color($theme, foreground, base), |
103 | 103 | button-tonal-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity), |
104 | 104 | button-tonal-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity), |
105 | | - button-tonal-label-text-color: inspection.get-theme-color($theme, foreground, text, 1), |
| 105 | + button-tonal-label-text-color: inspection.get-theme-color($theme, foreground, base), |
106 | 106 | button-tonal-pressed-state-layer-opacity: map.get($system, pressed-state-layer-opacity), |
107 | 107 | button-tonal-ripple-color: inspection.get-theme-color($theme, foreground, base, 0.1), |
108 | 108 | button-tonal-state-layer-color: inspection.get-theme-color($theme, foreground, base), |
|
112 | 112 | // Generates the mapping for the properties that change based on the button palette color. |
113 | 113 | @function private-get-color-palette-color-tokens($theme, $palette-name) { |
114 | 114 | $color: inspection.get-theme-color($theme, $palette-name); |
115 | | - $state-layer-color: inspection.get-theme-color($theme, $palette-name, default-contrast, 1); |
| 115 | + $state-layer-color: inspection.get-theme-color($theme, $palette-name, default-contrast); |
116 | 116 | $ripple-color: inspection.get-theme-color($theme, $palette-name, default-contrast, 0.1); |
117 | 117 | $contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast); |
118 | 118 | $container-color: inspection.get-theme-color($theme, $palette-name, default); |
119 | | - $label-text-color: inspection.get-theme-color($theme, $palette-name, default-contrast, 1); |
| 119 | + $label-text-color: inspection.get-theme-color($theme, $palette-name, default-contrast); |
120 | 120 | $ripple-opacity: 0.1; |
121 | 121 |
|
122 | 122 | // outlined-outline-color: |
|
148 | 148 | button-text-state-layer-color: inspection.get-theme-color($theme, $palette-name), |
149 | 149 | button-tonal-container-color: inspection.get-theme-color($theme, $palette-name, default), |
150 | 150 | button-tonal-label-text-color: |
151 | | - inspection.get-theme-color($theme, $palette-name, default-contrast, 1), |
| 151 | + inspection.get-theme-color($theme, $palette-name, default-contrast), |
152 | 152 | button-tonal-ripple-color: |
153 | 153 | inspection.get-theme-color($theme, $palette-name, default-contrast, 0.1), |
154 | 154 | button-tonal-state-layer-color: |
155 | | - inspection.get-theme-color($theme, $palette-name, default-contrast, 1), |
| 155 | + inspection.get-theme-color($theme, $palette-name, default-contrast), |
156 | 156 | ); |
157 | 157 | } |
158 | 158 |
|
|
0 commit comments