Skip to content

Commit

Permalink
move settings heading out of display cutout area
Browse files Browse the repository at this point in the history
  • Loading branch information
UrAvgCode committed Feb 3, 2025
1 parent 7dc7394 commit 16e0b84
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 0 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.VIBRATE" />
<application
android:label="Chooser"
Expand All @@ -12,10 +11,8 @@
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
package com.uravgcode.chooser.composables.screens

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.WindowInsetsSides
import androidx.compose.foundation.layout.only
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeContent
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
Expand All @@ -32,7 +37,9 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.uravgcode.chooser.composables.settings.SettingsRowSwitch
import com.uravgcode.chooser.utilities.SettingsManager
import com.uravgcode.chooser.utilities.SoundManager
Expand All @@ -50,10 +57,15 @@ fun SettingsScreen(
Scaffold(
topBar = {
TopAppBar(
modifier = Modifier.windowInsetsPadding(
WindowInsets.safeContent.only(WindowInsetsSides.Top)
),
title = {
Text(
text = "Settings",
style = MaterialTheme.typography.titleLarge
style = MaterialTheme.typography.titleLarge.copy(
fontSize = 32.sp
)
)
},
navigationIcon = {
Expand Down

0 comments on commit 16e0b84

Please sign in to comment.