From 7814b58f3fb99aadaa62d715cf795547347e18c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Merino=20Jim=C3=A9nez?= Date: Fri, 28 Oct 2022 11:15:23 +0200 Subject: [PATCH] Fix background color (#19) * Fixing background color * Revert --- .../enabled/java/com/telefonica/tweaks/ui/TweakComponents.kt | 4 ++++ .../src/enabled/java/com/telefonica/tweaks/ui/theme/Theme.kt | 1 + 2 files changed, 5 insertions(+) diff --git a/library/src/enabled/java/com/telefonica/tweaks/ui/TweakComponents.kt b/library/src/enabled/java/com/telefonica/tweaks/ui/TweakComponents.kt index eefc5fd..11d0281 100644 --- a/library/src/enabled/java/com/telefonica/tweaks/ui/TweakComponents.kt +++ b/library/src/enabled/java/com/telefonica/tweaks/ui/TweakComponents.kt @@ -2,6 +2,7 @@ package com.telefonica.tweaks.ui import android.widget.Toast import androidx.compose.foundation.ExperimentalFoundationApi +import androidx.compose.foundation.background import androidx.compose.foundation.combinedClickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column @@ -39,6 +40,7 @@ import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.Modifier import androidx.compose.ui.focus.FocusRequester import androidx.compose.ui.focus.focusRequester +import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalClipboardManager import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalSoftwareKeyboardController @@ -78,6 +80,7 @@ fun TweaksScreen( Column( modifier = Modifier .fillMaxSize() + .background(MaterialTheme.colors.background) .padding(16.dp) .verticalScroll(scrollState), verticalArrangement = Arrangement.spacedBy(8.dp), @@ -110,6 +113,7 @@ fun TweaksCategoryScreen( Column( modifier = Modifier .fillMaxSize() + .background(MaterialTheme.colors.background) .padding(16.dp) .verticalScroll(scrollState), verticalArrangement = Arrangement.spacedBy(8.dp), diff --git a/library/src/enabled/java/com/telefonica/tweaks/ui/theme/Theme.kt b/library/src/enabled/java/com/telefonica/tweaks/ui/theme/Theme.kt index 268d1ba..747e4bf 100644 --- a/library/src/enabled/java/com/telefonica/tweaks/ui/theme/Theme.kt +++ b/library/src/enabled/java/com/telefonica/tweaks/ui/theme/Theme.kt @@ -2,6 +2,7 @@ package com.telefonica.tweaks.ui.theme import androidx.compose.material.MaterialTheme import androidx.compose.runtime.Composable +import androidx.compose.ui.graphics.Color @Composable fun DebugTweaksTheme(