ThemeConverterUI.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:194k
源码类别:
MTK
开发平台:
C/C++
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * ThemeConverterUI.c
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * Contains function fort he filling of the MMI_theme structure
- *
- * Author:
- * -------
- * -------
- * Vikas Gupta(PMT)
- *
- *==============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- * removed!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *==============================================================================
- *******************************************************************************/
- #include "MMI_features.h"
- #include "stdC.h"
- #include "L4Dr1.h"
- #include "Fat_fs.h"
- #include "SettingProfile.h"
- #include "gui_data_types.h"
- #include "PixtelDataTypes.h"
- #include "PixcomFontEngine.h"
- #include "CustThemesRes.h"
- #include "ThemeConverter.h"
- #include "ThemeManager.h"
- #include "xml_def.h"
- #include "stdlib.h"
- #include "MainMenuDef.h"
- #include "GlobalDefs.h"
- #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
- /* Support original Theme V2 */
- #define __OLD_DLT_THEME_FILE_SUPPORT__
- extern MMI_theme **MMI_themes;
- extern XML_PARSER_STRUCT g_tc_parser;
- /* ... Add More MMI header */
- extern U16 g_tm_checkThemeVersion;
- U8 g_tc_audiothmfileformat; /* ritesh */
- U8 g_tc_newTheme=0;
- /*************************************************************/
- /* Theme Versioning Structures */
- tc_deviceinfo_struct g_tc_deviceInfo;
- tc_theme_download_info_struct g_tc_themeInfo;
- /**************************************************************/
- /*************************************color objects********************************/
- color UI_black_color = {0, 0, 0, 100};
- color UI_white_color = {255, 255, 255, 100};
- color lite_disp_scr_bg_color_DLT = {255, 255, 255, 100};
- color LSK_up_txt_col_DLT = {0, 0, 0, 100};
- color LSK_down_txt_col_DLT = {255, 255, 255, 100};
- color LSK_disabled_text_color = {128, 128, 128, 100};
- color RSK_up_txt_col_DLT = {0, 0, 0, 100};
- color RSK_down_txt_col_DLT = {255, 255, 255, 100};
- color RSK_disabled_text_color = {128, 128, 128, 100};
- color multitap_selector_color_DLT = {51, 88, 171, 100};
- color multitap_normal_text_color_DLT = {0, 0, 0, 100};
- color multitap_selected_text_color_DLT = {255, 255, 255, 100};
- color inputbox_normal_text_color_DLT = {0, 0, 0, 100};
- color inputbox_selected_text_color_DLT = {255, 255, 255, 100};
- color inputbox_selector_color_DLT = {51, 88, 171, 100};
- color inputbox_cursor_color_DLT = {255, 0, 0, 100};
- color title_text_color = {255, 255, 255, 100};
- color title_text_border_color = {0, 0, 0, 100};
- color title_shortcut_text_color = {0, 0, 0, 100};
- color list_normal_text_color = {0, 46, 114, 100};
- color list_selected_text_color = {255, 255, 255, 100};
- color list_disabled_text_color = {0, 0, 0, 100};
- color matrix_normal_text_color = {0, 0, 0, 100};
- color matrix_selected_text_color = {255, 255, 255, 100};
- color matrix_disabled_text_color = {0, 0, 0, 100};
- color menubar_index_background_color = {50, 90, 140, 100};
- color menubar_item_background_color = {149, 207, 247, 100};
- color menubar_index_text_color = {255, 255, 255, 100};
- color menubar_item_text_color = {0, 0, 0, 100};
- color shortcut_indicator_text_color = {0, 0, 0, 100};
- color shortcut_indicator_cursor_color = {255, 0, 0, 100};
- color drop_down_normal_text_color = {0, 0, 0, 100};
- color drop_down_disabled_text_color = {64, 64, 64, 100};
- color drop_down_focussed_text_color = {0, 0, 0, 100};
- color formatted_inputbox_selector_color = {51, 88, 171, 100};
- color formatted_inputbox_normal_text_color = {0, 0, 0, 100};
- color formatted_inputbox_disabled_text_color = {128, 128, 128, 100};
- color formatted_inputbox_selected_text_color = {255, 255, 255, 100};
- color formatted_inputbox_cursor_color = {255, 0, 0, 100};
- color list_main_menu_normal_text_color = {0, 46, 114, 100};
- color list_main_menu_selected_text_color = {255, 255, 255, 100};
- color list_main_menu_disabled_text_color = {0, 0, 0, 100};
- color matrix_main_menu_normal_text_color = {0, 0, 0, 100};
- color matrix_main_menu_selected_text_color = {255, 255, 255, 100};
- color matrix_main_menu_disabled_text_color = {0, 0, 0, 100};
- color circular_main_menu_normal_text_color = {0, 0, 0, 100};
- color circular_main_menu_selected_text_color = {255, 255, 255, 100};
- color circular_main_menu_disabled_text_color = {0, 0, 0, 100};
- color popup_screen_background_color = {246, 255, 171, 100};
- color popup_screen_border_color = {142, 204, 145, 100};
- color popup_description_text_color = {0, 0, 0, 100};
- color CM_screen_text_color = {0, 0, 255, 100};
- color datetime_bar_background_color = {176, 223, 141, 100};
- color datetime_bar_duration_background_color = {255, 255, 255, 100};
- color datetime_bar_date_text_color = {0, 0, 0, 100};
- color datetime_bar_time_text_color = {0, 0, 0, 100};
- color datetime_bar_duration_text_color = {224, 0, 0, 100};
- color datetime_bar_AOC_text_color = {0, 0, 0, 100};
- color button_bar_color = {216, 212, 212, 100};
- color information_bar_color = {255, 231, 93, 100};
- color input_method_text_color = {255, 0, 0, 100};
- color remaining_length_text_color = {0, 0, 0, 100};
- color statusbar0_background_color = {255, 255, 255, 100};
- color inline_edit_focussed_text_color = {0, 0, 0, 100};
- color inline_edit_unfocussed_text_color = {0, 0, 0, 100};
- color inline_edit_selected_text_color = {255, 255, 255, 100};
- color inline_edit_selector_color = {51, 88, 171, 100};
- color inline_edit_cursor_color = {255, 0, 0, 100};
- color inline_list_normal_text_color = {0, 0, 0, 100};
- color inline_list_selected_text_color = {0, 0, 0, 100};
- color inline_list_disabled_text_color = {0, 0, 0, 100};
- color PIN_inputbox_normal_text_color_DLT = {0, 0, 0, 100};
- color PIN_inputbox_selected_text_color_DLT = {255, 255, 255, 100};
- color PIN_inputbox_selector_color_DLT = {51, 88, 171, 100};
- color PIN_inputbox_cursor_color_DLT = {255, 0, 0, 100};
- color dialer_inputbox_normal_text_color_DLT = {0, 0, 0, 100};
- color dialer_inputbox_selected_text_color_DLT = {255, 255, 255, 100};
- color dialer_inputbox_selector_color_DLT = {51, 88, 171, 100};
- color dialer_inputbox_cursor_color_DLT = {255, 0, 0, 100};
- color virtual_keyboard_key_down_text_color = {255, 255, 255, 100};
- color virtual_keyboard_key_up_text_color = {0, 0, 0, 100};
- color virtual_keyboard_disp_area_text_color = {0, 0, 0, 100};
- /* Added for calculator color changes */
- color calculator_theme_color = {0, 0, 0, 100};
- color alarm_text_theme_color = {0, 0, 0, 100};
- color idle_scr_date_color_DLT = {234, 123, 45, 100};
- color idle_scr_date_border_color_DLT = {0,0,0,100};
- color idle_scr_time_color_DLT = {234, 123, 45, 100};
- color idle_scr_time_border_color_DLT = {0,0,0,100};
- color idle_scr_network_name_color_DLT = {255,255,255,100};
- color idle_scr_network_name_border_color_DLT = {0,0,0,100};
- color idle_scr_network_status_color_DLT = {0,255,255,100};
- color idle_scr_network_status_border_color_DLT = {0,0,0,100};
- color idle_scr_network_extra_color_DLT = {255,255,0,100};
- color idle_scr_network_extra_border_color_DLT = {0,0,0,100};
- /******************************************************************************/
- /**************************UI_filled_area objects******************************/
- UI_filled_area list_main_menu_normal_item_filler_DLT;
- UI_filled_area list_main_menu_selected_item_filler_DLT;
- UI_filled_area list_main_menu_disabled_item_filler_DLT;
- UI_filled_area matrix_main_menu_normal_item_filler_DLT;
- UI_filled_area matrix_main_menu_selected_item_filler_DLT;
- UI_filled_area matrix_main_menu_disabled_item_filler_DLT;
- UI_filled_area LSK_up_DLT =
- {
- UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {118, 224, 15, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area LSK_down_DLT =
- {
- UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SHADOW,
- UI_NULL_IMAGE,
- NULL,
- {118, 224, 15, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area LSK_disabled_filler =
- {
- UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SHADOW,
- UI_NULL_IMAGE,
- NULL,
- {118, 224, 15, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area RSK_up_DLT =
- {
- UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {118, 224, 15, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area RSK_down_DLT =
- {
- UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SHADOW,
- UI_NULL_IMAGE,
- NULL,
- {118, 224, 15, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area RSK_disabled_filler =
- {
- UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SHADOW,
- UI_NULL_IMAGE,
- NULL,
- {118, 224, 15, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area multitap_filler =
- {
- UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SINGLE_BORDER | UI_FILLED_AREA_SHADOW |
- UI_FILLED_AREA_SHADOW_DOUBLE_LINE,
- UI_NULL_IMAGE,
- NULL,
- {196, 228, 251, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {128, 128, 128, 100},
- 0
- };
- UI_filled_area inputbox_filler_DLT;
- UI_filled_area scrollbar_background_filler_DLT;
- UI_filled_area scrollbar_indicator_filler;
- UI_filled_area Title_DLT =
- {
- UI_FILLED_AREA_TYPE_COLOR,
- UI_IMAGE_ID_NULL,
- NULL,
- {66, 96, 215, 100},
- {0, 0, 0, 100},
- {0, 0, 0, 100},
- {0, 0, 0, 100},
- 0
- };
- UI_filled_area list_background_filler =
- {
- UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area list_normal_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {190, 220, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area list_selected_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {0, 240, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area list_disabled_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {141, 167, 191, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area matrix_background_filler = {UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SINGLE_BORDER,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 255
- };
- UI_filled_area matrix_normal_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area matrix_selected_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {51, 88, 171, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area matrix_disabled_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {200, 200, 200, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area shortcut_indicator_background_filler = {UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SINGLE_BORDER,
- UI_NULL_IMAGE,
- NULL,
- {224, 224, 224, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area formatted_inputbox_normal_filler = {UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SINGLE_BORDER,
- UI_NULL_IMAGE,
- NULL,
- {200, 200, 200, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area formatted_inputbox_selected_filler = {UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SINGLE_BORDER,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area main_menu_background_filler_DLT = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area general_background_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area popup_description_background_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {245, 247, 115, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area inline_list_background_filler =
- {
- UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {240, 240, 240, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area inline_list_normal_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {240, 240, 240, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area inline_list_selected_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {167, 232, 93, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area inline_list_disabled_item_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {192, 192, 192, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area inline_edit_focussed_filler = {UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SINGLE_BORDER,
- NULL,
- NULL,
- {167, 232, 93, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area inline_edit_unfocussed_filler = {UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SINGLE_BORDER,
- NULL,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area inline_edit_noboundary_filler = {UI_FILLED_AREA_TYPE_COLOR,
- NULL,
- NULL,
- {167, 232, 93, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area PIN_inputbox_background_filler_DLT =
- {
- UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_SINGLE_BORDER,
- UI_NULL_IMAGE,
- NULL,
- {255, 222, 255, 100},
- {0, 0, 0, 0},
- {255, 0, 0, 100},
- {255, 0, 0, 100},
- 0
- };
- UI_filled_area PIN_screen_background_filler_DLT = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area network_screen_background_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area aphorism_screen_background_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area CM_screen_background_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area progress_screen_background_filler = {UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area dialer_inputbox_background_filler =
- {
- UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 255, 255, 100},
- {0, 0, 0, 0},
- {0, 0, 0, 100},
- {0, 0, 0, 0},
- 0
- };
- UI_filled_area virtual_keyboard_key_down_filler =
- {
- UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {0, 0, 0, 100},
- {0, 0, 0, 100},
- {0, 0, 0, 100},
- {128, 128, 128, 100},
- 0
- };
- UI_filled_area alarm_background_filler_DLT =
- {
- UI_FILLED_AREA_TYPE_COLOR,
- UI_NULL_IMAGE,
- NULL,
- {255, 00, 255, 100},
- {0, 0, 0, 100},
- {0, 0, 0, 100},
- {128, 128, 128, 100},
- 0
- };
- /******************************************************************************/
- /****************************button fonts objects*********************************/
- stFontAttribute butt_font;
- /* UI_font_type button_font = &butt_font;//=(stFontAttribute*)malloc(sizeof(stFontAttribute)); */
- stFontAttribute matrix_menu_font; /* =(stFontAttribute*)malloc(sizeof(stFontAttribute));; */
- stFontAttribute multitap_font;
- stFontAttribute inputbox_font;
- stFontAttribute window_title_font;
- stFontAttribute list_menu_font;
- stFontAttribute menu_bar_index_font;
- stFontAttribute menu_bar_item_font;
- stFontAttribute shortcut_indicator_font;
- stFontAttribute title_text_font;
- stFontAttribute drop_down_control_font;
- stFontAttribute list_main_menu_font;
- stFontAttribute matrix_main_menu_font;
- stFontAttribute virtual_keyboard_font;
- S32 scrollbar_size;
- S32 bg_opacity_full_DLT;
- /********************************************************************************/
- /****************************************************************************
- MMI theme structure filled using the Downloaded theme file
- *****************************************************************************/
- MMI_theme g_tc_theme_DLT =
- {
- (UI_filled_area *)&LSK_up_DLT,
- (UI_filled_area *)&LSK_down_DLT,
- (UI_filled_area *)&LSK_disabled_filler,
- (UI_filled_area *)&RSK_up_DLT,
- (UI_filled_area *)&RSK_down_DLT,
- (UI_filled_area *)&RSK_disabled_filler,
- (UI_filled_area *)&multitap_filler,
- (UI_filled_area *)&inputbox_filler_DLT,
- (UI_filled_area *)&scrollbar_background_filler_DLT,
- (UI_filled_area *)&scrollbar_indicator_filler,
- (UI_filled_area *)&Title_DLT,
- (UI_filled_area *)&list_background_filler,
- (UI_filled_area *)&list_normal_item_filler,
- (UI_filled_area *)&list_selected_item_filler,
- (UI_filled_area *)&list_disabled_item_filler,
- (UI_filled_area *)&matrix_background_filler,
- (UI_filled_area *)&matrix_normal_item_filler,
- (UI_filled_area *)&matrix_selected_item_filler,
- (UI_filled_area *)&matrix_disabled_item_filler,
- (UI_filled_area *)&shortcut_indicator_background_filler,
- (UI_filled_area *)&formatted_inputbox_normal_filler,
- (UI_filled_area *)&formatted_inputbox_selected_filler,
- (UI_filled_area *)&main_menu_background_filler_DLT,
- (UI_filled_area *)&list_main_menu_normal_item_filler_DLT,
- (UI_filled_area *)&list_main_menu_selected_item_filler_DLT,
- (UI_filled_area *)&list_main_menu_disabled_item_filler_DLT,
- (UI_filled_area *)&matrix_main_menu_normal_item_filler_DLT,
- (UI_filled_area *)&matrix_main_menu_selected_item_filler_DLT,
- (UI_filled_area *)&matrix_main_menu_disabled_item_filler_DLT,
- (UI_filled_area *)&general_background_filler,
- (UI_filled_area *)&popup_description_background_filler,
- (UI_filled_area *)&inline_list_background_filler,
- (UI_filled_area *)&inline_list_normal_item_filler,
- (UI_filled_area *)&inline_list_selected_item_filler,
- (UI_filled_area *)&inline_list_disabled_item_filler,
- (UI_filled_area *)&inline_edit_focussed_filler,
- (UI_filled_area *)&inline_edit_unfocussed_filler,
- (UI_filled_area *)&inline_edit_noboundary_filler,
- (UI_filled_area *)&PIN_inputbox_background_filler_DLT,
- (UI_filled_area *)&PIN_screen_background_filler_DLT,
- (UI_filled_area *)&network_screen_background_filler,
- (UI_filled_area *)&aphorism_screen_background_filler,
- (UI_filled_area *)&CM_screen_background_filler,
- (UI_filled_area *)&progress_screen_background_filler,
- (UI_filled_area *)&dialer_inputbox_background_filler,
- (UI_filled_area *)&virtual_keyboard_key_down_filler,
- (UI_filled_area *)&alarm_background_filler_DLT,
- #ifdef UI_SMALL_LIST_SCREEN
- NULL,
- NULL,
- #endif /* UI_SMALL_LIST_SCREEN */
- (color *) & UI_black_color,
- (color *) & UI_white_color,
- (color *) & lite_disp_scr_bg_color_DLT,
- (color *) & LSK_up_txt_col_DLT,
- (color *) & LSK_down_txt_col_DLT,
- (color *) & LSK_disabled_text_color,
- (color *) & RSK_up_txt_col_DLT,
- (color *) & RSK_down_txt_col_DLT,
- (color *) & RSK_disabled_text_color,
- (color *) & multitap_selector_color_DLT,
- (color *) & multitap_normal_text_color_DLT,
- (color *) & multitap_selected_text_color_DLT,
- (color *) & inputbox_normal_text_color_DLT,
- (color *) & inputbox_selected_text_color_DLT,
- (color *) & inputbox_selector_color_DLT,
- (color *) & inputbox_cursor_color_DLT,
- (color *) & title_text_color,
- (color *) & title_text_border_color,
- (color *) & title_shortcut_text_color,
- (color *) & list_normal_text_color,
- (color *) & list_selected_text_color,
- (color *) & list_disabled_text_color,
- (color *) & matrix_normal_text_color,
- (color *) & matrix_selected_text_color,
- (color *) & matrix_disabled_text_color,
- (color *) & menubar_index_background_color,
- (color *) & menubar_item_background_color,
- (color *) & menubar_index_text_color,
- (color *) & menubar_item_text_color,
- (color *) & shortcut_indicator_text_color,
- (color *) & shortcut_indicator_cursor_color,
- (color *) & drop_down_normal_text_color,
- (color *) & drop_down_disabled_text_color,
- (color *) & drop_down_focussed_text_color,
- (color *) & formatted_inputbox_selector_color,
- (color *) & formatted_inputbox_normal_text_color,
- (color *) & formatted_inputbox_disabled_text_color,
- (color *) & formatted_inputbox_selected_text_color,
- (color *) & formatted_inputbox_cursor_color,
- (color *) & list_main_menu_normal_text_color,
- (color *) & list_main_menu_selected_text_color,
- (color *) & list_main_menu_disabled_text_color,
- (color *) & matrix_main_menu_normal_text_color,
- (color *) & matrix_main_menu_selected_text_color,
- (color *) & matrix_main_menu_disabled_text_color,
- (color *) & circular_main_menu_normal_text_color,
- (color *) & circular_main_menu_selected_text_color,
- (color *) & circular_main_menu_disabled_text_color,
- (color *) & popup_screen_background_color,
- (color *) & popup_screen_border_color,
- (color *) & CM_screen_text_color,
- (color *) & popup_description_text_color,
- (color *) & datetime_bar_background_color,
- (color *) & datetime_bar_duration_background_color,
- (color *) & datetime_bar_date_text_color,
- (color *) & datetime_bar_time_text_color,
- (color *) & datetime_bar_duration_text_color,
- (color *) & datetime_bar_AOC_text_color,
- (color *) & button_bar_color,
- (color *) & information_bar_color,
- (color *) & input_method_text_color,
- (color *) & remaining_length_text_color,
- (color *) & statusbar0_background_color,
- (color *) & inline_edit_focussed_text_color,
- (color *) & inline_edit_unfocussed_text_color,
- (color *) & inline_edit_selected_text_color,
- (color *) & inline_edit_selector_color,
- (color *) & inline_edit_cursor_color,
- (color *) & inline_list_normal_text_color,
- (color *) & inline_list_selected_text_color,
- (color *) & inline_list_disabled_text_color,
- (color *) & PIN_inputbox_normal_text_color_DLT,
- (color *) & PIN_inputbox_selected_text_color_DLT,
- (color *) & PIN_inputbox_selector_color_DLT,
- (color *) & PIN_inputbox_cursor_color_DLT,
- (color *) & dialer_inputbox_normal_text_color_DLT,
- (color *) & dialer_inputbox_selected_text_color_DLT,
- (color *) & dialer_inputbox_selector_color_DLT,
- (color *) & dialer_inputbox_cursor_color_DLT,
- (color *) & virtual_keyboard_key_down_text_color,
- (color *) & virtual_keyboard_key_up_text_color,
- (color *) & virtual_keyboard_key_down_text_color,
- (color *) & virtual_keyboard_key_up_text_color,
- (color *) & virtual_keyboard_disp_area_text_color,
- (color *) & calculator_theme_color,
- (color *) & alarm_text_theme_color,
- (color *) & idle_scr_date_color_DLT,
- (color *) & idle_scr_time_color_DLT,
- (color *) & idle_scr_date_border_color_DLT,
- (color *) & idle_scr_time_border_color_DLT,
- (color *) & idle_scr_network_name_color_DLT,
- (color *) & idle_scr_network_name_border_color_DLT,
- (color *) & idle_scr_network_status_color_DLT,
- (color *) & idle_scr_network_status_border_color_DLT,
- (color *) & idle_scr_network_extra_color_DLT,
- (color *) & idle_scr_network_extra_border_color_DLT,
- &butt_font,
- &multitap_font,
- &inputbox_font,
- &window_title_font,
- &list_menu_font,
- &matrix_menu_font,
- &menu_bar_index_font,
- &menu_bar_item_font,
- &shortcut_indicator_font,
- &title_text_font,
- &drop_down_control_font,
- &list_main_menu_font,
- &matrix_main_menu_font,
- &virtual_keyboard_font,
- 10,
- 255, /*UI_BG_OPACITY_FULL_DEFAULT*/
- 90, /*UI_BG_OPACITY_HIGH_DEFAULT*/
- 70, /*UI_BG_OPACITY_MEDIUM_DEFAULT*/
- 40 /*UI_BG_OPACITY_LOW_DEFAULT*/
- };
- MMI_theme *g_tc_theme_converter_p = &g_tc_theme_DLT;
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_ascii_to_hex_convert
- * DESCRIPTION
- * (S8 character)
- * converts a given character from ascii to hex value
- * PARAMETERS
- * character [IN] Value
- * RETURNS
- * hex equivalent of the ascii character
- *****************************************************************************/
- U8 mmi_tc_ascii_to_hex_convert(S8 character)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (character > 47 && character < 58) /* Digits 0..9 */
- {
- return (character - 48);
- }
- else if (character > 64 && character < 71) /* Characters A..F */
- {
- return (character - 55);
- }
- else if (character > 96 && character < 103) /* Characters a..f */
- {
- return (character - 87);
- }
- else
- {
- return (0xFF);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_convert_ascii_hex_to_dec
- * DESCRIPTION
- * Converts Ascii value to Decimal value
- * PARAMETERS
- * character [IN] Ascii value
- * RETURNS
- * decimal equivalent of the ascii character
- *****************************************************************************/
- U8 mmi_tc_convert_ascii_hex_to_dec(S8 character)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (character > 47 && character < 58) /* Digits 0..9 */
- {
- return (character - 48);
- }
- else if (character > 64 && character < 71) /* Characters A..F */
- {
- return (character - 55);
- }
- else if (character > 96 && character < 103) /* Characters a..f */
- {
- return (character - 87);
- }
- else
- {
- return (0xFF);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_extract_no_of_bits
- * DESCRIPTION
- * (U8 *Data,U16 Offset, U16 Bits)
- * This function extracts given no of bits form the string provided
- * PARAMETERS
- * Data_p [?]
- * Offset [IN]
- * Bits [IN]
- * character(?)
- * RETURNS
- * extracted number of bits
- *****************************************************************************/
- U8 mmi_tc_extract_no_of_bits(U8 *Data_p, U16 Offset, U16 Bits)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- const U16 BITSPERVAL = 4;
- U8 ClearBits[] = {0x0, 0x1, 0x3, 0x7, 0xf};
- U8 val1 = 0;
- U8 val2 = 0;
- U8 returnval = 0;
- U16 index = Offset / BITSPERVAL;
- U8 BitsfromFirstIndex = BITSPERVAL - (Offset % BITSPERVAL);
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (Bits > 2 * BITSPERVAL)
- {
- return 0;
- }
- val1 = mmi_tc_ascii_to_hex_convert(Data_p[index]);
- val1 &= ClearBits[BitsfromFirstIndex];
- if (BitsfromFirstIndex < Bits)
- {
- /* Do nothing */
- }
- else if (BitsfromFirstIndex == Bits)
- {
- return val1;
- }
- else /* (BitsfromFirstIndex > Bits) */
- {
- return (val1 >> (BitsfromFirstIndex - Bits));
- }
- val2 = mmi_tc_convert_ascii_hex_to_dec(Data_p[index + 1]);
- returnval = val1 << BITSPERVAL | val2;
- if ((BitsfromFirstIndex + BITSPERVAL) >= Bits)
- {
- returnval >>= (BITSPERVAL - Bits + BitsfromFirstIndex);
- }
- else
- {
- returnval <<= (Bits - BitsfromFirstIndex - BITSPERVAL);
- val1 = mmi_tc_convert_ascii_hex_to_dec(Data_p[index + 2]);
- val1 >>= ((2 * BITSPERVAL) + BitsfromFirstIndex - Bits);
- returnval |= val1;
- }
- return returnval;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_list_main_menu_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure's list main menu filler
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_list_main_menu_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "normal_item_col", strlen("normal_item_col")))
- {
- list_main_menu_normal_item_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_main_menu_normal_item_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_main_menu_normal_item_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_main_menu_normal_item_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_main_menu_normal_item_filler = (UI_filled_area*)&list_main_menu_normal_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "normal_item_flag", strlen("normal_item_flag")))
- {
- list_main_menu_normal_item_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.list_main_menu_normal_item_filler = (UI_filled_area*)&list_main_menu_normal_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "selected_item_col", strlen("selected_item_col")))
- {
- list_main_menu_selected_item_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_main_menu_selected_item_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_main_menu_selected_item_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_main_menu_selected_item_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_main_menu_selected_item_filler = (UI_filled_area*)&list_main_menu_selected_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "selected_item_flag", strlen("selected_item_flag")))
- {
- list_main_menu_selected_item_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.list_main_menu_selected_item_filler = (UI_filled_area*)&list_main_menu_selected_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "disabled_item_col", strlen("disabled_item_col")))
- {
- list_main_menu_disabled_item_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_main_menu_disabled_item_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_main_menu_disabled_item_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_main_menu_disabled_item_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_main_menu_disabled_item_filler = (UI_filled_area*)&list_main_menu_disabled_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "disabled_item_flag", strlen("disabled_item_flag")))
- {
- list_main_menu_disabled_item_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.list_main_menu_disabled_item_filler = (UI_filled_area*)&list_main_menu_disabled_item_filler_DLT;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_matrix_main_menu_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure's matrix main menu filler
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_matrix_main_menu_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "normal_item_col", strlen("normal_item_col")))
- {
- matrix_main_menu_normal_item_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_main_menu_normal_item_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_main_menu_normal_item_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_main_menu_normal_item_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_main_menu_normal_item_filler = (UI_filled_area*)&matrix_main_menu_normal_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "normal_item_flag", strlen("normal_item_flag")))
- {
- matrix_main_menu_normal_item_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.matrix_main_menu_normal_item_filler = (UI_filled_area*)&matrix_main_menu_normal_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "selected_item_col", strlen("selected_item_col")))
- {
- matrix_main_menu_selected_item_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_main_menu_selected_item_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_main_menu_selected_item_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_main_menu_selected_item_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_main_menu_selected_item_filler = (UI_filled_area*)&matrix_main_menu_selected_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "selected_item_flag", strlen("selected_item_flag")))
- {
- matrix_main_menu_selected_item_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.matrix_main_menu_selected_item_filler = (UI_filled_area*)&matrix_main_menu_selected_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "disabled_item_col", strlen("disabled_item_col")))
- {
- matrix_main_menu_disabled_item_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_main_menu_disabled_item_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_main_menu_disabled_item_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_main_menu_disabled_item_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_main_menu_disabled_item_filler = (UI_filled_area*)&matrix_main_menu_disabled_item_filler_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "disabled_item_flag", strlen("disabled_item_flag")))
- {
- matrix_main_menu_disabled_item_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.matrix_main_menu_disabled_item_filler = (UI_filled_area*)&matrix_main_menu_disabled_item_filler_DLT;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_opacity_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure's opacity values
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_opacity_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "full", strlen("full")))
- {
- g_tc_theme_DLT.bg_opacity_full = (S32) atoi((PS8)attr_p[attrCount + 1]);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "high", strlen("high")))
- {
- g_tc_theme_DLT.bg_opacity_high = (S32) atoi((PS8) attr_p[attrCount + 1]);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "medium", strlen("medium")))
- {
- g_tc_theme_DLT.bg_opacity_medium = (S32) atoi((PS8) attr_p[attrCount + 1]);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "low", strlen("low")))
- {
- g_tc_theme_DLT.bg_opacity_low = (S32) atoi((PS8) attr_p[attrCount + 1]);
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_idle_scr_font_col_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure's idle scr font color values
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_idle_scr_font_col_tag_handler(U8**attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "idle_scr_date_txt", strlen("idle_scr_date_txt")))
- {
- idle_scr_date_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_date_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_date_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_date_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_date_color = (color*) & idle_scr_date_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_date_border_txt", strlen("idle_scr_date_border_txt")))
- {
- idle_scr_date_border_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_date_border_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_date_border_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_date_border_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_date_border_color = (color*) & idle_scr_date_border_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_time_txt", strlen("idle_scr_time_txt")))
- {
- idle_scr_time_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_time_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_time_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_time_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_time_color = (color*) & idle_scr_time_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_time_border_txt", strlen("idle_scr_time_border_txt")))
- {
- idle_scr_time_border_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_time_border_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_time_border_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_time_border_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_time_border_color = (color*) & idle_scr_time_border_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_network_name_txt", strlen("idle_scr_network_name_txt")))
- {
- idle_scr_network_name_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_network_name_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_network_name_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_network_name_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_network_name_color = (color*) & idle_scr_network_name_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_network_name_border_txt", strlen("idle_scr_network_name_border_txt")))
- {
- idle_scr_network_name_border_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_network_name_border_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_network_name_border_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_network_name_border_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_network_name_border_color = (color*) & idle_scr_network_name_border_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_network_status_txt", strlen("idle_scr_network_status_txt")))
- {
- idle_scr_network_status_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_network_status_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_network_status_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_network_status_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_network_status_color = (color*) & idle_scr_network_status_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_network_status_border_txt", strlen("idle_scr_network_status_border_txt")))
- {
- idle_scr_network_status_border_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_network_status_border_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_network_status_border_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_network_status_border_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_network_status_border_color = (color*) & idle_scr_network_status_border_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_network_extra_txt", strlen("idle_scr_network_extra_txt")))
- {
- idle_scr_network_extra_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_network_extra_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_network_extra_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_network_extra_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_network_extra_color = (color*) & idle_scr_network_extra_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_network_extra_border_txt", strlen("idle_scr_network_extra_border_txt")))
- {
- idle_scr_network_extra_border_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_network_extra_border_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_network_extra_border_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_network_extra_border_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_network_extra_border_color = (color*) & idle_scr_network_extra_border_color_DLT;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_lsk_up_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for lsk up position
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_lsk_up_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- LSK_up_DLT.c.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- LSK_up_DLT.c.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- LSK_up_DLT.c.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- LSK_up_DLT.c.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- LSK_up_DLT.border_color.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- LSK_up_DLT.border_color.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- LSK_up_DLT.border_color.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- LSK_up_DLT.border_color.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- LSK_up_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.LSK_up_filler = (UI_filled_area*)&LSK_up_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- LSK_up_txt_col_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- LSK_up_txt_col_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- LSK_up_txt_col_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- LSK_up_txt_col_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.LSK_up_text_color = (color*) & LSK_up_txt_col_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- LSK_up_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_lsk_down_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for lsk down position
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_lsk_down_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- LSK_down_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- LSK_down_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- LSK_down_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- LSK_down_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- LSK_down_DLT.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- LSK_down_DLT.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- LSK_down_DLT.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- LSK_down_DLT.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- LSK_down_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.LSK_down_filler = (UI_filled_area*)&LSK_down_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- LSK_down_txt_col_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- LSK_down_txt_col_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- LSK_down_txt_col_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- LSK_down_txt_col_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.LSK_down_text_color = (color*) & LSK_down_txt_col_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- LSK_down_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_rsk_up_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for rsk up position
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_rsk_up_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- RSK_up_DLT.c.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- RSK_up_DLT.c.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- RSK_up_DLT.c.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- RSK_up_DLT.c.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- RSK_up_DLT.border_color.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- RSK_up_DLT.border_color.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- RSK_up_DLT.border_color.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- RSK_up_DLT.border_color.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- RSK_up_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.RSK_up_filler = (UI_filled_area*)&RSK_up_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- RSK_up_txt_col_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- RSK_up_txt_col_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- RSK_up_txt_col_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- RSK_up_txt_col_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.RSK_up_text_color = (color*) & RSK_up_txt_col_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- RSK_up_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_rsk_down_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for rsk down position
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_rsk_down_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- RSK_down_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- RSK_down_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- RSK_down_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- RSK_down_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- RSK_down_DLT.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- RSK_down_DLT.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- RSK_down_DLT.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- RSK_down_DLT.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- RSK_down_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.RSK_down_filler = (UI_filled_area*)&RSK_down_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- RSK_down_txt_col_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- RSK_down_txt_col_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- RSK_down_txt_col_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- RSK_down_txt_col_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.RSK_down_text_color = (color*) & RSK_down_txt_col_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- RSK_down_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- attrCount += 2;
- }
- }
- /* Title_TAG handler */
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_title_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for Title Tag
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_title_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- Title_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- Title_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- Title_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- Title_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- Title_DLT.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- Title_DLT.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- Title_DLT.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- Title_DLT.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- Title_DLT.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.title_filler = (UI_filled_area*)&Title_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- title_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- title_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- title_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- title_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.title_text_color = (color*) & title_text_color;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "txt_border_col", strlen("txt_border_col")))
- {
- title_text_border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- title_text_border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- title_text_border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- title_text_border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.title_text_border_color = (color*) & title_text_border_color;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "shortcut_txt_col", strlen("shortcut_txt_col")))
- {
- title_shortcut_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- title_shortcut_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- title_shortcut_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- title_shortcut_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.title_shortcut_text_color = (color*) & title_shortcut_text_color;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "bk_img_offset", strlen("bk_img_offset")))
- {
- Title_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- else if (!strncmp((PS8) attr_p[attrCount], "txtfont", strlen("txtfont")))
- {
- title_text_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- title_text_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- title_text_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- title_text_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- title_text_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- title_text_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- title_text_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- title_text_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.title_text_font = (stFontAttribute*) & title_text_font;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "windowtitlefont", strlen("windowtitlefont")))
- {
- window_title_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- window_title_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- window_title_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- window_title_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- window_title_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- window_title_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- window_title_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- window_title_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.window_title_font = (stFontAttribute*) & window_title_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_scroll_bar_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for scroll bar
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_scroll_bar_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- scrollbar_background_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- scrollbar_background_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- scrollbar_background_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- scrollbar_background_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.scrollbar_background_filler = (UI_filled_area*)&scrollbar_background_filler_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "indicator_col", strlen("indicator_col")))
- {
- scrollbar_indicator_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- scrollbar_indicator_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- scrollbar_indicator_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- scrollbar_indicator_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.scrollbar_indicator_filler = (UI_filled_area*)&scrollbar_indicator_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "size", strlen("size")))
- {
- scrollbar_size = (S32) atoi((const char*)attr_p[attrCount + 1]);
- g_tc_theme_DLT.scrollbar_size = (S32) scrollbar_size;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_multi_tap_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for multi tap structure
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_multi_tap_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- multitap_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- multitap_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- multitap_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- multitap_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- multitap_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- multitap_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- multitap_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- multitap_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- multitap_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- multitap_filler.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.multitap_filler = (UI_filled_area*)&multitap_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- multitap_normal_text_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- multitap_normal_text_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- multitap_normal_text_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- multitap_normal_text_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.multitap_normal_text_color = (color*) & multitap_normal_text_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "selection_col", strlen("selection_col")))
- {
- multitap_selector_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- multitap_selector_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- multitap_selector_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- multitap_selector_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.multitap_selector_color = (color*) & multitap_selector_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "sel_txt_col", strlen("sel_txt_col")))
- {
- multitap_selected_text_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- multitap_selected_text_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- multitap_selected_text_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- multitap_selected_text_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.multitap_selected_text_color = (color*) & multitap_selected_text_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "font", strlen("font")))
- {
- multitap_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- multitap_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- multitap_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- multitap_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- multitap_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- multitap_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- multitap_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- multitap_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.multitap_font = (stFontAttribute*) & multitap_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_call_scr_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for caller screen
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_call_scr_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- CM_screen_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- CM_screen_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- CM_screen_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- CM_screen_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- CM_screen_background_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- CM_screen_background_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- CM_screen_background_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- CM_screen_background_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- CM_screen_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- CM_screen_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- CM_screen_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- CM_screen_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.CM_screen_text_color = (color*) & CM_screen_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- CM_screen_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- CM_screen_background_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.CM_screen_background_filler = (UI_filled_area*)&CM_screen_background_filler;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_datetimebar_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for datetimebar
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_datetimebar_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- datetime_bar_background_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- datetime_bar_background_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- datetime_bar_background_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- datetime_bar_background_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.datetime_bar_background_color = (color*) & datetime_bar_background_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "duration_bk_col", strlen("duration_bk_col")))
- {
- datetime_bar_duration_background_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- datetime_bar_duration_background_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- datetime_bar_duration_background_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- datetime_bar_duration_background_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.datetime_bar_duration_background_color = (color*) & datetime_bar_duration_background_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "duration_txt_col", strlen("duration_txt_col")))
- {
- datetime_bar_duration_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- datetime_bar_duration_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- datetime_bar_duration_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- datetime_bar_duration_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.datetime_bar_duration_text_color = (color*) & datetime_bar_duration_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "aoc_txt_col", strlen("aoc_txt_col")))
- {
- datetime_bar_AOC_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- datetime_bar_AOC_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- datetime_bar_AOC_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- datetime_bar_AOC_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.datetime_bar_AOC_text_color = (color*) & datetime_bar_AOC_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "dt_txt_col", strlen("dt_txt_col")))
- {
- datetime_bar_date_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- datetime_bar_date_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- datetime_bar_date_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- datetime_bar_date_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.datetime_bar_date_text_color = (color*) & datetime_bar_date_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "tm_txt_col", strlen("tm_txt_col")))
- {
- datetime_bar_time_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- datetime_bar_time_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- datetime_bar_time_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- datetime_bar_time_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.datetime_bar_time_text_color = (color*) & datetime_bar_time_text_color;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_drop_dn_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for drop_dn
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_drop_dn_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "normal_txt_col", strlen("normal_txt_col")))
- {
- drop_down_normal_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- drop_down_normal_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- drop_down_normal_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- drop_down_normal_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.drop_down_normal_text_color = (color*) & drop_down_normal_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "disabled_txt_col", strlen("disabled_txt_col")))
- {
- drop_down_disabled_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- drop_down_disabled_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- drop_down_disabled_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- drop_down_disabled_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.drop_down_disabled_text_color = (color*) & drop_down_disabled_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "focussed_txt_col", strlen("focussed_txt_col")))
- {
- drop_down_focussed_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- drop_down_focussed_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- drop_down_focussed_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- drop_down_focussed_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.drop_down_focussed_text_color = (color*) & drop_down_focussed_text_color;
- }