mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 06:05:21 +00:00
bluetooth checking
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user