Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

ensu: add ducky to coming soon and update accent color

Prateek Sunalfe2a66e50424
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt
index 9968770ff3..cc3a42a422 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt
@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
+import androidx.compose.foundation.Image
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
@@ -19,6 +20,8 @@ import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
+import androidx.compose.ui.layout.ContentScale
+import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import io.ente.ensu.designsystem.EnsuColor
import io.ente.ensu.designsystem.EnsuCornerRadius
@@ -37,7 +40,19 @@ internal fun ComingSoonDialog(
AlertDialog(
onDismissRequest = onDismiss,
title = {
- Text(text = title, style = EnsuTypography.h3Bold)
+ Column(
+ modifier = Modifier.fillMaxWidth(),
+ horizontalAlignment = Alignment.CenterHorizontally,
+ verticalArrangement = Arrangement.spacedBy(EnsuSpacing.md.dp)
+ ) {
+ Image(
+ painter = painterResource(id = R.drawable.ensu_ducky),
+ contentDescription = null,
+ modifier = Modifier.height(108.dp),
+ contentScale = ContentScale.Fit
+ )
+ Text(text = title, style = EnsuTypography.h3Bold)
+ }
},
text = {
Text(text = message, style = EnsuTypography.body, color = EnsuColor.textMuted())
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/EnsuTheme.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/EnsuTheme.kt
index 021be7f2f0..f9fcb06266 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/EnsuTheme.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/designsystem/EnsuTheme.kt
@@ -31,8 +31,8 @@ object EnsuColor {
val fillFaintLight = Color(0xFFF0EBE4)
val fillFaintDark = Color(0xFF1E1E1E)
- val accentLight = Color(0xFFF4D93B)
- val accentDark = Color(0xFFF4D93B)
+ val accentLight = Color(0xFFFDCE13)
+ val accentDark = Color(0xFFFDCE13)
val actionLight = textPrimaryLight
val actionDark = accentDark
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ensu_ducky.png b/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ensu_ducky.png
new file mode 100644
index 0000000000..bbc1725c0b
Binary files /dev/null and b/mobile/native/android/apps/ensu/app-ui/src/main/res/drawable/ensu_ducky.png differ
diff --git a/mobile/native/darwin/Apps/ensu/ensu/Assets.xcassets/EnsuDucky.imageset/Contents.json b/mobile/native/darwin/Apps/ensu/ensu/Assets.xcassets/EnsuDucky.imageset/Contents.json
new file mode 100644
index 0000000000..c0ba557a40
--- /dev/null
+++ b/mobile/native/darwin/Apps/ensu/ensu/Assets.xcassets/EnsuDucky.imageset/Contents.json
@@ -0,0 +1,13 @@
+{
+ "images" : [
+ {
+ "filename" : "ensu_ducky.png",
+ "idiom" : "universal",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/mobile/native/darwin/Apps/ensu/ensu/Assets.xcassets/EnsuDucky.imageset/ensu_ducky.png b/mobile/native/darwin/Apps/ensu/ensu/Assets.xcassets/EnsuDucky.imageset/ensu_ducky.png
new file mode 100644
index 0000000000..bbc1725c0b
Binary files /dev/null and b/mobile/native/darwin/Apps/ensu/ensu/Assets.xcassets/EnsuDucky.imageset/ensu_ducky.png differ
diff --git a/mobile/native/darwin/Apps/ensu/ensu/Chat/Components/ChatViewComponents.swift b/mobile/native/darwin/Apps/ensu/ensu/Chat/Components/ChatViewComponents.swift
index 4fcff062fa..15101633a3 100644
--- a/mobile/native/darwin/Apps/ensu/ensu/Chat/Components/ChatViewComponents.swift
+++ b/mobile/native/darwin/Apps/ensu/ensu/Chat/Components/ChatViewComponents.swift
@@ -89,6 +89,11 @@ struct SignInComingSoonDialog: View {
.onTapGesture { onDismiss() }
VStack(spacing: EnsuSpacing.lg) {
+ Image("EnsuDucky")
+ .resizable()
+ .scaledToFit()
+ .frame(height: 120)
+
Text(title)
.font(EnsuTypography.large)
.foregroundStyle(EnsuColor.textPrimary)
diff --git a/mobile/native/darwin/Apps/ensu/ensu/DesignSystem/EnsuTheme.swift b/mobile/native/darwin/Apps/ensu/ensu/DesignSystem/EnsuTheme.swift
index 51998690b1..6c0495bf79 100644
--- a/mobile/native/darwin/Apps/ensu/ensu/DesignSystem/EnsuTheme.swift
+++ b/mobile/native/darwin/Apps/ensu/ensu/DesignSystem/EnsuTheme.swift
@@ -15,8 +15,8 @@ enum EnsuColor {
static let textMuted = Color(PlatformColor.dynamic(light: "#8A8680", dark: "#777777"))
static let border = Color(PlatformColor.dynamic(light: "#D4D0C8", dark: "#2A2A2A"))
static let fillFaint = Color(PlatformColor.dynamic(light: "#F0EBE4", dark: "#1E1E1E"))
- static let accent = Color(PlatformColor.dynamic(light: "#F4D93B", dark: "#F4D93B"))
- static let action = Color(PlatformColor.dynamic(light: "#1A1A1A", dark: "#F4D93B"))
+ static let accent = Color(PlatformColor.dynamic(light: "#FDCE13", dark: "#FDCE13"))
+ static let action = Color(PlatformColor.dynamic(light: "#1A1A1A", dark: "#FDCE13"))
static let userMessageText = Color(PlatformColor.dynamic(light: "#555555", dark: "#999999"))
static let error = Color(hex: "#FF4444")