11#include "tertiary_text.h"
2-
2+
33// Max text limit in characters
44// You may adjust this to allow longer messages
55#define MAX_CHARS 60
@@ -20,7 +20,7 @@ static TextLayer* buttons2[3];
2020static TextLayer * buttons3 [3 ];
2121static TextLayer * * bbuttons [3 ];
2222
23- static InverterLayer * inverter_side ;
23+ static TextLayer * inverter_side ;
2424
2525static bool menu = false;
2626
@@ -296,27 +296,27 @@ static void initSidesAndText()
296296 text_layer_set_background_color (text_input , GColorClear );
297297 text_layer_set_font (text_input , fonts_get_system_font (FONT_KEY_GOTHIC_28_BOLD ));
298298 layer_add_child (window_layer , text_layer_get_layer (text_input ));
299-
300- // Create a text layer for the help
299+
300+ // Create a text layer for the help
301301 text_help = text_layer_create ( GRect ( 5 , bounds .size .h - 44 - 5 , 100 , 50 ) );
302302 text_layer_set_font ( text_help , fonts_get_system_font ( FONT_KEY_GOTHIC_14 ) );
303303 text_layer_set_text ( text_help , "Hold TOP: Case\nHold MID: Done\nHold BOT: Delete" );
304304 layer_add_child ( window_layer , text_layer_get_layer ( text_help ) );
305-
306- for (int i = 0 ; i < 3 ; i ++ )
307- {
308- buttons1 [i ] = text_layer_create ((GRect ) { .origin = { 115 , 12 * i }, .size = { 100 , 100 } });
309- buttons2 [i ] = text_layer_create ((GRect ) { .origin = { 115 , 12 * i + 50 }, .size = { 100 , 100 } });
310- buttons3 [i ] = text_layer_create ((GRect ) { .origin = { 115 , 12 * i + 100 }, .size = { 100 , 100 } });
305+
306+ // Side inverter
307+ inverter_side = text_layer_create ( GRect ( 110 , 0 , 34 , 169 ) );
308+ text_layer_set_background_color (inverter_side , GColorBlack );
309+ layer_add_child ( window_layer , text_layer_get_layer ( inverter_side ) );
310+
311+ for (int i = 0 ; i < 3 ; i ++ ) {
312+ for ( int j = 0 ; j < 3 ; j ++ ) {
313+ bbuttons [j ][i ] = text_layer_create (GRect (115 , 12 * i + 50 * j , 100 , 100 ));
314+ text_layer_set_background_color ( bbuttons [j ][i ], GColorBlack );
315+ text_layer_set_text_color (bbuttons [j ][i ], GColorWhite );
316+ layer_add_child ( window_layer , text_layer_get_layer ( bbuttons [j ][i ] ) );
317+ }
311318 }
312319
313- for ( int i = 0 ; i < 3 ; i ++ )
314- for ( int j = 0 ; j < 3 ; j ++ )
315- layer_add_child ( window_layer , text_layer_get_layer ( bbuttons [i ][j ] ) );
316-
317- // Side inverter
318- inverter_side = inverter_layer_create ( GRect ( 110 , 0 , 34 , 169 ) );
319- layer_add_child ( window_layer , inverter_layer_get_layer ( inverter_side ) );
320320}
321321
322322static void drawNotepadText ()
@@ -331,7 +331,7 @@ static void window_unload(Window *window)
331331 text_layer_destroy (text_title );
332332 text_layer_destroy (text_help );
333333
334- inverter_layer_destroy ( inverter_side );
334+ text_layer_destroy ( inverter_side );
335335
336336 for ( int i = 0 ; i < 3 ; i ++ )
337337 for ( int j = 0 ; j < 3 ; j ++ )
0 commit comments