diff options
| author | Albin <albin@mullvad.net> | 2023-08-23 16:29:07 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2023-08-23 16:40:58 +0200 |
| commit | eaf71671ca1c145b6bd4f4939b5688532cb480d0 (patch) | |
| tree | a670b5ec703445a26a24128ed044c78493202f69 /android/lib/theme | |
| parent | f0e67c7221765791ea74acb00280a163c3664eb5 (diff) | |
| download | mullvadvpn-eaf71671ca1c145b6bd4f4939b5688532cb480d0.tar.xz mullvadvpn-eaf71671ca1c145b6bd4f4939b5688532cb480d0.zip | |
Mark theme colors as internal or deprecated
The colors should not be used directly. Instead, the colors should
be exposed via the material theme.
Diffstat (limited to 'android/lib/theme')
| -rw-r--r-- | android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Color.kt | 48 |
1 files changed, 41 insertions, 7 deletions
diff --git a/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Color.kt b/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Color.kt index f2708eec2f..391189c406 100644 --- a/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Color.kt +++ b/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Color.kt @@ -2,23 +2,57 @@ package net.mullvad.mullvadvpn.lib.theme import androidx.compose.ui.graphics.Color -val MullvadBeige = Color(0xFFFFCD86) +internal val MullvadBeige = Color(0xFFFFCD86) +internal val MullvadBlue60 = Color(0x99294D73) +internal val MullvadBlue40 = Color(0x66294D73) +internal val MullvadBlue20 = Color(0x33294D73) +internal val MullvadBrown = Color(0xFFD2943B) +internal val MullvadYellow = Color(0xFFFFD524) +internal val MullvadWhite40 = Color(0x66FFFFFF) + +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadBlue = Color(0xFF294D73) -val MullvadBlue60 = Color(0x99294D73) -val MullvadBlue40 = Color(0x66294D73) -val MullvadBlue20 = Color(0x33294D73) -val MullvadBrown = Color(0xFFD2943B) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadDarkBlue = Color(0xFF192E45) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadGreen = Color(0xFF44AD4D) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadGreen40 = Color(0x6644AD4D) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadRed = Color(0xFFE34039) -val MullvadYellow = Color(0xFFFFD524) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadHelmetYellow = Color(0xFFFFD524) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadWhite = Color(0xFFFFFFFF) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadWhite10 = Color(0x1AFFFFFF) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadWhite20 = Color(0x33FFFFFF) -val MullvadWhite40 = Color(0x66FFFFFF) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadWhite60 = Color(0x99FFFFFF) +@Deprecated( + "Deprecated for external usage and will be marked as internal in the future. Use material colors instead." +) val MullvadWhite80 = Color(0xCCFFFFFF) const val AlphaVisible = 1f |
