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 16@Component 17export struct LoadingPanel { 18 build() { 19 Column() { 20 Column() { 21 LoadingProgress().width($r('app.float.loading_panel_icon_w')) 22 .height($r('app.float.loading_panel_icon_w')) 23 .margin({ bottom: $r('app.float.loading_panel_icon_margin') }) 24 .key('ProgressOfLoadingPanel') 25 Text($r('app.string.image_loading')) 26 .fontSize($r('sys.float.ohos_id_text_size_body2')) 27 .fontFamily($r('app.string.id_text_font_family_regular')) 28 .fontColor($r('sys.color.ohos_id_color_text_secondary')) 29 .key('TextOfLoadingPanel') 30 } 31 } 32 .width('100%') 33 .height('100%') 34 .padding({ top: $r('app.float.loading_panel_item_gap') }) 35 .alignItems(HorizontalAlign.Center) 36 .justifyContent(FlexAlign.Center) 37 } 38}