use white buttons at B&W theme too for now

This commit is contained in:
tibbi 2018-01-17 19:12:28 +01:00
parent aa230830b0
commit b4d1d857bd

View File

@ -172,7 +172,7 @@ class MainActivity : SimpleActivity() {
private fun cameraPermissionGranted() {
if (mCameraImpl!!.toggleStroboscope()) {
stroboscope_bar.beInvisibleIf(stroboscope_bar.isVisible())
changeIconColor(if (stroboscope_bar.isVisible()) config.primaryColor else config.backgroundColor.getContrastColor(), stroboscope_btn)
changeIconColor(if (stroboscope_bar.isVisible()) getAdjustedPrimaryColor() else config.backgroundColor.getContrastColor(), stroboscope_btn)
}
}
@ -195,7 +195,7 @@ class MainActivity : SimpleActivity() {
}
private fun enableFlashlight() {
changeIconColor(config.primaryColor, toggle_btn)
changeIconColor(getAdjustedPrimaryColor(), toggle_btn)
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
changeIconColor(config.backgroundColor.getContrastColor(), stroboscope_btn)