UI panel for editing theme properties in the layout designer. More...
#include <theme_properties.h>
Public Member Functions | |
| ThemePropertiesPanel ()=default | |
| bool | Draw (ThemeProperties &properties) |
| Draw the theme properties editor. | |
Private Member Functions | |
| void | DrawPaddingSection (ThemeProperties &properties) |
| void | DrawRoundingSection (ThemeProperties &properties) |
| void | DrawBordersSection (ThemeProperties &properties) |
| void | DrawSizesSection (ThemeProperties &properties) |
Private Attributes | |
| bool | show_padding_ = true |
| bool | show_rounding_ = true |
| bool | show_borders_ = true |
| bool | show_sizes_ = true |
UI panel for editing theme properties in the layout designer.
Definition at line 64 of file theme_properties.h.
|
default |
| bool yaze::editor::layout_designer::ThemePropertiesPanel::Draw | ( | ThemeProperties & | properties | ) |
Draw the theme properties editor.
| properties | The theme properties to edit |
Definition at line 123 of file theme_properties.cc.
References yaze::editor::layout_designer::ThemeProperties::Apply(), DrawBordersSection(), DrawPaddingSection(), DrawRoundingSection(), DrawSizesSection(), ICON_MD_PALETTE, yaze::editor::layout_designer::ThemeProperties::LoadFromCurrent(), and yaze::editor::layout_designer::ThemeProperties::Reset().
|
private |
Definition at line 156 of file theme_properties.cc.
References yaze::editor::layout_designer::ThemeProperties::cell_padding, yaze::editor::layout_designer::ThemeProperties::frame_padding, ICON_MD_SPACE_BAR, yaze::editor::layout_designer::ThemeProperties::item_inner_spacing, yaze::editor::layout_designer::ThemeProperties::item_spacing, show_padding_, and yaze::editor::layout_designer::ThemeProperties::window_padding.
Referenced by Draw().
|
private |
Definition at line 167 of file theme_properties.cc.
References yaze::editor::layout_designer::ThemeProperties::child_rounding, yaze::editor::layout_designer::ThemeProperties::frame_rounding, yaze::editor::layout_designer::ThemeProperties::grab_rounding, ICON_MD_ROUNDED_CORNER, yaze::editor::layout_designer::ThemeProperties::popup_rounding, yaze::editor::layout_designer::ThemeProperties::scrollbar_rounding, show_rounding_, yaze::editor::layout_designer::ThemeProperties::tab_rounding, and yaze::editor::layout_designer::ThemeProperties::window_rounding.
Referenced by Draw().
|
private |
Definition at line 180 of file theme_properties.cc.
References yaze::editor::layout_designer::ThemeProperties::child_border_size, yaze::editor::layout_designer::ThemeProperties::frame_border_size, ICON_MD_BORDER_ALL, yaze::editor::layout_designer::ThemeProperties::popup_border_size, show_borders_, yaze::editor::layout_designer::ThemeProperties::tab_border_size, and yaze::editor::layout_designer::ThemeProperties::window_border_size.
Referenced by Draw().
|
private |
Definition at line 191 of file theme_properties.cc.
References yaze::editor::layout_designer::ThemeProperties::grab_min_size, ICON_MD_STRAIGHTEN, yaze::editor::layout_designer::ThemeProperties::indent_spacing, yaze::editor::layout_designer::ThemeProperties::scrollbar_size, and show_sizes_.
Referenced by Draw().
|
private |
Definition at line 81 of file theme_properties.h.
Referenced by DrawPaddingSection().
|
private |
Definition at line 82 of file theme_properties.h.
Referenced by DrawRoundingSection().
|
private |
Definition at line 83 of file theme_properties.h.
Referenced by DrawBordersSection().
|
private |
Definition at line 84 of file theme_properties.h.
Referenced by DrawSizesSection().