1 | #include "python.h" |
2 | |
3 | class PyTheme : public Theme { |
4 | public: |
5 | using Theme::Theme; |
6 | }; |
7 | |
8 | void register_theme(py::module &m) { |
9 | py::class_<Theme, ref<Theme>, PyTheme> theme(m, "Theme" , D(Theme)); |
10 | theme.def(py::init<NVGcontext *>(), D(Theme, Theme)) |
11 | .def_readwrite("mFontNormal" , &Theme::mFontNormal, D(Theme, mFontNormal)) |
12 | .def_readwrite("mFontBold" , &Theme::mFontBold, D(Theme, mFontBold)) |
13 | .def_readwrite("mFontIcons" , &Theme::mFontIcons, D(Theme, mFontIcons)) |
14 | .def_readwrite("mIconScale" , &Theme::mIconScale, D(Theme, mIconScale)) |
15 | .def_readwrite("mStandardFontSize" , &Theme::mStandardFontSize, D(Theme, mStandardFontSize)) |
16 | .def_readwrite("mButtonFontSize" , &Theme::mButtonFontSize, D(Theme, mButtonFontSize)) |
17 | .def_readwrite("mTextBoxFontSize" , &Theme::mTextBoxFontSize, D(Theme, mTextBoxFontSize)) |
18 | .def_readwrite("mWindowCornerRadius" , &Theme::mWindowCornerRadius, D(Theme, mWindowCornerRadius)) |
19 | .def_readwrite("mWindowHeaderHeight" , &Theme::mWindowHeaderHeight, D(Theme, mWindowHeaderHeight)) |
20 | .def_readwrite("mWindowDropShadowSize" , &Theme::mWindowDropShadowSize, D(Theme, mWindowDropShadowSize)) |
21 | .def_readwrite("mButtonCornerRadius" , &Theme::mButtonCornerRadius, D(Theme, mButtonCornerRadius)) |
22 | .def_readwrite("mTabBorderWidth" , &Theme::mTabBorderWidth, D(Theme, mTabBorderWidth)) |
23 | .def_readwrite("mTabInnerMargin" , &Theme::mTabInnerMargin, D(Theme, mTabInnerMargin)) |
24 | .def_readwrite("mTabMinButtonWidth" , &Theme::mTabMinButtonWidth, D(Theme, mTabMinButtonWidth)) |
25 | .def_readwrite("mTabMaxButtonWidth" , &Theme::mTabMaxButtonWidth, D(Theme, mTabMaxButtonWidth)) |
26 | .def_readwrite("mTabControlWidth" , &Theme::mTabControlWidth, D(Theme, mTabControlWidth)) |
27 | .def_readwrite("mTabButtonHorizontalPadding" , &Theme::mTabButtonHorizontalPadding, D(Theme, mTabButtonHorizontalPadding)) |
28 | .def_readwrite("mTabButtonVerticalPadding" , &Theme::mTabButtonVerticalPadding, D(Theme, mTabButtonVerticalPadding)) |
29 | .def_readwrite("mDropShadow" , &Theme::mDropShadow, D(Theme, mDropShadow)) |
30 | .def_readwrite("mTransparent" , &Theme::mTransparent, D(Theme, mTransparent)) |
31 | .def_readwrite("mBorderDark" , &Theme::mBorderDark, D(Theme, mBorderDark)) |
32 | .def_readwrite("mBorderLight" , &Theme::mBorderLight, D(Theme, mBorderLight)) |
33 | .def_readwrite("mBorderMedium" , &Theme::mBorderMedium, D(Theme, mBorderMedium)) |
34 | .def_readwrite("mTextColor" , &Theme::mTextColor, D(Theme, mTextColor)) |
35 | .def_readwrite("mDisabledTextColor" , &Theme::mDisabledTextColor, D(Theme, mDisabledTextColor)) |
36 | .def_readwrite("mTextColorShadow" , &Theme::mTextColorShadow, D(Theme, mTextColorShadow)) |
37 | .def_readwrite("mIconColor" , &Theme::mIconColor, D(Theme, mIconColor)) |
38 | .def_readwrite("mButtonGradientTopFocused" , &Theme::mButtonGradientTopFocused, D(Theme, mButtonGradientTopFocused)) |
39 | .def_readwrite("mButtonGradientBotFocused" , &Theme::mButtonGradientBotFocused, D(Theme, mButtonGradientBotFocused)) |
40 | .def_readwrite("mButtonGradientTopUnfocused" , &Theme::mButtonGradientTopUnfocused, D(Theme, mButtonGradientTopUnfocused)) |
41 | .def_readwrite("mButtonGradientBotUnfocused" , &Theme::mButtonGradientBotUnfocused, D(Theme, mButtonGradientBotUnfocused)) |
42 | .def_readwrite("mButtonGradientTopPushed" , &Theme::mButtonGradientTopPushed, D(Theme, mButtonGradientTopPushed)) |
43 | .def_readwrite("mButtonGradientBotPushed" , &Theme::mButtonGradientBotPushed, D(Theme, mButtonGradientBotPushed)) |
44 | .def_readwrite("mWindowFillUnfocused" , &Theme::mWindowFillUnfocused, D(Theme, mWindowFillUnfocused)) |
45 | .def_readwrite("mWindowFillFocused" , &Theme::mWindowFillFocused, D(Theme, mWindowFillFocused)) |
46 | .def_readwrite("mWindowTitleUnfocused" , &Theme::mWindowTitleUnfocused, D(Theme, mWindowTitleUnfocused)) |
47 | .def_readwrite("mWindowTitleFocused" , &Theme::mWindowTitleFocused, D(Theme, mWindowTitleFocused)) |
48 | .def_readwrite("mWindowHeaderGradientTop" , &Theme::mWindowHeaderGradientTop, D(Theme, mWindowHeaderGradientTop)) |
49 | .def_readwrite("mWindowHeaderGradientBot" , &Theme::mWindowHeaderGradientBot, D(Theme, mWindowHeaderGradientBot)) |
50 | .def_readwrite("mWindowHeaderSepTop" , &Theme::mWindowHeaderSepTop, D(Theme, mWindowHeaderSepTop)) |
51 | .def_readwrite("mWindowHeaderSepBot" , &Theme::mWindowHeaderSepBot, D(Theme, mWindowHeaderSepBot)) |
52 | .def_readwrite("mWindowPopup" , &Theme::mWindowPopup, D(Theme, mWindowPopup)) |
53 | .def_readwrite("mWindowPopupTransparent" , &Theme::mWindowPopupTransparent, D(Theme, mWindowPopupTransparent)) |
54 | .def_readwrite("mCheckBoxIcon" , &Theme::mCheckBoxIcon, D(Theme, mCheckBoxIcon)) |
55 | .def_readwrite("mMessageInformationIcon" , &Theme::mMessageInformationIcon, D(Theme, mMessageInformationIcon)) |
56 | .def_readwrite("mMessageQuestionIcon" , &Theme::mMessageQuestionIcon, D(Theme, mMessageQuestionIcon)) |
57 | .def_readwrite("mMessageWarningIcon" , &Theme::mMessageWarningIcon, D(Theme, mMessageWarningIcon)) |
58 | .def_readwrite("mMessageAltButtonIcon" , &Theme::mMessageAltButtonIcon, D(Theme, mMessageAltButtonIcon)) |
59 | .def_readwrite("mMessagePrimaryButtonIcon" , &Theme::mMessagePrimaryButtonIcon, D(Theme, mMessagePrimaryButtonIcon)) |
60 | .def_readwrite("mPopupChevronRightIcon" , &Theme::mPopupChevronRightIcon, D(Theme, mPopupChevronRightIcon)) |
61 | .def_readwrite("mPopupChevronLeftIcon" , &Theme::mPopupChevronLeftIcon, D(Theme, mPopupChevronLeftIcon)) |
62 | .def_readwrite("mTabHeaderLeftIcon" , &Theme::mTabHeaderLeftIcon, D(Theme, mTabHeaderLeftIcon)) |
63 | .def_readwrite("mTabHeaderRightIcon" , &Theme::mTabHeaderRightIcon, D(Theme, mTabHeaderRightIcon)) |
64 | .def_readwrite("mTextBoxUpIcon" , &Theme::mTextBoxUpIcon, D(Theme, mTextBoxUpIcon)) |
65 | .def_readwrite("mTextBoxDownIcon" , &Theme::mTextBoxDownIcon, D(Theme, mTextBoxDownIcon)); |
66 | } |
67 | |