📄 themeconverterui.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},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -