mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: Stop overriding surface/onSurface in theme (#1605)
Fixes #1604 * Stop overriding surface/onSurface in theme * Wrap preview in AppTheme to get a better representation of what it'll look like on-device
This commit is contained in:
parent
8fee9dbc45
commit
ef64df3515
3 changed files with 2 additions and 7 deletions
|
|
@ -69,6 +69,7 @@ import com.geeksville.mesh.navigation.Route
|
|||
import com.geeksville.mesh.ui.components.PreferenceCategory
|
||||
import com.geeksville.mesh.ui.radioconfig.components.EditDeviceProfileDialog
|
||||
import com.geeksville.mesh.ui.radioconfig.components.PacketResponseStateDialog
|
||||
import com.geeksville.mesh.ui.theme.AppTheme
|
||||
|
||||
private fun getNavRouteFrom(routeName: String): Route? {
|
||||
return ConfigRoute.entries.find { it.name == routeName }?.route
|
||||
|
|
@ -332,7 +333,7 @@ private fun RadioConfigItemList(
|
|||
|
||||
@Preview(showBackground = true)
|
||||
@Composable
|
||||
private fun RadioSettingsScreenPreview() {
|
||||
private fun RadioSettingsScreenPreview() = AppTheme {
|
||||
RadioConfigItemList(
|
||||
RadioConfigState(isLocal = true, connected = true)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue