1 /* 2 * Copyright (c) 2021 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 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_PROPERTIES_SHADOW_CONFIG_H 17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_PROPERTIES_SHADOW_CONFIG_H 18 19 #include "base/geometry/offset.h" 20 #include "core/components/common/properties/color.h" 21 #include "core/components/common/properties/shadow.h" 22 23 namespace OHOS::Ace { 24 25 class ACE_EXPORT ShadowConfig { 26 public: 27 ShadowConfig() = delete; 28 ~ShadowConfig() = default; 29 30 static const Shadow NoneShadow; 31 32 // For light theme shadow params, from small shadow to large shadow. 33 static const Shadow DefaultShadowXS; 34 static const Shadow DefaultShadowS; 35 static const Shadow DefaultShadowM; 36 static const Shadow DefaultShadowL; 37 static const Shadow FloatingShadowS; 38 static const Shadow FloatingShadowM; 39 40 static const Shadow DefaultShadowXSDark; 41 static const Shadow DefaultShadowSDark; 42 static const Shadow DefaultShadowMDark; 43 static const Shadow DefaultShadowLDark; 44 static const Shadow FloatingShadowSDark; 45 static const Shadow FloatingShadowMDark; 46 }; 47 48 } // namespace OHOS::Ace 49 50 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_PROPERTIES_SHADOW_CONFIG_H 51