mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 11:17:33 +01:00
Dashboard: Fix awake sleep color
This commit is contained in:
parent
42dfb6ad4a
commit
a1170e7333
@ -45,6 +45,7 @@ public abstract class AbstractDashboardWidget extends Fragment {
|
|||||||
protected @ColorInt int color_deep_sleep = Color.rgb(0, 84, 163);
|
protected @ColorInt int color_deep_sleep = Color.rgb(0, 84, 163);
|
||||||
protected @ColorInt int color_light_sleep = Color.rgb(7, 158, 243);
|
protected @ColorInt int color_light_sleep = Color.rgb(7, 158, 243);
|
||||||
protected @ColorInt int color_rem_sleep = Color.rgb(228, 39, 199);
|
protected @ColorInt int color_rem_sleep = Color.rgb(228, 39, 199);
|
||||||
|
protected @ColorInt int color_awake_sleep = Color.rgb(0xff, 0x86, 0x6e);
|
||||||
protected @ColorInt int color_distance = Color.BLUE;
|
protected @ColorInt int color_distance = Color.BLUE;
|
||||||
protected @ColorInt int color_active_time = Color.rgb(170, 0, 255);
|
protected @ColorInt int color_active_time = Color.rgb(170, 0, 255);
|
||||||
|
|
||||||
|
@ -267,6 +267,10 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
|
|||||||
paint.setStrokeWidth(barWidth);
|
paint.setStrokeWidth(barWidth);
|
||||||
paint.setColor(color_deep_sleep);
|
paint.setColor(color_deep_sleep);
|
||||||
canvas.drawArc(margin, margin, width - margin, height - margin, start_angle, sweep_angle, false, paint);
|
canvas.drawArc(margin, margin, width - margin, height - margin, start_angle, sweep_angle, false, paint);
|
||||||
|
} else if (activity.activityKind == ActivityKind.AWAKE_SLEEP) {
|
||||||
|
paint.setStrokeWidth(barWidth);
|
||||||
|
paint.setColor(color_awake_sleep);
|
||||||
|
canvas.drawArc(margin, margin, width - margin, height - margin, start_angle, sweep_angle, false, paint);
|
||||||
} else if (activity.activityKind == ActivityKind.EXERCISE) {
|
} else if (activity.activityKind == ActivityKind.EXERCISE) {
|
||||||
paint.setStrokeWidth(barWidth);
|
paint.setStrokeWidth(barWidth);
|
||||||
paint.setColor(color_exercise);
|
paint.setColor(color_exercise);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user