mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-02-17 04:10:46 +01:00
use white buttons at B&W theme too for now
This commit is contained in:
parent
aa230830b0
commit
b4d1d857bd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user