|
|
|
|
@ -24,22 +24,36 @@ import com.timsu.astrid.R;
|
|
|
|
|
public enum Importance {
|
|
|
|
|
// MOST IMPORTANT
|
|
|
|
|
|
|
|
|
|
LEVEL_1(R.string.importance_1, R.color.importance_1, R.drawable.bullet_red),
|
|
|
|
|
LEVEL_2(R.string.importance_2, R.color.importance_2, R.drawable.bullet_orange),
|
|
|
|
|
LEVEL_3(R.string.importance_3, R.color.importance_3, R.drawable.bullet_blue),
|
|
|
|
|
LEVEL_4(R.string.importance_4, R.color.importance_4, R.drawable.bullet_white),
|
|
|
|
|
LEVEL_1(R.string.importance_1,
|
|
|
|
|
R.color.importance_1,
|
|
|
|
|
R.color.task_list_importance_1,
|
|
|
|
|
R.drawable.bubble_red),
|
|
|
|
|
LEVEL_2(R.string.importance_2,
|
|
|
|
|
R.color.importance_2,
|
|
|
|
|
R.color.task_list_importance_2,
|
|
|
|
|
R.drawable.bubble_yellow),
|
|
|
|
|
LEVEL_3(R.string.importance_3,
|
|
|
|
|
R.color.importance_3,
|
|
|
|
|
R.color.task_list_importance_3,
|
|
|
|
|
R.drawable.bubble_blue),
|
|
|
|
|
LEVEL_4(R.string.importance_4,
|
|
|
|
|
R.color.importance_4,
|
|
|
|
|
R.color.task_list_importance_4,
|
|
|
|
|
R.drawable.bubble_gray),
|
|
|
|
|
|
|
|
|
|
// LEAST IMPORTANT
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
int label;
|
|
|
|
|
int color;
|
|
|
|
|
int taskListColor;
|
|
|
|
|
int icon;
|
|
|
|
|
public static final Importance DEFAULT = LEVEL_3;
|
|
|
|
|
|
|
|
|
|
private Importance(int label, int color, int icon) {
|
|
|
|
|
private Importance(int label, int color, int taskListColor, int icon) {
|
|
|
|
|
this.label = label;
|
|
|
|
|
this.color = color;
|
|
|
|
|
this.taskListColor = taskListColor;
|
|
|
|
|
this.icon = icon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -51,6 +65,10 @@ public enum Importance {
|
|
|
|
|
return color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getTaskListColor() {
|
|
|
|
|
return taskListColor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getIconResource() {
|
|
|
|
|
return icon;
|
|
|
|
|
}
|
|
|
|
|
|