Merge "Adjust bubble clock to be easier to read" into qt-r1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
db0fc44b6c
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user