Removed work, added activity, changed colors, and made bigger window size.

This commit is contained in:
2026-02-15 18:26:13 -08:00
parent 23c12c7bf8
commit df8bfd8770

13
main.c
View File

@@ -129,7 +129,8 @@ char activity_button(Rectangle rect, char *title, char *subtitle, F32 font_size,
// break, other // break, other
typedef enum activity_type { typedef enum activity_type {
other, other,
work, studying,
programming,
projects, projects,
gaming, gaming,
exercise, exercise,
@@ -138,11 +139,11 @@ typedef enum activity_type {
} activity_type; } activity_type;
char *activity_type_string_representation[activity_type_COUNT] = { 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] = { Color activity_type_color_representation[activity_type_COUNT] = {
RED, BLUE, ORANGE, GREEN, PURPLE, BROWN RED, GREEN, BLUE, ORANGE, MAROON, PURPLE, BROWN
}; };
// TODO: String representation. // TODO: String representation.
@@ -249,8 +250,8 @@ int main(int argc, char *argv[])
activity_type type = other; activity_type type = other;
if(strcmp(activity_name, activity_type_string_representation[other]) == 0) if(strcmp(activity_name, activity_type_string_representation[other]) == 0)
type = other; type = other;
else if(strcmp(activity_name, activity_type_string_representation[work]) == 0) else if(strcmp(activity_name, activity_type_string_representation[studying]) == 0)
type = work; type = studying;
else if(strcmp(activity_name, activity_type_string_representation[projects]) == 0) else if(strcmp(activity_name, activity_type_string_representation[projects]) == 0)
type = projects; type = projects;
else if(strcmp(activity_name, activity_type_string_representation[gaming]) == 0) 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 + 86400;
// U64 upper_bound_s = lower_bound_s + 3600; // U64 upper_bound_s = lower_bound_s + 3600;
S32 window_w = 900; S32 window_w = 1400;
S32 window_h = 500; S32 window_h = 500;
InitWindow(window_w, window_h, "Time Tracker"); InitWindow(window_w, window_h, "Time Tracker");