feat: Replace Material Icons with Tabler Icons across multiple screens
This commit is contained in:
@@ -6,9 +6,9 @@ import androidx.compose.foundation.*
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.text.KeyboardOptions
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.*
|
||||
import androidx.compose.material3.*
|
||||
import compose.icons.TablerIcons
|
||||
import compose.icons.tablericons.*
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
@@ -106,7 +106,7 @@ fun SetPasswordScreen(
|
||||
) {
|
||||
IconButton(onClick = onBack, enabled = !isCreating) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.ArrowBack,
|
||||
imageVector = TablerIcons.ArrowLeft,
|
||||
contentDescription = "Back",
|
||||
tint = textColor.copy(alpha = 0.6f)
|
||||
)
|
||||
@@ -166,7 +166,7 @@ fun SetPasswordScreen(
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
Icon(
|
||||
Icons.Default.Lock,
|
||||
TablerIcons.Lock,
|
||||
contentDescription = null,
|
||||
tint = PrimaryBlue,
|
||||
modifier = Modifier.size(iconInnerSize)
|
||||
@@ -227,8 +227,8 @@ fun SetPasswordScreen(
|
||||
IconButton(onClick = { passwordVisible = !passwordVisible }) {
|
||||
Icon(
|
||||
imageVector =
|
||||
if (passwordVisible) Icons.Default.VisibilityOff
|
||||
else Icons.Default.Visibility,
|
||||
if (passwordVisible) TablerIcons.EyeOff
|
||||
else TablerIcons.Eye,
|
||||
contentDescription =
|
||||
if (passwordVisible) "Hide" else "Show"
|
||||
)
|
||||
@@ -280,7 +280,7 @@ fun SetPasswordScreen(
|
||||
else -> Color(0xFF4CAF50)
|
||||
}
|
||||
Icon(
|
||||
imageVector = Icons.Default.Shield,
|
||||
imageVector = TablerIcons.Shield,
|
||||
contentDescription = null,
|
||||
tint = strengthColor,
|
||||
modifier = Modifier.size(16.dp)
|
||||
@@ -306,7 +306,7 @@ fun SetPasswordScreen(
|
||||
verticalAlignment = Alignment.Top
|
||||
) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.Warning,
|
||||
imageVector = TablerIcons.AlertTriangle,
|
||||
contentDescription = null,
|
||||
tint = Color(0xFFE53935),
|
||||
modifier = Modifier.size(16.dp)
|
||||
@@ -353,8 +353,8 @@ fun SetPasswordScreen(
|
||||
Icon(
|
||||
imageVector =
|
||||
if (confirmPasswordVisible)
|
||||
Icons.Default.VisibilityOff
|
||||
else Icons.Default.Visibility,
|
||||
TablerIcons.EyeOff
|
||||
else TablerIcons.Eye,
|
||||
contentDescription =
|
||||
if (confirmPasswordVisible) "Hide" else "Show"
|
||||
)
|
||||
@@ -394,7 +394,7 @@ fun SetPasswordScreen(
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
val matchIcon =
|
||||
if (passwordsMatch) Icons.Default.Check else Icons.Default.Close
|
||||
if (passwordsMatch) TablerIcons.Check else TablerIcons.X
|
||||
val matchColor =
|
||||
if (passwordsMatch) Color(0xFF4CAF50) else Color(0xFFE53935)
|
||||
val matchText =
|
||||
@@ -446,7 +446,7 @@ fun SetPasswordScreen(
|
||||
verticalAlignment = Alignment.Top
|
||||
) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.Info,
|
||||
imageVector = TablerIcons.InfoCircle,
|
||||
contentDescription = null,
|
||||
tint = PrimaryBlue,
|
||||
modifier = Modifier.size(20.dp)
|
||||
|
||||
@@ -9,9 +9,10 @@ import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.text.KeyboardOptions
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.*
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material3.*
|
||||
import compose.icons.TablerIcons
|
||||
import compose.icons.tablericons.*
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
@@ -430,7 +431,7 @@ fun UnlockScreen(
|
||||
// Dropdown arrow with rotation (only show if multiple accounts)
|
||||
if (accounts.size > 1) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.KeyboardArrowDown,
|
||||
imageVector = TablerIcons.ChevronDown,
|
||||
contentDescription = null,
|
||||
tint = secondaryTextColor.copy(alpha = 0.6f),
|
||||
modifier =
|
||||
@@ -488,7 +489,7 @@ fun UnlockScreen(
|
||||
},
|
||||
leadingIcon = {
|
||||
Icon(
|
||||
Icons.Default.Search,
|
||||
TablerIcons.Search,
|
||||
contentDescription = null,
|
||||
tint = secondaryTextColor.copy(alpha = 0.6f)
|
||||
)
|
||||
@@ -606,7 +607,7 @@ fun UnlockScreen(
|
||||
|
||||
if (isSelected) {
|
||||
Icon(
|
||||
Icons.Default.Check,
|
||||
TablerIcons.Check,
|
||||
contentDescription = null,
|
||||
tint = PrimaryBlue,
|
||||
modifier = Modifier.size(20.dp)
|
||||
@@ -657,8 +658,8 @@ fun UnlockScreen(
|
||||
IconButton(onClick = { passwordVisible = !passwordVisible }) {
|
||||
Icon(
|
||||
imageVector =
|
||||
if (passwordVisible) Icons.Default.VisibilityOff
|
||||
else Icons.Default.Visibility,
|
||||
if (passwordVisible) TablerIcons.EyeOff
|
||||
else TablerIcons.Eye,
|
||||
contentDescription = if (passwordVisible) "Hide" else "Show"
|
||||
)
|
||||
}
|
||||
@@ -771,7 +772,7 @@ fun UnlockScreen(
|
||||
)
|
||||
} else {
|
||||
Icon(
|
||||
imageVector = Icons.Default.LockOpen,
|
||||
imageVector = TablerIcons.LockOpen,
|
||||
contentDescription = null,
|
||||
modifier = Modifier.size(20.dp)
|
||||
)
|
||||
@@ -791,7 +792,7 @@ fun UnlockScreen(
|
||||
) {
|
||||
TextButton(onClick = onSwitchAccount) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.PersonAdd,
|
||||
imageVector = TablerIcons.UserPlus,
|
||||
contentDescription = null,
|
||||
tint = PrimaryBlue,
|
||||
modifier = Modifier.size(20.dp)
|
||||
|
||||
Reference in New Issue
Block a user