/*
 * Copyright (c) Huawei Device Co., Ltd. 2024-2025. All rights reserved.
 * 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.
 */

/**
 * 文件夹的默认样式
 */
export default class FolderStyleConstants {
  // image resources
  public static readonly DEFAULT_ADD_FOLDER_APP_IMAGE = '/common/pics/ic_public_add.svg';
  public static readonly DEFAULT_CANCEL_APP_IMAGE = '/common/pics/ic_public_cancel.svg';
  public static readonly DEFAULT_CANCEL_APP_BLACK_IMAGE = '/common/pics/ic_public_black_cancel.svg';

  // font style resources
  public static readonly DEFAULT_FONT_COLOR = '#ffffff';
  public static readonly FOLDER_ADD_APP_FONT_COLOR = '#000000';

  // layout percentage adaptation resources
  public static readonly PERCENTAGE_100 = '100%';
  public static readonly PERCENTAGE_80 = '80%';
  public static readonly PERCENTAGE_50 = '50%';

  // image size resources
  public static readonly DEFAULT_APP_NAME_SIZE = 20;
  public static readonly DEFAULT_FOLDER_ADD_APP_NAME_SIZE = 16;
  public static readonly DEFAULT_APP_ITEM_WIDTH = 70;
  public static readonly DEFAULT_APP_ITEM_HEIGHT = 95;
  public static readonly DEFAULT_APP_ICON_SIZE_WIDTH = 70;
  public static readonly DEFAULT_APP_NAME_HEIGHT = 25;
  public static readonly DEFAULT_APP_NAME_WIDTH = 96;
  public static readonly DEFAULT_ADD_APP_ICON_SIZE = 28;
  public static readonly DEFAULT_ADD_APP_SIZE = 54;
  public static readonly DEFAULT_VP_30 = 30;
  public static readonly DEFAULT_OPEN_FOLDER_NAME_SIZE = 30;
  public static readonly DEFAULT_OPEN_FOLDER_TITLE_HEIGHT = 130;

  // Folder add app grid list
  public static readonly DEFAULT_OPEN_FOLDER_TEXTAREA_HEIGHT = 48;
  public static readonly DEFAULT_OPEN_FOLDER_DRAG_BOARDER_HEIGHT = 34;
  public static readonly DEFAULT_OPEN_FOLDER_CANCEL_SIZE = 24;
  public static readonly DEFAULT_OPEN_FOLDER_TITLE_TOP = 70;
  public static readonly DEFAULT_OPEN_FOLDER_NAVIGATION = 0;
  public static readonly DEFAULT_OPEN_FOLDER_PHONE_HEIGHT = 524;
  public static readonly DEFAULT_OPEN_FOLDER_PHONE_ICON = 85;
  public static readonly DEFAULT_OPEN_FOLDER_BACKGROUND_MARGIN_TOP = 200;
  public static readonly DEFAULT_OPEN_FOLDER_BACKGROUND_HEIGHT = 360;
  public static readonly DEFAULT_OPEN_FOLDER_BACKGROUND_WIDTH = 275;
  public static readonly DEFAULT_OPEN_FOLDER_INDICATOR = 24;
  public static readonly DEFAULT_OPEN_FOLDER_MARGIN_TOP = 200;
  public static readonly DEFAULT_DIALOG_OPACITY = 0.95;
  public static readonly DEFAULT_OPEN_FOLDER_CANCEL_WIDTH = '85%';
  public static readonly DEFAULT_OPEN_FOLDER_CANCEL_HEIGHT = '40%';
  public static readonly DEFAULT_APP_GRID_TEXT_FONT_WEIGHT = 600;
  public static readonly DEFAULT_FOLDER_APP_DIALOG_LIST = 536;
  public static readonly DEFAULT_FOLDER_APP_GRID_LIST = 424;
  public static readonly DEFAULT_FOLDER_APP_GRID_MARGIN = 10;
  public static readonly DEFAULT_OPEN_FOLDER_NAME_MARGINTOP = 6;
  public static readonly DEFAULT_APP_GRID_TOGGLE_SIZE = 30;
  public static readonly DEFAULT_APP_GRID_TOGGLE_MARGIN = -30;
  public static readonly DEFAULT_APP_TITLE_MARGIN = 10;
  public static readonly DEFAULT_APP_ADD_TEXT_MARGIN = 14;
  public static readonly DEFAULT_APP_ADD_TEXT_MARGIN_TOP = 2;
  public static readonly DEFAULT_APP_ADD_TEXT_MARGIN_LEFT = 14;
  public static readonly DEFAULT_APP_ADD_TEXT_MARGIN_BOTTOM = 18;
  public static readonly DEFAULT_APP_ADD_TEXT_BOTTOM_MARGIN = 20;
  public static readonly DEFAULT_APP_ADD_WIDTH = '70%';
  public static readonly DEFAULT_APP_GRID_LIST_WIDTH = 360;
  public static readonly DEFAULT_APP_GRID_TEXT_FONT_SIZE = 20;
  public static readonly DEFAULT_APP_GRID_TEXT_DES_FONT_SIZE = 16;
  public static readonly DEFAULT_APP_GRID_BUTTON_SIZE = 60;
  public static readonly DEFAULT_APP_GRID_RADIUS = 16;
  public static readonly DEFAULT_APP_ADD_TITLE_SIZE = 56;
  public static readonly DEFAULT_APP_ADD_DIALOG_WIDTH = 394;
  public static readonly DEFAULT_APP_DEL_DIALOG_TXT_WIDTH = 246;
  public static readonly DEFAULT_APP_ADD_DIALOG_HEIGHT = 536;
  public static readonly DEFAULT_DIVIDER_HEIGHT = 24;
  public static readonly DEFAULT_BUTTON_HEIGHT = 40;
  public static readonly DEFAULT_BUTTON_WIDTH = 100;
  public static readonly DEFAULT_DIALOG_BOTTOM_MARGIN = 16;
  public static readonly DEFAULT_DIALOG_LEFT_MARGIN = 24;
  public static readonly DEFAULT_DIALOG_RIGHT_MARGIN = 24;
  public static readonly DEFAULT_DIALOG_TOP_MARGIN = 2;
  public static readonly DEFAULT_HIDDEN_VALUE = 0.01;
  public static readonly DEFAULT_VISIBLE_VALUE = 0.999;
  public static readonly DEFAULT_FOLDER_APP_SIZE = 52;
  public static readonly ITEM_WITH_GAP = 1.3;
  public static readonly HALF_ITEM_GAP = 2;
  public static readonly TITLE_LIST_LENGTH_THREE = 3;
  public static readonly FOLDER_BORDER_PADDING_BOTTOM = 28;
  public static readonly FOLDER_APP_ICON_BORDER_RADIUS = 12;
  public static readonly FOLDER_OPEN_BACKGROUND_MARGIN_TOP = 80;
  public static readonly FOLDER_UP_OPEN_BACKGROUND_HEIGHT = 540;
  public static readonly FOLDER_DOCK_OPEN_BACKGROUND_HEIGHT = 580;
  public static readonly FOLDER_DOWN_OPEN_BACKGROUND_HEIGHT = 420;
  public static readonly SMALL_FOLDER_OPEN_BACKGROUND_WIDTH = 320;
  public static readonly FOLDABLE_BACKGROUND_WIDTH_MULTIPLE = 1.7;
  public static readonly DEFAULT_EDGE_GRADIENT_WIDTH = 10;
  public static readonly DEFAULT_INDICATOR_BOTTOM_MARGIN = 12.34;
  public static readonly DEFAULT_FOLDER_ITEM_MAX_PER_PAGE = 12;
  public static readonly DEFAULT_FOLDER_INDEX = 1;

  public static readonly TYPE_ADD_MARGIN_PERCENTAGE = '15%';

  // FolderOpenComponent drag
  public static readonly FOLDER_OPEN_DRAG_BORDER_WIDTH = 2;
  public static readonly FOLDER_OPEN_DRAG_BORDER_RADIUS = 38;
  public static readonly FOLDER_OPEN_DRAG_BORDER_COLOR = 'rgba(255,255,255,0.25)';

  // Default folder style param
  public static readonly DEFAULT_OPEN_FOLDER_TITTLE_MARGIN = 46;
  public static readonly DEFAULT_OPEN_FOLDER_COLUMN_GRID_GAP = 0;
  public static readonly DEFAULT_OPEN_FOLDER_ROW_GRID_GAP = 0;
  public static readonly DEFAULT_OPEN_FOLDER_ICON_HORIZONTAL_SCALE = 8 / 15;
  public static readonly DEFAULT_OPEN_FOLDER_ICON_VERTICAL_SCALE = 11 / 15;
  public static readonly DEFAULT_OPEN_FOLDER_APPNAME_MARGIN_TOP = 6;
  public static readonly DEFAULT_OPEN_FOLDER_GRID_HORIZONTAL_PADDING = 20;
  public static readonly DEFAULT_OPEN_FOLDER_GRID_VERTICAL_PADDING = 0;
  public static readonly DEFAULT_OPEN_FOLDER_GRID_ICON_MARGIN_TOP = 8;
  public static readonly DEFAULT_OPEN_FOLDER_DRAG_BORDER_ICON_VERTICAL_DISTANCE = 24;
  public static readonly DEFAULT_OPEN_FOLDER_DRAG_BORDER_ICON_HORIZONTAL_DISTANCE = 24;
  public static readonly DEFAULT_OPEN_FOLDER_TITLE_TEXT_HEIGHT = 40;
  public static readonly DEFAULT_OPEN_FOLDER_EDIT_MODE_TITLE_MARGIN_TOP = 30;

  // Specific device style param
  public static readonly FOLD_DEVICE_FOLDER_ICON_HORIZONTAL_SCALE = 13 / 15;
  public static readonly ULTRA_SCREEN_FOLDER_ICON_VERTICAL_SCALE = 1;
  public static readonly PAD_INDICATOR_BOTTOM_RATIO = 20 / 17;
  public static readonly PAD_OPEN_FOLDER_ICON_HORIZONTAL_SCALE = 12 / 17;
  public static readonly PAD_OPEN_FOLDER_ICON_VERTICAL_SCALE = 14 / 17;
  public static readonly FOLD_DEVICE_OPEN_FOLDER_DRAG_BORDER_ICON_HORIZONTAL_DISTANCE = 36;
  public static readonly PAD_OPEN_FOLDER_DRAG_BORDER_ICON_HORIZONTAL_DISTANCE = 54;
}