mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 00:35:26 +02:00
Improved calculator buttons
This commit is contained in:
parent
32a129eb46
commit
776dd63381
@ -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,
|
||||
)
|
||||
|
||||
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user