/* Frame handler for the application. 
Handles all command events from the widgets in the application frame. */
static bool widget_settings_frame_command_handler(struct wtk_basic_frame *frame, win_command_t command_data)
/* Frame handler for the application. 
Handles all command events from the widgets in the application frame. */
static bool widget_settings_frame_command_handler(struct wtk_basic_frame *frame, win_command_t command_data)
{
	char command;
	command = (uintptr_t)command_data;
	UNUSED(frame);
	switch (command) {
	case ICON_SETTINGS_TIME_ID:
		app_widget_settings_on(false);
		app_widget_settings_time_on(true);
		break;
	case ICON_SETTINGS_DATE_ID:
		app_widget_settings_on(false);
		app_widget_settings_date_on(true);
		break;
	case ICON_SETTINGS_BACKLIGHT_ID:
		app_widget_settings_on(false);
		app_widget_settings_backlight_on(true);
		break;
	case ICON_SETTINGS_TSD_ID:
		demo_set_special_mode_status(DEMO_LCD_CALIBRATE_MODE, 1);
		break;
	case ICON_SETTINGS_RET_ID:
		app_widget_settings_on(false);
		app_widget_main_on(true);
		break;
	}
	return false;
}