Skip to content

Commit 761d94d

Browse files
authored
Dialog theming fix (#106)
1 parent d201c0e commit 761d94d

File tree

4 files changed

+7
-52
lines changed

4 files changed

+7
-52
lines changed

app/google-services.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

presentation/src/main/java/com/shifthackz/aisdv1/presentation/widget/dialog/ErrorDialog.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ fun ErrorDialog(
3939
fontSize = 14.sp,
4040
color = AlertDialogDefaults.textContentColor,
4141
)
42-
4342
}
4443
)
4544
}

presentation/src/main/java/com/shifthackz/aisdv1/presentation/widget/dialog/GenerationImageResultDialog.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.padding
1010
import androidx.compose.foundation.shape.RoundedCornerShape
1111
import androidx.compose.material3.AlertDialogDefaults
1212
import androidx.compose.material3.Button
13+
import androidx.compose.material3.LocalContentColor
1314
import androidx.compose.material3.OutlinedButton
1415
import androidx.compose.material3.Surface
1516
import androidx.compose.material3.Text
@@ -68,7 +69,8 @@ fun GenerationImageResultDialog(
6869
onClick = onSaveRequest,
6970
) {
7071
Text(
71-
text = stringResource(id = R.string.action_save)
72+
text = stringResource(id = R.string.action_save),
73+
color = LocalContentColor.current,
7274
)
7375
}
7476
OutlinedButton(
@@ -79,7 +81,8 @@ fun GenerationImageResultDialog(
7981
onClick = onDismissRequest,
8082
) {
8183
Text(
82-
text = stringResource(id = R.string.action_close)
84+
text = stringResource(id = R.string.action_close),
85+
color = LocalContentColor.current,
8386
)
8487
}
8588

@@ -92,7 +95,8 @@ fun GenerationImageResultDialog(
9295
onClick = onDismissRequest,
9396
) {
9497
Text(
95-
text = stringResource(id = R.string.action_close)
98+
text = stringResource(id = R.string.action_close),
99+
color = LocalContentColor.current,
96100
)
97101
}
98102
}

presentation/src/main/java/com/shifthackz/aisdv1/presentation/widget/dialog/ProgressDialog.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ fun ProgressDialogStatus(
9696
style = TextStyle(fontSize = 12.sp),
9797
color = AlertDialogDefaults.textContentColor,
9898
)
99-
10099
}
101100
}
102101

0 commit comments

Comments
 (0)