1 /* 2 * Copyright (c) 2020 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 OHOS_SETTING_UTILS_H 17 #define OHOS_SETTING_UTILS_H 18 19 #include "components/ui_view_group.h" 20 21 namespace OHOS { 22 #define DE_IMAGE_BACK "/storage/app/run/com.huawei.setting/setting/assets/setting/resources/base/media/back.png" 23 #define DE_IMAGE_FORWORD \ 24 "/storage/app/run/com.huawei.setting/setting/assets/setting/resources/base/media/forward.png" 25 #define DE_IMAGE_ENTER "/storage/app/run/com.huawei.setting/setting/assets/setting/resources/base/media/enter.png" 26 #define DE_IMAGE_APP "/storage/app/run/com.huawei.setting/setting/assets/setting/resources/base/media/app.png" 27 #define DE_FONT_OTF "SourceHanSansSC-Regular.otf" 28 29 #define DE_ROOT_X 0 30 #define DE_ROOT_Y 0 31 #define DE_ROOT_WIDTH 960 32 #define DE_ROOT_HEIGHT 480 33 #define DE_ROOT_BACKGROUND_COLOR Color::ColorTo32(Color::Black()) 34 35 #define DE_SCROLL_X 36 36 #define DE_SCROLL_Y 72 37 #define DE_SCROLL_WIDTH 888 38 #define DE_SCROLL_HEIGHT 408 39 #define DE_SCROLL_COLOR Color::ColorTo32(Color::Black()) 40 41 #define DE_HEAD_X 0 42 #define DE_HEAD_Y 0 43 #define DE_HEAD_WIDTH 300 44 #define DE_HEAD_HEIGHT 72 45 46 #define DE_HEAD_IMAGE_X 39 47 #define DE_HEAD_IMAGE_Y 16 48 #define DE_HEAD_IMAGE_WIDTH 30 49 #define DE_HEAD_IMAGE_HEIGHT 30 50 51 #define DE_HEAD_TEXT_X 100 52 #define DE_HEAD_TEXT_Y 15 53 #define DE_HEAD_TEXT_WIDTH 180 54 #define DE_HEAD_TEXT_HEIGHT 60 55 #define DE_HEAD_TEXT_SIZE 32 56 #define DE_HEAD_TEXT_COLOR Color::ColorTo32(Color::White()) 57 58 #define DE_BUTTON_WIDTH 888 59 #define DE_BUTTON_HEIGHT 89 60 #define DE_BUTTON_BACKGROUND_COLOR Color::ColorTo32(Color::GetColorFromRGB(0x33, 0x33, 0x33)) 61 #define DE_BUTTON_RADIUS 16 62 63 #define DE_TITLE_TEXT_X 18 64 #define DE_TITLE_TEXT_Y 28 65 #define DE_TITLE_TEXT_WIDTH 400 66 #define DE_TITLE_TEXT_HEIGHT 50 67 #define DE_TITLE_TEXT_SIZE 26 68 #define DE_TITLE_TEXT_COLOR Color::ColorTo32(Color::White()) 69 70 #define DE_SUBTITLE_TEXT_WIDTH 400 71 #define DE_SUBTITLE_TEXT_HEIGHT 40 72 #define DE_SUBTITLE_TEXT_COLOR Color::ColorTo32(Color::GetColorFromRGB(0x9F, 0x9F, 0x9F)) 73 #define DE_SUBTITLE_TEXT_SIZE 24 74 75 #define DE_FORWARD_IMG_X 855 76 #define DE_FORWARD_IMG_Y 24 77 #define DE_FORWARD_IMG_WIDTH 12 78 #define DE_FORWARD_IMG_HEIGHT 12 79 80 #define DE_TOGGLE_BUTTON_X 816 81 #define DE_TOGGLE_BUTTON_Y 14 82 83 #define DE_ITEM_INTERVAL 95 84 #define DE_CONTENT_FONT_SIZE 28 85 #define DE_OPACITY_ALL 255 86 87 void DeleteChildren(UIView *view); 88 } 89 #endif 90