Fix light theme colors

This commit is contained in:
Ensar Sarajčić
2023-10-02 10:42:18 +02:00
parent de2ce0ea73
commit cd02f52d12
4 changed files with 13 additions and 35 deletions

View File

@ -122,32 +122,6 @@ class MainActivity : SimpleActivity() {
override fun onResume() {
super.onResume()
viewModel.onResume()
// val contrastColor = getContrastColor()
// binding.apply {
// changeIconColor(contrastColor, brightDisplayBtn)
// brightDisplayBtn.beVisibleIf(preferences.brightDisplay)
// sosBtn.beVisibleIf(preferences.sos)
//
// if (sosBtn.currentTextColor != getProperPrimaryColor()) {
// sosBtn.setTextColor(contrastColor)
// }
//
// stroboscopeBtn.beVisibleIf(preferences.stroboscope)
//
// if (!preferences.stroboscope) {
// mCameraImpl!!.stopStroboscope()
// stroboscopeBar.beInvisible()
// }
//
// updateTextColors(mainHolder)
// if (stroboscopeBar.isInvisible()) {
// changeIconColor(contrastColor, stroboscopeBtn)
// }
// }
//
// binding.sleepTimerHolder.background = ColorDrawable(getProperBackgroundColor())
// binding.sleepTimerStop.applyColorFilter(getProperTextColor())
requestedOrientation = if (preferences.forcePortraitMode) ActivityInfo.SCREEN_ORIENTATION_PORTRAIT else ActivityInfo.SCREEN_ORIENTATION_SENSOR
invalidateOptionsMenu()