Merge "Adjust bubble clock to be easier to read" into qt-r1-dev

This commit is contained in:
TreeHugger Robot
2019-05-28 21:30:51 +00:00
committed by Android (Google) Code Review
3 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

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