Update commons

This commit is contained in:
Ensar Sarajčić 2023-10-10 09:23:16 +02:00
parent 88792ccb8d
commit 4b65350e24
5 changed files with 16 additions and 16 deletions

View File

@ -43,7 +43,7 @@ fun SleepTimerCustomAlertDialog(
modifier = Modifier.padding(all = 24.dp) modifier = Modifier.padding(all = 24.dp)
) { ) {
Text( Text(
modifier = Modifier.padding(bottom = SimpleTheme.dimens.margin.extraLarge), modifier = Modifier.padding(bottom = SimpleTheme.dimens.padding.extraLarge),
text = stringResource(id = R.string.sleep_timer), text = stringResource(id = R.string.sleep_timer),
style = SimpleTheme.typography.headlineSmall, style = SimpleTheme.typography.headlineSmall,
color = SimpleTheme.colorScheme.onSurface color = SimpleTheme.colorScheme.onSurface
@ -52,15 +52,15 @@ fun SleepTimerCustomAlertDialog(
Column( Column(
modifier = Modifier modifier = Modifier
.padding( .padding(
horizontal = SimpleTheme.dimens.margin.extraLarge horizontal = SimpleTheme.dimens.padding.extraLarge
) )
.padding( .padding(
top = SimpleTheme.dimens.margin.extraLarge top = SimpleTheme.dimens.padding.extraLarge
) )
) { ) {
TextField( TextField(
modifier = Modifier.padding( modifier = Modifier.padding(
bottom = SimpleTheme.dimens.margin.large bottom = SimpleTheme.dimens.padding.large
), ),
value = value, value = value,
onValueChange = { onValueChange = {

View File

@ -100,7 +100,7 @@ internal fun FlashlightButton(
Icon( Icon(
modifier = Modifier modifier = Modifier
.size(AppDimensions.mainButtonSize) .size(AppDimensions.mainButtonSize)
.padding(vertical = SimpleTheme.dimens.margin.large) .padding(vertical = SimpleTheme.dimens.padding.large)
.clickable( .clickable(
indication = null, indication = null,
interactionSource = rememberMutableInteractionSource(), interactionSource = rememberMutableInteractionSource(),
@ -131,7 +131,7 @@ internal fun SosButton(
) { ) {
Text( Text(
modifier = Modifier modifier = Modifier
.padding(vertical = SimpleTheme.dimens.margin.large) .padding(vertical = SimpleTheme.dimens.padding.large)
.clickable( .clickable(
indication = null, indication = null,
interactionSource = rememberMutableInteractionSource(), interactionSource = rememberMutableInteractionSource(),
@ -169,7 +169,7 @@ internal fun MainScreenSlidersSection(
val dimens = SimpleTheme.dimens val dimens = SimpleTheme.dimens
val sliderModifier = remember { val sliderModifier = remember {
Modifier Modifier
.padding(horizontal = dimens.margin.extraLarge) .padding(horizontal = dimens.padding.extraLarge)
.padding(top = 24.dp, bottom = 40.dp) .padding(top = 24.dp, bottom = 40.dp)
.size(width = AppDimensions.seekbarWidth, height = AppDimensions.seekbarHeight) .size(width = AppDimensions.seekbarWidth, height = AppDimensions.seekbarHeight)
} }
@ -207,7 +207,7 @@ private fun SmallButton(
Icon( Icon(
modifier = Modifier modifier = Modifier
.size(AppDimensions.smallerButtonSize) .size(AppDimensions.smallerButtonSize)
.padding(vertical = SimpleTheme.dimens.margin.large) .padding(vertical = SimpleTheme.dimens.padding.large)
.clickable( .clickable(
indication = null, indication = null,
interactionSource = rememberMutableInteractionSource(), interactionSource = rememberMutableInteractionSource(),

View File

@ -42,8 +42,8 @@ internal fun WidgetConfigureScreen(
) { ) {
Box( Box(
modifier = Modifier modifier = Modifier
.padding(SimpleTheme.dimens.margin.extraLarge) .padding(SimpleTheme.dimens.padding.extraLarge)
.padding(bottom = SimpleTheme.dimens.margin.extraLarge) .padding(bottom = SimpleTheme.dimens.padding.extraLarge)
.fillMaxWidth() .fillMaxWidth()
.weight(1f) .weight(1f)
) { ) {
@ -61,7 +61,7 @@ internal fun WidgetConfigureScreen(
Icon( Icon(
modifier = Modifier modifier = Modifier
.size(AppDimensions.widgetColorPickerSize) .size(AppDimensions.widgetColorPickerSize)
.padding(SimpleTheme.dimens.margin.extraSmall) .padding(SimpleTheme.dimens.padding.extraSmall)
.clip(CircleShape) .clip(CircleShape)
.clickable { onColorPressed() }, .clickable { onColorPressed() },
painter = BrushPainter(SolidColor(Color(widgetColor))), painter = BrushPainter(SolidColor(Color(widgetColor))),
@ -73,12 +73,12 @@ internal fun WidgetConfigureScreen(
value = widgetAlpha, value = widgetAlpha,
onValueChange = onSliderChanged, onValueChange = onSliderChanged,
modifier = Modifier modifier = Modifier
.padding(start = SimpleTheme.dimens.margin.medium) .padding(start = SimpleTheme.dimens.padding.medium)
.background( .background(
color = colorResource(id = com.simplemobiletools.commons.R.color.md_grey_white), color = colorResource(id = com.simplemobiletools.commons.R.color.md_grey_white),
shape = SimpleTheme.shapes.extraLarge shape = SimpleTheme.shapes.extraLarge
) )
.padding(horizontal = SimpleTheme.dimens.margin.extraLarge) .padding(horizontal = SimpleTheme.dimens.padding.extraLarge)
) )
} }

View File

@ -38,7 +38,7 @@ internal fun SleepTimer(
Text( Text(
modifier = Modifier modifier = Modifier
.align(Alignment.CenterVertically) .align(Alignment.CenterVertically)
.padding(horizontal = SimpleTheme.dimens.margin.large), .padding(horizontal = SimpleTheme.dimens.padding.large),
text = stringResource(id = com.simplemobiletools.commons.R.string.sleep_timer), text = stringResource(id = com.simplemobiletools.commons.R.string.sleep_timer),
color = SimpleTheme.colorScheme.onSurface color = SimpleTheme.colorScheme.onSurface
) )
@ -50,7 +50,7 @@ internal fun SleepTimer(
IconButton( IconButton(
modifier = Modifier modifier = Modifier
.align(Alignment.CenterVertically) .align(Alignment.CenterVertically)
.padding(SimpleTheme.dimens.margin.medium), .padding(SimpleTheme.dimens.padding.medium),
onClick = onCloseClick onClick = onCloseClick
) { ) {
Icon( Icon(

View File

@ -6,7 +6,7 @@ androidx-customView = "1.2.0-alpha02"
androidx-customViewPooling = "1.0.0" androidx-customViewPooling = "1.0.0"
androidx-lifecycle = "2.7.0-alpha02" androidx-lifecycle = "2.7.0-alpha02"
#Simple tools #Simple tools
simple-commons = "9e60e24790" simple-commons = "b9e1a256d4"
#Compose #Compose
composeActivity = "1.8.0" composeActivity = "1.8.0"
compose = "1.6.0-alpha07" compose = "1.6.0-alpha07"