DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dconstants.h
1// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DCONSTANTS_H
6#define DCONSTANTS_H
7
8#include <dtkwidget_global.h>
9
10DWIDGET_BEGIN_NAMESPACE
11 //basis width and height
12 const int BUTTON_HEIGHT = 22;
13 const int EXPAND_HEADER_HEIGHT = 30;
14 const int CONTENT_HEADER_HEIGHT = 38;
15 const int RADIO_ITEM_HEIGHT = 30;
16 const int MENU_ITEM_HEIGHT = 24;
17 const int MENU_ITEM_LEFT_MARGIN = 24; //NOT include the tick
18 const int HEADER_LEFT_MARGIN = 14;
19 const int HEADER_RIGHT_MARGIN = 14;
20 const int TEXT_LEFT_MARGIN = 6;
21 const int TEXT_RIGHT_MARGIN = 6;
22 const int BUTTON_MARGIN = 8;
23 const int TEXT_BUTTON_MIN_WIDTH = 70;
24 const int IMAGE_BUTTON_WIDTH = 24;
25 const int FONT_SIZE = 12;
26 const int NORMAL_RADIUS = 3;
27DWIDGET_END_NAMESPACE
28
29#endif //DCONSTANTS_H