1 /* 2 * Copyright (c) 2022-2024 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_CONTAINER_MODAL_CONSTANTS_H 17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_CONTAINER_MODAL_CONSTANTS_H 18 19 #include "core/components/common/properties/color.h" 20 #include "frameworks/base/geometry/dimension.h" 21 22 namespace OHOS::Ace { 23 24 const Dimension CONTAINER_OUTER_RADIUS = 16.0_vp; 25 const Dimension CONTAINER_BORDER_WIDTH = 0.0_vp; 26 const Dimension CONTAINER_TITLE_HEIGHT = 37.0_vp; 27 const Dimension TITLE_PADDING_START = 20.0_vp; 28 const Dimension TITLE_PADDING_END = 24.0_vp; 29 const Dimension ZERO_PADDING_ALL = 0.0_vp; 30 const Dimension TITLE_ELEMENT_MARGIN_HORIZONTAL = 12.0_vp; 31 const Dimension TITLE_ELEMENT_MARGIN_HORIZONTAL_ACCESS_DEVICE = 8.0_vp; 32 const Dimension TITLE_ICON_SIZE = 28.0_vp; 33 const Dimension TITLE_BUTTON_SIZE = 28.0_vp; 34 const Dimension CONTROL_BUTTON_ROW_LEFT_PADDING = 12.0_vp; 35 const Dimension CONTROL_BUTTON_ROW_RIGHT_PADDING = 20.0_vp; 36 const Dimension TITLE_BUTTON_RESPONSE_REGIOIN_WIDTH = 40.0_vp; 37 const Dimension TITLE_BUTTON_RESPONSE_REGIOIN_HEIGHT = 40.0_vp; 38 const Dimension TITLE_BUTTON_RESPONSE_REGIOIN_OFFSET_X = -8.0_vp; 39 const Dimension TITLE_BUTTON_RESPONSE_REGIOIN_OFFSET_Y = -8.0_vp; 40 const Dimension TITLE_TEXT_FONT_SIZE = 16.0_vp; 41 const Dimension CONTENT_PADDING = 4.0_vp; 42 const Color CONTAINER_BACKGROUND_COLOR = Color(0xf2e6e7ed); 43 const Color CONTAINER_BACKGROUND_COLOR_LOST_FOCUS = Color(0xfff2f2f2); 44 const Color CONTAINER_BORDER_COLOR = Color(0x33000000); 45 const Color CONTAINER_BORDER_COLOR_LOST_FOCUS = Color(0x19000000); 46 const Color TITLE_TEXT_COLOR = Color(0xff000000); 47 const Color TITLE_TEXT_COLOR_LOST_FOCUS = Color(0x66000000); 48 const Color TITLE_BUTTON_BACKGROUND_COLOR = Color(0x19000000); 49 const Color TITLE_BUTTON_BACKGROUND_COLOR_LOST_FOCUS = Color(0x0a000000); 50 const Color TITLE_BUTTON_CLICKED_COLOR = Color(0x33000000); 51 const std::string CONTAINER_MODAL_STACK_ID = "ContainerModalStack"; 52 53 } // namespace OHOS::Ace 54 55 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_CONTAINER_MODAL_CONSTANTS_H