Skip to content

Commit

Permalink
Merge pull request #194 from enaboapps/iss192
Browse files Browse the repository at this point in the history
Improve about screen
  • Loading branch information
enaboapps authored Mar 2, 2024
2 parents 22d97ab + 6c566e7 commit 73653d1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Card
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.unit.dp
import androidx.navigation.NavController
import com.enaboapps.switchify.R
import com.enaboapps.switchify.widgets.NavBar

@Composable
Expand All @@ -27,23 +30,33 @@ fun AboutScreen(navController: NavController) {
NavBar(title = "About", navController = navController)
}
) {
Column(
Card(
modifier = Modifier
.fillMaxSize()
.verticalScroll(verticalScrollState)
.padding(it)
.padding(all = 16.dp),
verticalArrangement = Arrangement.Top
.fillMaxSize()
) {
Text(
text = context.getString(com.enaboapps.switchify.R.string.app_name),
style = MaterialTheme.typography.h4
)
Spacer(modifier = Modifier.padding(8.dp))
Text(
text = "Version $version",
style = MaterialTheme.typography.body1
)
Column(
modifier = Modifier
.verticalScroll(verticalScrollState)
.padding(all = 16.dp),
verticalArrangement = Arrangement.Top,
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = context.getString(R.string.app_name),
style = MaterialTheme.typography.h4
)
Spacer(modifier = Modifier.padding(4.dp))
Text(
text = "Version $version",
style = MaterialTheme.typography.body1
)
Spacer(modifier = Modifier.padding(16.dp))
Text(
text = context.getString(R.string.app_description),
style = MaterialTheme.typography.body2
)
}
}
}
}
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<resources>
<string name="app_name">Switchify</string>

<string name="app_description">Switchify enables you to use your device with adaptive switches. It scans your screen, allowing you to select a point to tap. You can also swipe, and do everything else you need to navigate your device.</string>

<string name="accessibility_service_description">Switchify enables you to use your device with adaptive switches. It scans your screen, allowing you to select a point to tap. You can also swipe, and do everything else you need to navigate your device. Note: before enabling Switchify, you must first add at least one switch in the app.</string>

<string name="accessibility_service_disclosure">Switchify is an accessibility service. It allows you to use your device with adaptive switches. It scans your screen, allowing you to select a point to tap. You can also swipe, and do everything else you need to navigate your device. To do this, Switchify requires the ability to perform gestures, such as taps and swipes, and to observe the content of your screen to determine where to perform these gestures.</string>
Expand Down

0 comments on commit 73653d1

Please sign in to comment.