DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dialog_constants.h
1// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef BUTTON_CONSTANTS_H
6#define BUTTON_CONSTANTS_H
7
8#include <dtkwidget_global.h>
9
10DWIDGET_BEGIN_NAMESPACE
11
12namespace DIALOG {
13 const int DEFAULT_WIDTH = 380;
14 const int DEFAULT_HEIGHT = 120;
15 const int BORDER_SHADOW_WIDTH = 0;
16 const int BORDER_RADIUS = 4;
17 const int CONTENT_INSERT_OFFSET = 2;
18 const int BUTTON_HEIGHT = 28;
19 const int CLOSE_BUTTON_WIDTH = 21;
20 const int CLOSE_BUTTON_HEIGHT = 21;
21 const int ICON_LAYOUT_TOP_MARGIN = 14;
22 const int ICON_LAYOUT_BOTTOM_MARGIN = 14;
23 const int ICON_LAYOUT_LEFT_MARGIN = 20;
24 const int ICON_LAYOUT_RIGHT_MARGIN = 20;
25 const int ICON_LAYOUT_SPACING = 20;
26 const int BUTTON_LAYOUT_TOP_MARGIN = 0;
27 const int BUTTON_LAYOUT_BOTTOM_MARGIN = 10;
28 const int BUTTON_LAYOUT_LEFT_MARGIN = 10;
29 const int BUTTON_LAYOUT_RIGHT_MARGIN = 10;
30}
31
32DWIDGET_END_NAMESPACE
33
34#endif // BUTTON_CONSTANTS_H
35