added padding to custom timer time picker button
This commit is contained in:
parent
5be8432b18
commit
4fa7f97513
1 changed files with 7 additions and 1 deletions
|
@ -1,10 +1,13 @@
|
||||||
package be.ugent.sel.studeez.screens.timer_selection
|
package be.ugent.sel.studeez.screens.timer_selection
|
||||||
|
|
||||||
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.lazy.LazyColumn
|
import androidx.compose.foundation.lazy.LazyColumn
|
||||||
import androidx.compose.foundation.lazy.items
|
import androidx.compose.foundation.lazy.items
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.collectAsState
|
import androidx.compose.runtime.collectAsState
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
|
import androidx.compose.ui.unit.dp
|
||||||
import be.ugent.sel.studeez.R
|
import be.ugent.sel.studeez.R
|
||||||
import be.ugent.sel.studeez.common.composable.SecondaryScreenTemplate
|
import be.ugent.sel.studeez.common.composable.SecondaryScreenTemplate
|
||||||
import be.ugent.sel.studeez.common.composable.StealthButton
|
import be.ugent.sel.studeez.common.composable.StealthButton
|
||||||
|
@ -99,7 +102,10 @@ fun CustomTimerEntry(
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
rightButton = {
|
rightButton = {
|
||||||
TimePickerButton(initialSeconds = hms.getTotalSeconds()) { chosenTime ->
|
TimePickerButton(
|
||||||
|
initialSeconds = hms.getTotalSeconds(),
|
||||||
|
modifier = Modifier.padding(horizontal = 5.dp)
|
||||||
|
) { chosenTime ->
|
||||||
timerInfo.studyTime = chosenTime
|
timerInfo.studyTime = chosenTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue