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 default class Style { 17 /** 18 * Grid item card height. 19 */ 20 static CARD_HEIGHT = 192 21 22 /** 23 * List item weather width. 24 */ 25 static WEATHER_ITEM_WIDTH = 80 26 27 /** 28 * normal padding. 29 */ 30 static NORMAL_PADDING = 14 31 32 /** 33 * normal margin. 34 */ 35 static NORMAL_MARGIN = 14 36 37 /** 38 * normal space. 39 */ 40 static NORMAL_SPACE = 12 41 42 /** 43 * grid gutter 44 */ 45 static GRID_GUTTER = vp2px(12) 46 47 /** 48 * normal radius. 49 */ 50 static NORMAL_RADIUS = 16 51 52 /** 53 * normal radius. 54 */ 55 static CITY_TEXT_RADIUS = 18 56 57 /** 58 * normal margin. 59 */ 60 static ADD_CITY_BOTTOM = 6 61 62 /** 63 * normal margin. 64 */ 65 static ADD_CITY_BOTTOM_LG = 28 66 67 /** 68 * card background color. 69 */ 70 static CARD_BACKGROUND_COLOR = '#24FFFFFF' 71 72 /** 73 * dialog padding out. 74 */ 75 static DIALOG_PADDING_OUT = 12 76 77 /** 78 * dialog padding. 79 */ 80 static DIALOG_PADDING = 24 81 82 /** 83 * weather big text weight. 84 */ 85 static BIG_FONT_WEIGHT = 300 86 87 /** 88 * time list height. 89 */ 90 static TIME_LIST_HEIGHT = 48 91 92 /** 93 * time list height. 94 */ 95 static TIME_LIST_MARGIN = 22 96 97}