100aff185Sopenharmony_ci/*
200aff185Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
300aff185Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
400aff185Sopenharmony_ci * you may not use this file except in compliance with the License.
500aff185Sopenharmony_ci * You may obtain a copy of the License at
600aff185Sopenharmony_ci *
700aff185Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
800aff185Sopenharmony_ci *
900aff185Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1000aff185Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1100aff185Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1200aff185Sopenharmony_ci * See the License for the specific language governing permissions and
1300aff185Sopenharmony_ci * limitations under the License.
1400aff185Sopenharmony_ci */
1500aff185Sopenharmony_ci
1600aff185Sopenharmony_ci@Component
1700aff185Sopenharmony_ciexport struct LoadingPanel {
1800aff185Sopenharmony_ci  build() {
1900aff185Sopenharmony_ci    Column() {
2000aff185Sopenharmony_ci      Column() {
2100aff185Sopenharmony_ci        LoadingProgress().width($r('app.float.loading_panel_icon_w'))
2200aff185Sopenharmony_ci          .height($r('app.float.loading_panel_icon_w'))
2300aff185Sopenharmony_ci          .margin({ bottom: $r('app.float.loading_panel_icon_margin') })
2400aff185Sopenharmony_ci          .key('ProgressOfLoadingPanel')
2500aff185Sopenharmony_ci        Text($r('app.string.image_loading'))
2600aff185Sopenharmony_ci          .fontSize($r('sys.float.ohos_id_text_size_body2'))
2700aff185Sopenharmony_ci          .fontFamily($r('app.string.id_text_font_family_regular'))
2800aff185Sopenharmony_ci          .fontColor($r('sys.color.ohos_id_color_text_secondary'))
2900aff185Sopenharmony_ci          .key('TextOfLoadingPanel')
3000aff185Sopenharmony_ci      }
3100aff185Sopenharmony_ci    }
3200aff185Sopenharmony_ci    .width('100%')
3300aff185Sopenharmony_ci    .height('100%')
3400aff185Sopenharmony_ci    .padding({ top: $r('app.float.loading_panel_item_gap') })
3500aff185Sopenharmony_ci    .alignItems(HorizontalAlign.Center)
3600aff185Sopenharmony_ci    .justifyContent(FlexAlign.Center)
3700aff185Sopenharmony_ci  }
3800aff185Sopenharmony_ci}