Removed work, added activity, changed colors, and made bigger window size.
This commit is contained in:
13
main.c
13
main.c
@@ -129,7 +129,8 @@ char activity_button(Rectangle rect, char *title, char *subtitle, F32 font_size,
|
||||
// break, other
|
||||
typedef enum activity_type {
|
||||
other,
|
||||
work,
|
||||
studying,
|
||||
programming,
|
||||
projects,
|
||||
gaming,
|
||||
exercise,
|
||||
@@ -138,11 +139,11 @@ typedef enum activity_type {
|
||||
} activity_type;
|
||||
|
||||
char *activity_type_string_representation[activity_type_COUNT] = {
|
||||
"Other", "Work", "Projects", "Gaming", "Exercise", "Reading"
|
||||
"Other", "Studying", "Programming", "Projects", "Gaming", "Exercise", "Reading"
|
||||
};
|
||||
|
||||
Color activity_type_color_representation[activity_type_COUNT] = {
|
||||
RED, BLUE, ORANGE, GREEN, PURPLE, BROWN
|
||||
RED, GREEN, BLUE, ORANGE, MAROON, PURPLE, BROWN
|
||||
};
|
||||
|
||||
// TODO: String representation.
|
||||
@@ -249,8 +250,8 @@ int main(int argc, char *argv[])
|
||||
activity_type type = other;
|
||||
if(strcmp(activity_name, activity_type_string_representation[other]) == 0)
|
||||
type = other;
|
||||
else if(strcmp(activity_name, activity_type_string_representation[work]) == 0)
|
||||
type = work;
|
||||
else if(strcmp(activity_name, activity_type_string_representation[studying]) == 0)
|
||||
type = studying;
|
||||
else if(strcmp(activity_name, activity_type_string_representation[projects]) == 0)
|
||||
type = projects;
|
||||
else if(strcmp(activity_name, activity_type_string_representation[gaming]) == 0)
|
||||
@@ -283,7 +284,7 @@ int main(int argc, char *argv[])
|
||||
U64 upper_bound_s = lower_bound_s + 86400;
|
||||
// U64 upper_bound_s = lower_bound_s + 3600;
|
||||
|
||||
S32 window_w = 900;
|
||||
S32 window_w = 1400;
|
||||
S32 window_h = 500;
|
||||
|
||||
InitWindow(window_w, window_h, "Time Tracker");
|
||||
|
||||
Reference in New Issue
Block a user