commit 97e20b0d22778c11dac1fb25e3aed85804488268
parent 40c4fc916cea629b33463fa897e63650634bcfd4
Author: Gabriel Luong <gabriel.luong@gmail.com>
Date: Wed, 10 Dec 2025 15:33:10 +0000
Bug 2004511 - Part 20: Change the visibly of information and surfaceDimVariant Acorn tokens r=android-reviewers,007
By setting the visibility to internal, we can guard against accessing the `information` and `surfaceDimVariant` tokens from `AcornTheme` and force access through `MaterialTheme.colorScheme`.
Differential Revision: https://phabricator.services.mozilla.com/D275397
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mobile/android/android-components/components/compose/base/src/main/java/mozilla/components/compose/base/theme/AcornColors.kt b/mobile/android/android-components/components/compose/base/src/main/java/mozilla/components/compose/base/theme/AcornColors.kt
@@ -187,7 +187,7 @@ class AcornColors(
* Attention-grabbing color against surface for fills, icons, and text,
* indicating neutral information.
*/
- var information by mutableStateOf(information)
+ internal var information by mutableStateOf(information)
private set
/**
@@ -195,7 +195,7 @@ class AcornColors(
*
* Slightly dimmer surface color in light theme.
*/
- var surfaceDimVariant by mutableStateOf(surfaceDimVariant)
+ internal var surfaceDimVariant by mutableStateOf(surfaceDimVariant)
private set
/**