Trammell Hudson avatar Trammell Hudson committed c4736cf

Increase font size, tweak tick size

Comments (0)

Files changed (2)

th10/src/Makefile

 SRCS += th10.c
 
 FONTS := \
-	fonts/GillSans.ttc:32 \
+	fonts/GillSans.ttc:42 \
 
 #fonts/Arial.ttf:16 \
 
 // Hour hand
 static GPath hour_path;
 static GPoint hour_points[] = {
-	{  -8, -25 },
-	{ -10, -45 },
-	{   0,  -60 },
-	{ +10, -45 },
-	{  +8, -25 },
-	{  -8, -25 },
+	{  -8, -20 },
+	{ -10, -40 },
+	{   0, -60 },
+	{ +10, -40 },
+	{  +8, -20 },
+	{  -8, -20 },
 };
 
+// Minute hand
 static GPath minute_path;
 static GPoint minute_points[] = {
 	{ -5, -20 },
-	{ -9, -50 },
-	{  0, -72 },
-	{ +9, -50 },
+	{ -7, -60 },
+	{  0, -76 },
+	{ +7, -60 },
 	{ +5, -20 },
 	{ -5, -20 },
 };
 
+// Hour hand ticks around the circle (slightly shorter)
+static GPath hour_tick_path;
+static GPoint hour_tick_points[] = {
+	{ -3, 70 },
+	{ +3, 70 },
+	{ +3, 84 },
+	{ -3, 84 },
+};
+
+// Non-hour major ticks around the circle
 static GPath major_tick_path;
 static GPoint major_tick_points[] = {
-	{ -4, 60 },
-	{ +4, 60 },
-	{ +4, 84 },
-	{ -4, 84 },
+	{ -3, 60 },
+	{ +3, 60 },
+	{ +3, 84 },
+	{ -3, 84 },
 };
 
-static GPath hour_tick_path;
-static GPoint hour_tick_points[] = {
-	{ -4, 70 },
-	{ +4, 70 },
-	{ +4, 84 },
-	{ -4, 84 },
-};
-
+// Non-major ticks around the circle; will be drawn as lines
 static GPath minor_tick_path;
 static GPoint minor_tick_points[] = {
-	{ 0, 72 },
+	{ 0, 76 },
 	{ 0, 84 },
 };
 
 	graphics_text_draw(ctx,
 		use_24hour ? "24" : "12",
 		font_time,
-		GRect(W/2-30,8,60,50),
+		GRect(W/2-30,4,60,50),
 		GTextOverflowModeTrailingEllipsis,
 		GTextAlignmentCenter,
 		NULL
 	graphics_text_draw(ctx,
 		use_24hour ? "06" : "3",
 		font_time,
-		GRect(W/2,H/2-22,70,50),
+		GRect(W/2,H/2-26,70,50),
 		GTextOverflowModeTrailingEllipsis,
 		GTextAlignmentRight,
 		NULL
 	graphics_text_draw(ctx,
 		use_24hour ? "12" : "6",
 		font_time,
-		GRect(W/2-30,120,60,50),
+		GRect(W/2-30,110,60,50),
 		GTextOverflowModeTrailingEllipsis,
 		GTextAlignmentCenter,
 		NULL
 	graphics_text_draw(ctx,
 		use_24hour ? "18" : "9",
 		font_time,
-		GRect(W/2-70,H/2-22,60,50),
+		GRect(W/2-70,H/2-26,60,50),
 		GTextOverflowModeTrailingEllipsis,
 		GTextAlignmentLeft,
 		NULL
 
 	resource_init_current_app(&RESOURCES);
 
-	font_time = fonts_load_custom_font(resource_get_handle(RESOURCE_ID_FONT_GILLSANS_32));
+	font_time = fonts_load_custom_font(resource_get_handle(RESOURCE_ID_FONT_GILLSANS_42));
 
 	layer_init(&bg_layer, GRect(0, 0, W, H));
 	layer_add_child(&window.layer, &bg_layer);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.