summaryrefslogtreecommitdiffhomepage
path: root/android/lib
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2024-08-19 11:27:39 +0200
committerAlbin <albin@mullvad.net>2024-08-19 11:27:39 +0200
commit58a811f70b0d9da7ad052ec98b25eff65ee4a1be (patch)
treed3320e7b3f36b92c6da11bdd7bf43397871198e2 /android/lib
parented5b060f39f8739673ca9470f1fea24abc729211 (diff)
parentb6f78500e1b6c358c8a21ffcaef9fd157f2c5731 (diff)
downloadmullvadvpn-58a811f70b0d9da7ad052ec98b25eff65ee4a1be.tar.xz
mullvadvpn-58a811f70b0d9da7ad052ec98b25eff65ee4a1be.zip
Merge branch 'auto-connect-lockdown-mode-title-is-not-translated-droid-1257'
Diffstat (limited to 'android/lib')
-rw-r--r--android/lib/resource/src/main/res/values/strings.xml1
-rw-r--r--android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Theme.kt6
-rw-r--r--android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/typeface/TypeScale.kt3
3 files changed, 9 insertions, 1 deletions
diff --git a/android/lib/resource/src/main/res/values/strings.xml b/android/lib/resource/src/main/res/values/strings.xml
index c5b884b745..ef6b0bce7a 100644
--- a/android/lib/resource/src/main/res/values/strings.xml
+++ b/android/lib/resource/src/main/res/values/strings.xml
@@ -74,7 +74,6 @@
<string name="allow_lan_footer">Allows access to other devices on the same network for sharing, printing etc.</string>
<string name="auto_connect">Auto-connect</string>
<string name="auto_connect_and_lockdown_mode">Auto-connect &amp; Lockdown mode</string>
- <string name="auto_connect_and_lockdown_mode_two_lines">Auto-connect &amp; \nLockdown mode</string>
<string name="auto_connect_and_lockdown_mode_footer">Makes sure the device is always on the VPN tunnel.</string>
<string name="go_to_vpn_settings">Go to VPN settings</string>
<string name="vpn_settings_not_found">There is no VPN settings on your device</string>
diff --git a/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Theme.kt b/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Theme.kt
index 554eb6d421..51879c4a66 100644
--- a/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Theme.kt
+++ b/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/Theme.kt
@@ -48,6 +48,12 @@ import net.mullvad.mullvadvpn.lib.theme.typeface.TypeScale
private val MullvadTypography =
Typography(
headlineLarge = TextStyle(fontSize = TypeScale.TextHuge, fontWeight = FontWeight.Bold),
+ headlineMedium =
+ TextStyle(
+ fontWeight = FontWeight.Bold,
+ fontSize = TypeScale.TextHeadline,
+ lineHeight = TypeScale.HeadlineMediumLineHeight,
+ ),
headlineSmall = TextStyle(fontSize = TypeScale.TextBig, fontWeight = FontWeight.Bold),
bodySmall = TextStyle(fontSize = TypeScale.TextSmall),
titleSmall = TextStyle(fontSize = TypeScale.TextMedium, fontWeight = FontWeight.SemiBold),
diff --git a/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/typeface/TypeScale.kt b/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/typeface/TypeScale.kt
index 524461c07e..4e5492a630 100644
--- a/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/typeface/TypeScale.kt
+++ b/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/typeface/TypeScale.kt
@@ -12,9 +12,12 @@ import androidx.compose.ui.unit.sp
*/
internal object TypeScale {
val TextHuge = 30.sp
+ val TextHeadline = 28.sp
val TextBig = 24.sp
val TextMediumPlus = 18.sp
val TextMedium = 16.sp
val TextSmall = 13.sp
val TitleLarge = 22.sp
+
+ val HeadlineMediumLineHeight = 36.0.sp
}