update the stroke width bar color on app launch too in some cases

This commit is contained in:
tibbi 2019-11-27 22:57:24 +01:00
parent a0cf18b0b6
commit 9f02a0557c

View file

@ -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)
}