Skip to content

Commit

Permalink
ui: fix icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Oct 10, 2024
1 parent 6ca11cc commit f41a236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ private fun MenuItems(
if (hasWhiteBkd) R.drawable.ic_white_background_active else R.drawable.ic_white_background
MenuItem(R.string.white_background, whiteRes) { onClicked(MenuItemType.WhiteBknd) }
val blackRes =
if (blackFont) Icons.Outlined.Copyright else Icons.TwoTone.Copyright
if (blackFont) Icons.TwoTone.Copyright else Icons.Outlined.Copyright
MenuItem(R.string.black_font, blackRes) { onClicked(MenuItemType.BlackFont) }
val boldRes =
if (boldFont) R.drawable.ic_bold_font_active else R.drawable.ic_bold_font
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import androidx.compose.material.icons.filled.Add
import androidx.compose.material.icons.filled.KeyboardArrowDown
import androidx.compose.material.icons.filled.Pause
import androidx.compose.material.icons.filled.PlayArrow
import androidx.compose.material.icons.filled.SkipNext
import androidx.compose.material.icons.filled.Stop
import androidx.compose.material.icons.outlined.SkipNext
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.mutableIntStateOf
Expand All @@ -38,7 +38,6 @@ import androidx.compose.ui.unit.dp
import androidx.fragment.app.activityViewModels
import info.plateaukao.einkbro.R
import info.plateaukao.einkbro.service.GptVoiceOption
import info.plateaukao.einkbro.service.TranslateRepository
import info.plateaukao.einkbro.service.TtsManager
import info.plateaukao.einkbro.tts.entity.VoiceItem
import info.plateaukao.einkbro.tts.entity.defaultVoiceItem
Expand All @@ -60,7 +59,6 @@ import java.util.Locale
class TtsSettingDialogFragment : ComposeDialogFragment() {
private val ttsManager: TtsManager by inject()
private val ttsViewModel: TtsViewModel by activityViewModels()
private val translateRepository = TranslateRepository()

override fun setupComposeView() {
composeView.setContent {
Expand Down Expand Up @@ -406,7 +404,7 @@ fun TtsDialogButtonBar(
modifier = Modifier.wrapContentWidth()
) {
Icon(
if (readingState != PAUSED) Icons.Default.Pause else Icons.Default.PlayArrow,
if (readingState != PAUSED) Icons.Filled.Pause else Icons.Filled.PlayArrow,
"pause or resume",
tint = MaterialTheme.colors.onBackground
)
Expand All @@ -418,7 +416,7 @@ fun TtsDialogButtonBar(
modifier = Modifier.wrapContentWidth()
) {
Icon(
Icons.Outlined.SkipNext,
Icons.Filled.SkipNext,
"Next Article",
tint = MaterialTheme.colors.onBackground
)
Expand Down

0 comments on commit f41a236

Please sign in to comment.