bluetooth checking

This commit is contained in:
callebtc
2025-07-10 14:15:54 +02:00
parent ef6a815b4c
commit f47ed01243
2 changed files with 12 additions and 14 deletions
+1
View File
@@ -64,6 +64,7 @@ dependencies {
implementation("androidx.compose.ui:ui-graphics") implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview") implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.material3:material3") implementation("androidx.compose.material3:material3")
implementation("androidx.compose.material:material-icons-extended")
// AppCompat for theme support // AppCompat for theme support
implementation("androidx.appcompat:appcompat:1.6.1") implementation("androidx.appcompat:appcompat:1.6.1")
@@ -2,6 +2,9 @@ package com.bitchat.android.onboarding
import androidx.compose.animation.core.* import androidx.compose.animation.core.*
import androidx.compose.foundation.layout.* import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
import androidx.compose.material.icons.outlined.*
import androidx.compose.material3.* import androidx.compose.material3.*
import androidx.compose.runtime.* import androidx.compose.runtime.*
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
@@ -65,19 +68,13 @@ private fun BluetoothDisabledContent(
verticalArrangement = Arrangement.spacedBy(24.dp), verticalArrangement = Arrangement.spacedBy(24.dp),
horizontalAlignment = Alignment.CenterHorizontally horizontalAlignment = Alignment.CenterHorizontally
) { ) {
// Bluetooth icon // Bluetooth icon - using Bluetooth outlined icon in app's green color
Card( Icon(
colors = CardDefaults.cardColors( imageVector = Icons.Outlined.Bluetooth,
containerColor = Color(0xFFE3F2FD) contentDescription = "Bluetooth",
), modifier = Modifier.size(64.dp),
elevation = CardDefaults.cardElevation(defaultElevation = 4.dp) tint = Color(0xFF00C851) // App's main green color
) {
Text(
text = "📶",
style = MaterialTheme.typography.headlineLarge,
modifier = Modifier.padding(16.dp)
) )
}
Text( Text(
text = "Bluetooth Required", text = "Bluetooth Required",
@@ -134,7 +131,7 @@ private fun BluetoothDisabledContent(
onClick = onEnableBluetooth, onClick = onEnableBluetooth,
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
colors = ButtonDefaults.buttonColors( colors = ButtonDefaults.buttonColors(
containerColor = Color(0xFF2196F3) // Bluetooth blue containerColor = Color(0xFF00C851) // App's main green color
) )
) { ) {
Text( Text(