Improved calculator buttons

This commit is contained in:
Sad Ellie 2023-02-12 16:09:46 +04:00
parent 32a129eb46
commit 776dd63381
2 changed files with 8 additions and 3 deletions

View File

@ -68,8 +68,8 @@ val NumbersTextStyleTitleLarge = TextStyle(
val NumbersTextStyleTitleSmall = TextStyle(
fontFamily = Lato,
fontWeight = FontWeight.W500,
fontSize = 14.sp,
lineHeight = 20.sp,
fontSize = 20.sp,
lineHeight = 24.sp,
letterSpacing = 0.sp,
)

View File

@ -31,6 +31,8 @@ import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ExpandLess
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.IconButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
@ -128,7 +130,10 @@ internal fun CalculatorKeyboard(
}
}
// Expand/Collapse
IconButton({ showAdditional = !showAdditional }) {
IconButton(
onClick = { showAdditional = !showAdditional },
colors = IconButtonDefaults.iconButtonColors(containerColor = MaterialTheme.colorScheme.inverseOnSurface,)
) {
Icon(Icons.Default.ExpandLess, null, Modifier.rotate(expandRotation))
}
}