From 9f02a0557c3256a6ae70db7b6496f7a0ce173a31 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 27 Nov 2019 22:57:24 +0100 Subject: [PATCH] update the stroke width bar color on app launch too in some cases --- .../com/simplemobiletools/draw/pro/activities/MainActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt index c734502..ebea4d4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt @@ -94,6 +94,10 @@ class MainActivity : SimpleActivity(), CanvasListener { stroke_width_preview.beVisibleIf(isShowBrushSizeEnabled) my_canvas.setAllowZooming(config.allowZoomingCanvas) updateTextColors(main_holder) + if (isBlackAndWhiteTheme()) { + stroke_width_bar.setColors(0, config.canvasBackgroundColor.getContrastColor(), 0) + } + if (config.preventPhoneFromSleeping) { window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) }