mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-04-19 04:37:22 +02: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() {
|
private fun cameraPermissionGranted() {
|
||||||
if (mCameraImpl!!.toggleStroboscope()) {
|
if (mCameraImpl!!.toggleStroboscope()) {
|
||||||
stroboscope_bar.beInvisibleIf(stroboscope_bar.isVisible())
|
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() {
|
private fun enableFlashlight() {
|
||||||
changeIconColor(config.primaryColor, toggle_btn)
|
changeIconColor(getAdjustedPrimaryColor(), toggle_btn)
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||||
|
|
||||||
changeIconColor(config.backgroundColor.getContrastColor(), stroboscope_btn)
|
changeIconColor(config.backgroundColor.getContrastColor(), stroboscope_btn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user