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

Commit c6dfd6c8 authored by Robert Snoeberger's avatar Robert Snoeberger
Browse files

Adjust bubble clock to be easier to read

- lines thicker by 1 dp
- same color extraction as analog clock face

Fixes: 133188865
Test: visual
Change-Id: Ic44546bbc76d945ba3dc307c6cea25af27fac3db
parent 39191756
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,5 +6,5 @@
    <path
        android:pathData="M170,40m-39,0a39,39 0,1 1,78 0a39,39 0,1 1,-78 0"
        android:strokeColor="#000000"
        android:strokeWidth="2"/>
        android:strokeWidth="3"/>
</vector>
+1 −1
Original line number Diff line number Diff line
@@ -6,5 +6,5 @@
    <path
        android:pathData="M170,1L170,1A39,39 0,0 1,209 40L209,130A39,39 0,0 1,170 169L170,169A39,39 0,0 1,131 130L131,40A39,39 0,0 1,170 1z"
        android:strokeColor="#000000"
        android:strokeWidth="2"/>
        android:strokeWidth="3"/>
</vector>
+4 −3
Original line number Diff line number Diff line
@@ -170,9 +170,10 @@ public class BubbleClockController implements ClockPlugin {
            return;
        }
        final int length = colorPalette.length;
        final int color = colorPalette[Math.max(0, length - 3)];
        mLockClock.setTextColor(color);
        mAnalogClock.setClockColors(color, color);
        final int primaryColor = colorPalette[Math.max(0, length - 2)];
        final int secondaryColor = colorPalette[Math.max(0, length - 5)];
        mLockClock.setTextColor(primaryColor);
        mAnalogClock.setClockColors(secondaryColor, primaryColor);
    }

    @Override