100aff185Sopenharmony_ci/* 200aff185Sopenharmony_ci * Copyright (c) 2022-2023 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_ciimport { Constants as PhotoConstants } from '../model/browser/photo/Constants'; 1600aff185Sopenharmony_ci 1700aff185Sopenharmony_ci@Component 1800aff185Sopenharmony_ciexport struct PhotoBrowserBg { 1900aff185Sopenharmony_ci @Consume backgroundColorResource: Resource; 2000aff185Sopenharmony_ci @Link isShowBar: boolean; 2100aff185Sopenharmony_ci 2200aff185Sopenharmony_ci build() { 2300aff185Sopenharmony_ci Column() { 2400aff185Sopenharmony_ci } 2500aff185Sopenharmony_ci .key('PhotoBrowserBg') 2600aff185Sopenharmony_ci .backgroundColor(this.backgroundColorResource) 2700aff185Sopenharmony_ci .width('100%') 2800aff185Sopenharmony_ci .height('100%') 2900aff185Sopenharmony_ci .animation({ 3000aff185Sopenharmony_ci duration: PhotoConstants.IMMERSE_ANIM_DURATION 3100aff185Sopenharmony_ci }) 3200aff185Sopenharmony_ci } 3300aff185Sopenharmony_ci}