mirror of
https://github.com/openharmony/developtools_ace-js2bundle.git
synced 2026-07-19 18:23:34 -04:00
e73398d464
Signed-off-by: houhaoyu <houhaoyu@huawei.com> Change-Id: I25cb3ea67d45402dfcc6c7814e2e53ea27eb01e0
453 lines
15 KiB
JavaScript
453 lines
15 KiB
JavaScript
/*
|
|
* Copyright (c) 2021 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
const THEME_PROP_GROUPS = {
|
|
emui_color_fg: "0",
|
|
ohos_color_fg: "0",
|
|
emui_color_fg_inverse: "1",
|
|
ohos_color_fg_inverse: "1",
|
|
emui_color_bg: "3",
|
|
ohos_color_bg: "3",
|
|
emui_accent: "4",
|
|
ohos_accent: "4",
|
|
emui_accent_inverse: "5",
|
|
ohos_accent_inverse: "5",
|
|
emui_functional_red: "6",
|
|
ohos_functional_red: "6",
|
|
emui_color_warning: "7",
|
|
ohos_color_warning: "7",
|
|
emui_color_handup: "8",
|
|
ohos_color_handup: "8",
|
|
emui_color_connected: "9",
|
|
ohos_color_connected: "9",
|
|
emui_color_control_activated: "50",
|
|
ohos_color_control_activated: "50",
|
|
emui_control_normal: "51",
|
|
ohos_control_normal: "51",
|
|
emui_color_divider_horizontal: "52",
|
|
ohos_color_divider_horizontal: "52",
|
|
emui_color_subheader_divider: "53",
|
|
ohos_color_subheader_divider: "53",
|
|
emui_color_click_effect_default: "54",
|
|
ohos_color_click_effect_default: "54",
|
|
emui_fab_icon: "124",
|
|
ohos_fab_icon: "124",
|
|
emui_fab_bg_normal: "127",
|
|
ohos_fab_bg_normal: "127",
|
|
emui_card_bg: "135",
|
|
ohos_card_bg: "135",
|
|
emui_color_tooltips_bg: "137",
|
|
ohos_color_tooltips_bg: "137",
|
|
emui_activated: "138",
|
|
ohos_activated: "138",
|
|
emui_color_primary: "200",
|
|
ohos_color_primary: "200",
|
|
emui_primary_inverse: "201",
|
|
ohos_primary_inverse: "201",
|
|
emui_color_secondary: "202",
|
|
ohos_color_secondary: "202",
|
|
emui_color_tertiary: "203",
|
|
ohos_color_tertiary: "203",
|
|
emui_color_text_primary: "250",
|
|
ohos_color_text_primary: "250",
|
|
emui_text_primary_inverse: "251",
|
|
ohos_text_primary_inverse: "251",
|
|
emui_color_text_secondary: "252",
|
|
ohos_color_text_secondary: "252",
|
|
emui_text_secondary_inverse: "253",
|
|
ohos_text_secondary_inverse: "253",
|
|
emui_color_text_tertiary: "254",
|
|
ohos_color_text_tertiary: "254",
|
|
emui_text_tertiary_inverse: "255",
|
|
ohos_text_tertiary_inverse: "255",
|
|
emui_text_color_alert_dialog_list_item: "256",
|
|
ohos_text_color_alert_dialog_list_item: "256",
|
|
emui_functional_blue: "257",
|
|
ohos_functional_blue: "257",
|
|
emui_text_hint: "258",
|
|
ohos_text_hint: "258",
|
|
emui_text_hint_inverse: "259",
|
|
ohos_text_hint_inverse: "259",
|
|
emui_functional_blue_inverse: "260",
|
|
ohos_functional_blue_inverse: "260",
|
|
emui_color_text_highlight: "261",
|
|
ohos_color_text_highlight: "261",
|
|
emui_text_highlight_inverse: "262",
|
|
ohos_text_highlight_inverse: "262",
|
|
emui_color_1: "300",
|
|
ohos_color_1: "300",
|
|
emui_color_2: "301",
|
|
ohos_color_2: "301",
|
|
emui_color_3: "302",
|
|
ohos_color_3: "302",
|
|
emui_color_4: "303",
|
|
ohos_color_4: "303",
|
|
emui_color_5: "304",
|
|
ohos_color_5: "304",
|
|
emui_color_6: "305",
|
|
ohos_color_6: "305",
|
|
emui_color_7: "306",
|
|
ohos_color_7: "306",
|
|
emui_color_8: "307",
|
|
ohos_color_8: "307",
|
|
emui_color_9: "308",
|
|
ohos_color_9: "308",
|
|
emui_color_10: "309",
|
|
ohos_color_10: "309",
|
|
emui_color_11: "310",
|
|
ohos_color_11: "310",
|
|
emui_color_fg_1: "311",
|
|
ohos_color_fg_1: "311",
|
|
emui_color_fg_2: "312",
|
|
ohos_color_fg_2: "312",
|
|
emui_color_fg_3: "313",
|
|
ohos_color_fg_3: "313",
|
|
emui_color_fg_4: "314",
|
|
ohos_color_fg_4: "314",
|
|
emui_color_fg_5: "315",
|
|
ohos_color_fg_5: "315",
|
|
emui_color_fg_6: "316",
|
|
ohos_color_fg_6: "316",
|
|
emui_color_fg_7: "317",
|
|
ohos_color_fg_7: "317",
|
|
emui_color_fg_8: "318",
|
|
ohos_color_fg_8: "318",
|
|
emui_color_fg_9: "319",
|
|
ohos_color_fg_9: "319",
|
|
emui_color_fg_10: "320",
|
|
ohos_color_fg_10: "320",
|
|
emui_color_fg_11: "321",
|
|
ohos_color_fg_11: "321",
|
|
emui_primary_content_alpha: "400",
|
|
ohos_primary_content_alpha: "400",
|
|
emui_secondary_content_alpha: "401",
|
|
ohos_secondary_content_alpha: "401",
|
|
emui_tertiary_content_alpha: "402",
|
|
ohos_tertiary_content_alpha: "402",
|
|
emui_disabled_alpha: "403",
|
|
ohos_disabled_alpha: "403",
|
|
emui_highlight_bg_alpha: "404",
|
|
ohos_highlight_bg_alpha: "404",
|
|
emui_normal_bg_alpha: "405",
|
|
ohos_normal_bg_alpha: "405",
|
|
emui_tips_bg_alpha: "406",
|
|
ohos_tips_bg_alpha: "406",
|
|
emui_divider_alpha: "407",
|
|
ohos_divider_alpha: "407",
|
|
emui_text_size_headline1: "500",
|
|
ohos_text_size_headline1: "500",
|
|
emui_text_size_headline2: "501",
|
|
ohos_text_size_headline2: "501",
|
|
emui_text_size_headline3: "502",
|
|
ohos_text_size_headline3: "502",
|
|
emui_text_size_headline4: "503",
|
|
ohos_text_size_headline4: "503",
|
|
emui_text_size_headline5: "504",
|
|
ohos_text_size_headline5: "504",
|
|
emui_text_size_headline6: "505",
|
|
ohos_text_size_headline6: "505",
|
|
emui_text_size_headline7: "506",
|
|
ohos_text_size_headline7: "506",
|
|
emui_text_size_headline8: "507",
|
|
ohos_text_size_headline8: "507",
|
|
emui_text_size_subtitle1: "508",
|
|
ohos_text_size_subtitle1: "508",
|
|
emui_text_size_subtitle2: "509",
|
|
ohos_text_size_subtitle2: "509",
|
|
emui_text_size_subtitle3: "510",
|
|
ohos_text_size_subtitle3: "510",
|
|
emui_text_size_button1: "511",
|
|
ohos_text_size_button1: "511",
|
|
emui_text_size_button2: "512",
|
|
ohos_text_size_button2: "512",
|
|
emui_text_size_body1: "513",
|
|
ohos_text_size_body1: "513",
|
|
emui_text_size_body2: "514",
|
|
ohos_text_size_body2: "514",
|
|
emui_text_size_body3: "515",
|
|
ohos_text_size_body3: "515",
|
|
emui_text_size_caption: "516",
|
|
ohos_text_size_caption: "516",
|
|
emui_text_size_caption1: "517",
|
|
ohos_text_size_caption1: "517",
|
|
emui_text_size_chart1: "518",
|
|
ohos_text_size_chart1: "518",
|
|
emui_text_size_chart2: "519",
|
|
ohos_text_size_chart2: "519",
|
|
emui_text_size_overline: "520",
|
|
ohos_text_size_overline: "520",
|
|
emui_text_font_family_regular: "550",
|
|
ohos_text_font_family_regular: "550",
|
|
emui_text_font_family_medium: "551",
|
|
ohos_text_font_family_medium: "551",
|
|
emui_corner_radius_notification: "611",
|
|
ohos_corner_radius_notification: "611",
|
|
emui_corner_radius_grid: "615",
|
|
ohos_corner_radius_grid: "615",
|
|
emui_corner_radius_icon: "619",
|
|
ohos_corner_radius_icon: "619",
|
|
emui_corner_radius_large: "650",
|
|
ohos_corner_radius_large: "650",
|
|
emui_corner_radius_mediums: "651",
|
|
ohos_corner_radius_mediums: "651",
|
|
emui_corner_radius_small: "652",
|
|
ohos_corner_radius_small: "652",
|
|
emui_corner_radius_xsmal: "653",
|
|
ohos_corner_radius_xsmal: "653",
|
|
emui_dimens_default_start: "700",
|
|
ohos_dimens_default_start: "700",
|
|
emui_dimens_max_start: "701",
|
|
ohos_dimens_max_start: "701",
|
|
emui_dimens_default_end: "702",
|
|
ohos_dimens_default_end: "702",
|
|
emui_dimens_max_end: "703",
|
|
ohos_dimens_max_end: "703",
|
|
emui_dimens_default_top: "704",
|
|
ohos_dimens_default_top: "704",
|
|
emui_dimens_default_bottom_flexible: "705",
|
|
ohos_dimens_default_bottom_flexible: "705",
|
|
emui_dimens_default_bottom_fixed: "706",
|
|
ohos_dimens_default_bottom_fixed: "706",
|
|
emui_dimens_card_start: "725",
|
|
ohos_dimens_card_start: "725",
|
|
emui_dimens_card_end: "726",
|
|
ohos_dimens_card_end: "726",
|
|
emui_dimens_card_middle: "727",
|
|
ohos_dimens_card_middle: "727",
|
|
emui_dimens_text_vertical: "740",
|
|
ohos_dimens_text_vertical: "740",
|
|
emui_dimens_text_horizontal: "741",
|
|
ohos_dimens_text_horizontal: "741",
|
|
emui_dimens_text_margin_primary: "742",
|
|
ohos_dimens_text_margin_primary: "742",
|
|
emui_dimens_text_margin_secondary: "743",
|
|
ohos_dimens_text_margin_secondary: "743",
|
|
emui_dimens_text_margin_tertiary: "744",
|
|
ohos_dimens_text_margin_tertiary: "744",
|
|
emui_dimens_text_margin_fourth: "745",
|
|
ohos_dimens_text_margin_fourth: "745",
|
|
emui_dimens_text_margin_fifth: "746",
|
|
ohos_dimens_text_margin_fifth: "746",
|
|
emui_dimens_element_vertical_large: "760",
|
|
ohos_dimens_element_vertical_large: "760",
|
|
emui_dimens_element_vertical_middle: "761",
|
|
ohos_dimens_element_vertical_middle: "761",
|
|
emui_dimens_element_horizontal_large: "762",
|
|
ohos_dimens_element_horizontal_large: "762",
|
|
emui_dimens_element_horizontal_middle: "763",
|
|
ohos_dimens_element_horizontal_middle: "763",
|
|
emui_text_size_space_short: "780",
|
|
ohos_text_size_space_short: "780",
|
|
emui_text_size_space_large: "781",
|
|
ohos_text_size_space_large: "781",
|
|
app_background: "900",
|
|
select_clicked_color: "1000",
|
|
select_disabled_text_color: "1001",
|
|
menu_selected_color: "1002",
|
|
select_font_size: "1003",
|
|
select_font_color: "1004",
|
|
select_triangle_icon_size: "1011",
|
|
menu_background_radius: "1012",
|
|
menu_min_width: "1015",
|
|
button_background_color: "1100",
|
|
button_disabled_color: "1102",
|
|
button_text_focus_color: "1120",
|
|
button_text_color: "1121",
|
|
button_text_disabled_color: "1122",
|
|
button_text_waiting_color: "1123",
|
|
button_text_fontsize: "1124",
|
|
button_text_fontsize_min: "1125",
|
|
button_text_fontweight: "1126",
|
|
button_text_max_lines: "1127",
|
|
button_radius: "1140",
|
|
button_min_width: "1141",
|
|
button_height: "1142",
|
|
button_padding_horizontal: "1143",
|
|
button_padding_vertical: "1144",
|
|
checkbox_foreground_color: "1200",
|
|
checkbox_active_color: "1201",
|
|
checkbox_inactive_color: "1202",
|
|
checkbox_size: "1204",
|
|
checkbox_border_radius: "1206",
|
|
checkbox_border_width: "1207",
|
|
checkbox_stroke_width: "1208",
|
|
radio_foreground_color: "1300",
|
|
radio_active_color: "1301",
|
|
radio_inactive_color: "1302",
|
|
radio_size: "1304",
|
|
radio_border_width: "1306",
|
|
switch_foreground_color: "1400",
|
|
switch_active_color: "1401",
|
|
switch_inactive_color: "1402",
|
|
switch_width: "1404",
|
|
switch_height: "1405",
|
|
switch_border_width: "1409",
|
|
marquee_text_color: "1500",
|
|
marquee_font_size: "1501",
|
|
progress_color: "1611",
|
|
progress_secondary_color: "1600",
|
|
progress_bg_color: "1601",
|
|
progress_thickness: "1602",
|
|
progress_loading_color: "1603",
|
|
progress_scale_length: "1604",
|
|
progress_scale_width: "1605",
|
|
progress_scale_number: "1608",
|
|
rating_width: "1700",
|
|
rating_height: "1701",
|
|
rating_indicator_width: "1702",
|
|
rating_indicator_height: "1703",
|
|
rating_star_num: "1705",
|
|
rating_score: "1706",
|
|
rating_indicator_score: "1707",
|
|
rating_step_size: "1708",
|
|
slider_block_color: "1800",
|
|
slider_track_thickness: "1803",
|
|
slider_track_selected: "1804",
|
|
slider_track_bg: "1805",
|
|
text_size: "1900",
|
|
dialog_radius: "2000",
|
|
dialog_background_color: "2001",
|
|
dialog_title_text_color: "2002",
|
|
dialog_title_text_fontsize: "2003",
|
|
dialog_title_text_fontsize_min: "2004",
|
|
dialog_title_text_fontweight: "2005",
|
|
dialog_title_text_max_lines: "2006",
|
|
dialog_content_text_color: "2007",
|
|
dialog_content_text_fontsize: "2008",
|
|
dialog_animation_duration_in: "2020",
|
|
dialog_animation_duration_out: "2021",
|
|
dialog_content_text_fontsize_min: "2032",
|
|
popup_padding_horizontal: "2100",
|
|
popup_padding_vertical: "2101",
|
|
popup_background_color: "2103",
|
|
popup_text_color: "2104",
|
|
popup_text_fontsize: "2105",
|
|
swiper_indicator_normal_color: "2200",
|
|
swiper_indicator_selected_color: "2201",
|
|
swiper_indicator_size: "2202",
|
|
swiper_indicator_selected_size: "2203",
|
|
toast_padding_horizontal: "2300",
|
|
toast_padding_vertical: "2301",
|
|
toast_background_color: "2304",
|
|
toast_text_fontweight: "2305",
|
|
toast_text_color: "2306",
|
|
toast_text_fontsize: "2307",
|
|
toast_radius: "2308",
|
|
textfield_padding_horizontal: "2400",
|
|
textfield_padding_vertical: "2401",
|
|
textfield_height: "2402",
|
|
textfield_font_size: "2403",
|
|
textfield_font_weight: "2404",
|
|
textfield_border_radius: "2405",
|
|
textfield_background_color: "2407",
|
|
textfield_placeholder_color: "2408",
|
|
textfield_text_color: "2409",
|
|
textfield_focus_background_color: "2410",
|
|
textfield_focus_placeholder_color: "2411",
|
|
textfield_focus_text_color: "2412",
|
|
textfield_cursor_color: "2415",
|
|
textfield_icon_size: "2417",
|
|
textfield_error_text_color: "2420",
|
|
textfield_error_border_color: "2424",
|
|
textfield_text_selected_color: "2425",
|
|
video_bar_time_text_color: "2615",
|
|
video_error_text_color: "2616",
|
|
video_bar_background: "2617",
|
|
tab_active_indicator_color: "2705",
|
|
navigation_bar_title_color: "2900",
|
|
navigation_bar_title_font_size: "2901",
|
|
navigation_bar_title_font_size_emphasize: "2902",
|
|
navigation_bar_subtitle_color: "2903",
|
|
navigation_bar_subtitle_font_size: "2904",
|
|
navigation_bar_height: "2905",
|
|
navigation_bar_height_emphasize: "2906",
|
|
navigation_bar_menu_zone_width: "2909",
|
|
navigation_bar_menu_icon_width: "2910",
|
|
navigation_bar_logo_icon_width: "2911",
|
|
navigation_bar_more_zone_width: "2912",
|
|
navigation_bar_more_zone_height: "2913",
|
|
navigation_bar_more_icon_width: "2914",
|
|
navigation_bar_more_icon_height: "2915",
|
|
navigation_bar_max_padding_start: "2920",
|
|
navigation_bar_max_padding_end: "2921",
|
|
navigation_bar_default_padding_start: "2922",
|
|
navigation_bar_default_padding_end: "2923",
|
|
picker_popup_radius: "3002",
|
|
picker_popup_padding: "3003",
|
|
picker_button_font_size: "3019",
|
|
picker_button_text_color: "3020",
|
|
picker_select_option_font_size: "3021",
|
|
picker_select_option_text_color: "3022",
|
|
picker_normal_option_font_size: "3025",
|
|
picker_normal_option_font_color: "3026",
|
|
picker_title_font_size: "3028",
|
|
picker_title_text_color: "3029",
|
|
scroll_bar_background_color: "3304",
|
|
scroll_bar_foreground_color: "3305",
|
|
refresh_default_progress_diameter: "3404",
|
|
search_icon_size: "3600",
|
|
search_text_field_padding_left: "3602",
|
|
search_text_field_radius: "3603",
|
|
search_text_color: "3605",
|
|
search_placeholder_color: "3606",
|
|
search_close_icon_size: "3607",
|
|
search_font_size: "3610",
|
|
search_font_weight: "3611",
|
|
search_focus_text_color: "3613",
|
|
text_overlay_handle_color: "3718",
|
|
text_overlay_handle_diameter: "3719",
|
|
calendar_week_font_size: "3500",
|
|
calendar_day_font_size : "3501",
|
|
calendar_lunar_font_size: "3502",
|
|
calendar_week_color: "3503",
|
|
calendar_day_color: "3504",
|
|
calendar_lunar_color: "3505",
|
|
calendar_weekend_day_color: "3506",
|
|
calendar_weekend_lunar_color: "3507",
|
|
calendar_today_day_color: "3508",
|
|
calendar_today_lunar_color: "3509",
|
|
calendar_non_current_month_day_color: "3510",
|
|
calendar_non_current_month_lunar_color: "3511",
|
|
calendar_work_day_mark_font_size: "3512",
|
|
calendar_off_day_mark_font_size: "3513",
|
|
calendar_work_day_mark_color: "3514",
|
|
calendar_off_day_mark_color: "3515",
|
|
calendar_not_current_month_work_day_mark_color: "3516",
|
|
calendar_not_current_month_off_day_mark_color: "3517",
|
|
calendar_focused_day_color: "3518",
|
|
calendar_focused_lunar_color: "3519",
|
|
calendar_focused_area_radius: "3520",
|
|
calendar_focused_area_background_color: "3521",
|
|
calendar_top_padding: "3522",
|
|
calendar_blur_area_background_color : "3523",
|
|
calendar_col_space: "3524",
|
|
calendar_week_height: "3525",
|
|
calendar_day_height: "3526",
|
|
calendar_week_width: "3527",
|
|
calendar_day_width: "3528",
|
|
calendar_week_and_day_row_space: "3529",
|
|
calendar_daily_five_row_space: "3530",
|
|
calendar_daily_six_row_space: "3531",
|
|
calendar_gregorian_calendar_height: "3532",
|
|
calendar_work_state_width: "3533",
|
|
theme_calendar_day_font_wight: "3534",
|
|
theme_calendar_lunar_day_font_wight: "3535",
|
|
theme_calendar_work_state_font_wight: "3536",
|
|
theme_calendar_work_state_horizontal_moving_distance: "3566",
|
|
theme_calendar_work_state_vertical_moving_distance: "3567"
|
|
};
|
|
|
|
module.exports = THEME_PROP_GROUPS;
|