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

Commit 433de159 authored by Sebastian Franco's avatar Sebastian Franco Committed by Sebastián Franco
Browse files

Brighten theme-icons when in Dark mode and add dark color for taskbar

Bug: 217247494
Test: change between dark and light mode and transition in and out of apps
Change-Id: Iccafe71b628e65d4b9df69195c28ee8238f06807
parent 84858344
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -74,6 +74,10 @@ public class ThemedIconDrawable extends FastBitmapDrawable {
        return new ThemedConstantState(bitmapInfo, colorBg, colorFg);
    }

    public void changeBackgroundColor(int colorBg){
        mBgPaint.setColorFilter(new BlendModeColorFilter(colorBg, BlendMode.SRC_IN));
    }

    static class ThemedConstantState extends FastBitmapConstantState {

        final BitmapInfo bitmapInfo;