|
@@ -157,7 +157,7 @@ fun SettingsTV(navHostController: NavHostController) {
|
|
|
Box(
|
|
|
modifier = Modifier
|
|
|
// .background(MaterialTheme.colorScheme.background)
|
|
|
- .background(colorResource(id = R.color.background_color_gray))
|
|
|
+ .background(MaterialTheme.colorScheme.background)
|
|
|
.fillMaxSize()
|
|
|
.padding(vertical = 0.dp),
|
|
|
) {
|
|
@@ -189,7 +189,7 @@ fun SettingsTV(navHostController: NavHostController) {
|
|
|
AddTextSettingsTV(
|
|
|
text = "Settings",
|
|
|
size = 28.sp,
|
|
|
- color = MaterialTheme.colorScheme.inversePrimary,
|
|
|
+ color = MaterialTheme.colorScheme.primary,
|
|
|
style = MaterialTheme.typography.headlineLarge
|
|
|
)
|
|
|
Spacer(modifier = Modifier.height(22.dp))
|
|
@@ -272,7 +272,7 @@ fun ColumnScope.AddRowSettingsTV(
|
|
|
.fillMaxWidth()
|
|
|
.padding(top = 5.dp, end = 27.dp)
|
|
|
.clip(RoundedCornerShape(4.dp))
|
|
|
- .background(if (isRowFocused) Color.LightGray else Color.White)
|
|
|
+ .background(if (isRowFocused) Color.LightGray else MaterialTheme.colorScheme.onBackground)
|
|
|
.onKeyEvent {
|
|
|
if (isLastRow) {
|
|
|
if (it.type == KeyEventType.KeyDown && it.key == Key.DirectionDown) {
|
|
@@ -314,7 +314,7 @@ fun ColumnScope.AddRowSettingsTV(
|
|
|
.size(24.dp)
|
|
|
.weight(1f),
|
|
|
colorFilter = ColorFilter.tint(
|
|
|
- MaterialTheme.colorScheme.inversePrimary) )
|
|
|
+ MaterialTheme.colorScheme.primary) )
|
|
|
}
|
|
|
|
|
|
Surface(
|
|
@@ -323,7 +323,7 @@ fun ColumnScope.AddRowSettingsTV(
|
|
|
) {
|
|
|
Text(text = text,
|
|
|
style = MaterialTheme.typography.titleSmall,
|
|
|
- color = MaterialTheme.colorScheme.inversePrimary,
|
|
|
+ color = MaterialTheme.colorScheme.primary,
|
|
|
maxLines = 1,
|
|
|
modifier = Modifier
|
|
|
.padding(start = 18.dp, end = 0.dp)
|
|
@@ -347,7 +347,7 @@ fun ColumnScope.AddRowSettingsTV(
|
|
|
.size(10.dp, 18.dp)
|
|
|
.weight(1f),
|
|
|
colorFilter = ColorFilter.tint(
|
|
|
- MaterialTheme.colorScheme.inversePrimary
|
|
|
+ MaterialTheme.colorScheme.primary
|
|
|
)
|
|
|
)
|
|
|
}
|
|
@@ -389,7 +389,7 @@ fun ColumnScope.AddRowSwitchTV(icon: Int, text: String, focusRequester3: FocusRe
|
|
|
.fillMaxWidth()
|
|
|
.padding(top = 5.dp, end = 27.dp)
|
|
|
.clip(RoundedCornerShape(4.dp))
|
|
|
- .background(if (isRowFocused) Color.LightGray else Color.White)
|
|
|
+ .background(if (isRowFocused) Color.LightGray else MaterialTheme.colorScheme.onBackground)
|
|
|
// .focusRequester(focusRequester3)
|
|
|
.onFocusChanged {
|
|
|
isRowFocused = it.isFocused
|
|
@@ -422,7 +422,7 @@ fun ColumnScope.AddRowSwitchTV(icon: Int, text: String, focusRequester3: FocusRe
|
|
|
.size(24.dp)
|
|
|
.weight(1f),
|
|
|
colorFilter = ColorFilter.tint(
|
|
|
- MaterialTheme.colorScheme.inversePrimary) )
|
|
|
+ MaterialTheme.colorScheme.primary) )
|
|
|
}
|
|
|
|
|
|
Surface(
|
|
@@ -431,7 +431,7 @@ fun ColumnScope.AddRowSwitchTV(icon: Int, text: String, focusRequester3: FocusRe
|
|
|
) {
|
|
|
Text(text = text,
|
|
|
style = MaterialTheme.typography.titleSmall,
|
|
|
- color = MaterialTheme.colorScheme.inversePrimary,
|
|
|
+ color = MaterialTheme.colorScheme.primary,
|
|
|
maxLines = 1,
|
|
|
modifier = Modifier
|
|
|
.padding(start = 18.dp, end = 0.dp)
|
|
@@ -514,7 +514,7 @@ fun ColumnScope.AddRowSettingsColumnTV(
|
|
|
.fillMaxWidth()
|
|
|
.padding(top = 5.dp, end = 27.dp)
|
|
|
.clip(RoundedCornerShape(4.dp))
|
|
|
- .background(if (isFirstRowFocused) Color.LightGray else Color.White)
|
|
|
+ .background(if (isFirstRowFocused) Color.LightGray else MaterialTheme.colorScheme.onBackground)
|
|
|
.height(61.dp)
|
|
|
// .onKeyEvent {
|
|
|
// when (it.key) {
|
|
@@ -573,7 +573,7 @@ fun ColumnScope.AddRowSettingsColumnTV(
|
|
|
.size(24.dp)
|
|
|
.weight(1f),
|
|
|
colorFilter = ColorFilter.tint(
|
|
|
- MaterialTheme.colorScheme.inversePrimary)
|
|
|
+ MaterialTheme.colorScheme.primary)
|
|
|
)
|
|
|
}
|
|
|
|
|
@@ -588,7 +588,7 @@ fun ColumnScope.AddRowSettingsColumnTV(
|
|
|
verticalArrangement = Arrangement.Center
|
|
|
) {
|
|
|
Text(text = text,
|
|
|
- color = MaterialTheme.colorScheme.inversePrimary,
|
|
|
+ color = MaterialTheme.colorScheme.primary,
|
|
|
style = MaterialTheme.typography.titleSmall,
|
|
|
maxLines = 1,
|
|
|
modifier = Modifier
|
|
@@ -600,7 +600,7 @@ fun ColumnScope.AddRowSettingsColumnTV(
|
|
|
style = MaterialTheme.typography.headlineSmall.copy(
|
|
|
fontSize = if (isTablet()) 14.sp else 12.sp
|
|
|
),
|
|
|
- color = MaterialTheme.colorScheme.inversePrimary,
|
|
|
+ color = MaterialTheme.colorScheme.primary,
|
|
|
maxLines = 1,
|
|
|
modifier = Modifier
|
|
|
.padding(start = 18.dp, end = 0.dp)
|
|
@@ -626,7 +626,7 @@ fun ColumnScope.AddRowSettingsColumnTV(
|
|
|
.size(10.dp, 18.dp)
|
|
|
.weight(1f),
|
|
|
colorFilter = ColorFilter.tint(
|
|
|
- MaterialTheme.colorScheme.inversePrimary
|
|
|
+ MaterialTheme.colorScheme.primary
|
|
|
)
|
|
|
)
|
|
|
}
|
|
@@ -787,7 +787,7 @@ fun ColumnScope.AddRowSettingsSmartTV(
|
|
|
.fillMaxWidth()
|
|
|
.padding(top = 5.dp, end = 27.dp)
|
|
|
.clip(RoundedCornerShape(4.dp))
|
|
|
- .background(if (isRowFocused) Color.LightGray else Color.White)
|
|
|
+ .background(if (isRowFocused) Color.LightGray else MaterialTheme.colorScheme.onBackground)
|
|
|
// .onKeyEvent {
|
|
|
// when (it.key) {
|
|
|
// Key.DirectionLeft -> {
|
|
@@ -839,7 +839,7 @@ fun ColumnScope.AddRowSettingsSmartTV(
|
|
|
.size(24.dp)
|
|
|
.weight(1f),
|
|
|
colorFilter = ColorFilter.tint(
|
|
|
- MaterialTheme.colorScheme.inversePrimary)
|
|
|
+ MaterialTheme.colorScheme.primary)
|
|
|
)
|
|
|
}
|
|
|
|
|
@@ -849,7 +849,7 @@ fun ColumnScope.AddRowSettingsSmartTV(
|
|
|
) {
|
|
|
Text(text = text,
|
|
|
style = MaterialTheme.typography.titleSmall,
|
|
|
- color = MaterialTheme.colorScheme.inversePrimary,
|
|
|
+ color = MaterialTheme.colorScheme.primary,
|
|
|
maxLines = 1,
|
|
|
modifier = Modifier
|
|
|
.padding(start = 18.dp, end = 0.dp)
|
|
@@ -871,7 +871,7 @@ fun ColumnScope.AddRowSettingsSmartTV(
|
|
|
.size(10.dp, 18.dp)
|
|
|
.weight(1f),
|
|
|
colorFilter = ColorFilter.tint(
|
|
|
- MaterialTheme.colorScheme.inversePrimary
|
|
|
+ MaterialTheme.colorScheme.primary
|
|
|
)
|
|
|
)
|
|
|
}
|