Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4d1d857 authored by tibbi's avatar tibbi
Browse files

use white buttons at B&W theme too for now

parent aa230830
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)