diff --git a/apps/system_monitor.cpp b/apps/system_monitor.cpp index 083aa5d..23e4353 100644 --- a/apps/system_monitor.cpp +++ b/apps/system_monitor.cpp @@ -46,7 +46,8 @@ const EsStyle stylePanelMemoryStatistics = { .inherit = ES_STYLE_PANEL_FILLED, .metrics = { - .mask = ES_THEME_METRICS_GAP_ALL, + .mask = ES_THEME_METRICS_INSETS | ES_THEME_METRICS_GAP_ALL, + .insets = ES_RECT_1(8), .gapMajor = 5, .gapMinor = 5, }, diff --git a/desktop/os.header b/desktop/os.header index 2a12cfb..180af1b 100644 --- a/desktop/os.header +++ b/desktop/os.header @@ -2528,6 +2528,19 @@ function void EsSliderSetValue(EsSlider *slider, double newValue, bool sendUpdat // Panels, spacers and splitters. +// Styles for panels: +// Visual: +// ES_STYLE_PANEL_DOCUMENT - same background color as textbox - use to contain textual content +// ES_STYLE_PANEL_FILLED - same background color as window - use to contain a page of controls +// ES_STYLE_PANEL_INSET, ES_STYLE_PANEL_GROUP_BOX, ES_STYLE_PANEL_SHEET - use for grouping controls +// Layout: +// ES_STYLE_PANEL_FORM_TABLE - use for laying out controls in a table +// ES_STYLE_PANEL_POPUP - use for laying out controls in a menu popup +// Root level (the root panel/splitter should be one of these): +// ES_STYLE_PANEL_WINDOW_DIVIDER - does not give the window a background color +// ES_STYLE_PANEL_WINDOW_BACKGROUND - gives the window a background color, same as ES_STYLE_PANEL_FILLED +// ES_STYLE_PANEL_WINDOW_WITH_STATUS_BAR_CONTENT - alternate version of ES_STYLE_PANEL_WINDOW_DIVIDER if the window has a status bar + function EsPanel *EsPanelCreate(EsElement *parent, uint64_t flags = ES_FLAGS_DEFAULT, EsStyleID style = 0); function EsSpacer *EsSpacerCreate(EsElement *parent, uint64_t flags = ES_FLAGS_DEFAULT, EsStyleID style = 0, int width = 0, int height = 0); function EsSplitter *EsSplitterCreate(EsElement *parent, uint64_t flags = ES_FLAGS_DEFAULT, EsStyleID style = 0); diff --git a/res/Theme Source.dat b/res/Theme Source.dat index d5ac4fe..6908a44 100644 Binary files a/res/Theme Source.dat and b/res/Theme Source.dat differ diff --git a/res/Theme.dat b/res/Theme.dat index 3831baa..8f50ef7 100644 Binary files a/res/Theme.dat and b/res/Theme.dat differ