1/* 2 * Copyright (c) 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 WindowConstants { 17 static readonly MAIN_WINDOW: string = 'mainWindow'; 18 static readonly TOP_BAR_SIZE: number = 56; 19 static readonly TOOL_BAR_SIZE: number = 72; 20 static readonly BOTTOM_TOOL_BAR_SIZE: number = 196; 21 static readonly FILTER_BOTTOM_TOOL_BAR_SIZE: number = 232; 22 // Grid Constants 23 static readonly ACTION_BAR_HEIGHT: number = 56; 24 static readonly TAB_BAR_WIDTH: number = 96; 25 static readonly GRID_GUTTER: number = 2; 26 static readonly GRID_IMAGE_SIZE: number = 256; 27 static readonly GRID_MAX_SIZE_RATIO: number = 1.2; 28 static readonly GRID_MIN_COUNT: number = 4; 29 static readonly SCROLL_BAR_SIDE_MIN_GAP: number = 12; 30 static readonly SCROLL_MARGIN: number = 24; 31 static readonly SCROLL_BAR_VISIBLE_THRESHOLD: number = 50; 32 static readonly CARD_ASPECT_RATIO: number = 0.75; 33 static readonly TEXT_SIZE_SUB_TITLE1: number = 18; // ohos_id_text_size_sub_title1 34 static readonly TEXT_SIZE_BODY2: number = 14; // ohos_id_text_size_body2 35 static readonly TEXT_SIZE_SUB_TITLE2: number = 16; // ohos_id_text_size_sub_title2 36 37 static readonly ALBUM_SET_NEW_ICON_SIZE: number = 22; 38 static readonly ALBUM_SET_NEW_ICON_MARGIN: number = 8; 39 static readonly ALBUM_SET_MARGIN: number = 24; 40 static readonly ALBUM_SET_GUTTER: number = 12; 41 static readonly ALBUM_SET_COVER_SIZE: number = 150; 42}