Skip to content

Commit

Permalink
minor UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrakovNe committed Dec 21, 2024
1 parent 121d899 commit 482259b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
Expand All @@ -42,7 +41,6 @@ fun BookComposable(
navController: AppNavigationService,
) {
val context = LocalContext.current
var showDeleteFromCacheDialog by remember { mutableStateOf(false) }

val imageRequest = remember(book.id) {
ImageRequest.Builder(context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fun LoginScreen(
return@LaunchedEffect
}

withMinimumTime(500) {
withMinimumTime(300) {
Log.d(TAG, "Tried to log in with result $loginState and possible error is $loginError")
}

Expand Down Expand Up @@ -122,11 +122,10 @@ fun LoginScreen(
style = TextStyle(
fontSize = 24.sp,
fontWeight = FontWeight.SemiBold,
letterSpacing = 2.sp,
letterSpacing = 1.5.sp,
textAlign = TextAlign.Center,
),
modifier = Modifier
.padding(vertical = 32.dp),
modifier = Modifier.padding(vertical = 32.dp),
)

OutlinedTextField(
Expand Down Expand Up @@ -234,22 +233,22 @@ fun LoginScreen(
color = FoxOrange,
strokeWidth = 4.dp,
modifier = Modifier
.padding(vertical = 16.dp)
.padding(vertical = 32.dp)
.alpha(if (loginState !is LoginState.Idle) 1f else 0f),
)
}

Text(
modifier = Modifier
.align(Alignment.BottomCenter)
.alpha(0.5f)
.alpha(0.6f)
.padding(bottom = 32.dp),
text = stringResource(R.string.audiobookshelf_server_is_required),
style = typography.bodySmall.copy(
fontSize = 10.sp,
fontWeight = FontWeight.Normal,
color = colorScheme.onBackground,
letterSpacing = 0.5.sp,
letterSpacing = 0.6.sp,
lineHeight = 32.sp,
),
textAlign = TextAlign.Center,
Expand Down

0 comments on commit 482259b

Please sign in to comment.