1/** 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export class BigFolderStyleConstants { 17 18 // image resources 19 static readonly DEFAULT_ICON = $r('app.media.icon'); 20 static readonly DEFAULT_BACKGROUND_IMAGE = '$media:ic_wallpaper_folder'; 21 static readonly DEFAULT_ADD_FOLDER_APP_IMAGE = '/common/pics/ic_public_add.svg'; 22 static readonly DEFAULT_CANCEL_APP_IMAGE = '/common/pics/ic_public_cancel.svg'; 23 24 // font style resources 25 static readonly DEFAULT_FONT_COLOR = '#ffffff'; 26 static readonly FOLDER_ADD_APP_FONT_COLOR = '#000000'; 27 28 // layout percentage adaptation resources 29 static readonly PERCENTAGE_100 = '100%'; 30 static readonly PERCENTAGE_80 = '80%'; 31 static readonly PERCENTAGE_50 = '50%'; 32 33 // image size resources 34 static readonly DEFAULT_APP_NAME_SIZE= 20; 35 static readonly DEFAULT_FOLDER_ADD_APP_NAME_SIZE= 16; 36 static readonly DEFAULT_APP_ITEM_WIDTH = 70; 37 static readonly DEFAULT_APP_ITEM_HEIGHT = 95; 38 static readonly DEFAULT_APP_ICON_SIZE_WIDTH = 70; 39 static readonly DEFAULT_APP_NAME_HEIGHT = 25; 40 static readonly DEFAULT_ADD_APP_ICON_SIZE = 28; 41 static readonly DEFAULT_ADD_APP_SIZE = 54; 42 static readonly DEFAULT_VP_30 = 30; 43 static readonly DEFAULT_OPEN_FOLDER_NAME_SIZE = 30; 44 static readonly DEFAULT_OPEN_FOLDER_TITLE_HEIGHT = 130; 45 46 // Folder add app grid list 47 static readonly DEFAULT_OPEN_FOLDER_TEXTAREA_HEIGHT = 60; 48 static readonly DEFAULT_OPEN_FOLDER_CANCEL_SIZE = 24; 49 static readonly DEFAULT_OPEN_FOLDER_TITLE_TOP = 90; 50 static readonly DEFAULT_OPEN_FOLDER_NAVIGATION = 0; 51 static readonly DEFAULT_OPEN_FOLDER_PHONE_HEIGHT = 524; 52 static readonly DEFAULT_OPEN_FOLDER_PHONE_ICON = 85; 53 static readonly DEFAULT_OPEN_FOLDER_INDICATOR = 150; 54 static readonly DEFAULT_DIALOG_OPACITY = 0.95; 55 static readonly DEFAULT_OPEN_FOLDER_CANCEL_WIDTH = '85%'; 56 static readonly DEFAULT_OPEN_FOLDER_CANCEL_HEIGHT = '40%'; 57 static readonly DEFAULT_APP_GRID_TEXT_FONT_WEIGHT = 600; 58 static readonly DEFAULT_FOLDER_APP_DIALOG_LIST = 536; 59 static readonly DEFAULT_FOLDER_APP_GRID_LIST = 424; 60 static readonly DEFAULT_FOLDER_APP_GRID_MARGIN = 10; 61 static readonly DEFAULT_APP_GRID_TOGGLE_SIZE = 30; 62 static readonly DEFAULT_APP_GRID_TOGGLE_MARGIN = -30; 63 static readonly DEFAULT_APP_TITLE_MARGIN = 10; 64 static readonly DEFAULT_APP_ADD_TEXT_MARGIN = 14; 65 static readonly DEFAULT_APP_ADD_TEXT_BOTTOM_MARGIN = 20; 66 static readonly DEFAULT_APP_ADD_WIDTH = '70%'; 67 static readonly DEFAULT_APP_GRID_LIST_WIDTH = 360; 68 static readonly DEFAULT_APP_GRID_TEXT_FONT_SIZE = 20; 69 static readonly DEFAULT_APP_GRID_BUTTON_SIZE = 60; 70 static readonly DEFAULT_APP_GRID_RADIUS = 24; 71 static readonly DEFAULT_APP_ADD_TITLE_SIZE = 56; 72 static readonly DEFAULT_APP_ADD_DIALOG_WIDTH = 394; 73 static readonly DEFAULT_APP_ADD_DIALOG_HEIGHT = 536; 74 static readonly DEFAULT_DIVIDER_HEIGHT = 24; 75 static readonly DEFAULT_BUTTON_HEIGHT = 40; 76 static readonly DEFAULT_BUTTON_WIDTH = 100; 77 static readonly DEFAULT_DIALOG_BOTTOM_MARGIN = 16; 78}