Skip to content
Snippets Groups Projects
Commit 0e949e64 authored by Khaleeq's avatar Khaleeq
Browse files

Update

parent c1656c8b
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
......@@ -25,7 +24,6 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.pomo.myapplication.ui.theme.MyApplicationTheme
......@@ -153,21 +151,15 @@ class MainActivity : ComponentActivity() {
Text(text = "Reset")
}
}
Spacer(modifier = Modifier.height(20.dp))
Row {
// Dieser Button wird gelöscht ist nur für Testzwecke da
Button(
onClick = { setTimer(1) },
colors = ButtonDefaults.buttonColors(
containerColor = Color(0xFF4CAF50), // Grün
contentColor = Color.White // Weißer Text
)
) {
Button(onClick = { setTimer(1) }) {
Text(text = "1 min")
}
Button(onClick = { setTimer(5) }) {
Text(text = "5 min")
}
......@@ -183,6 +175,7 @@ class MainActivity : ComponentActivity() {
}
}
@Composable
fun TimerDisplay(time: String) {
Text(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment