This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository evisum.
View the commit online.
commit 4e22e336e9f67c72fad2a6828f016c119bf49f80
Author: Alastair Poole <[email protected]>
AuthorDate: Tue Nov 24 02:39:44 2026 +0000
border and font sizing fix.
---
NEWS | 1 +
data/themes/folio.edc | 2 +-
data/themes/frequency.edc | 2 +-
data/themes/gant.edc | 2 +-
data/themes/midnight.edc | 2 +-
data/themes/nocturne.edc | 2 +-
data/themes/shared/meters.edc | 6 +--
data/themes/shared/tabs.edc | 2 +-
data/themes/shared/theme.edc | 3 +-
data/themes/shared/widgets.edc | 34 ++++++++++++++---
data/themes/shared/window.edc | 18 ++++++---
data/themes/undertow.edc | 2 +-
data/themes/voltage.edc | 2 +-
src/bin/ui/evisum_ui_process_list.c | 74 +++++++++++++++++++++----------------
src/bin/ui/evisum_ui_theme.c | 10 -----
15 files changed, 97 insertions(+), 65 deletions(-)
diff --git a/NEWS b/NEWS
index fbfcbdc..fc70451 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Evisum 2.0.17
* Don't block the UI on shutting down enigmatic if we don't persist.
* Handle video card adding and deletion.
* Choose from seven themes in Global options.
+ * Respect the configured font sizes in custom themes.
=============
Evisum 2.0.16
diff --git a/data/themes/folio.edc b/data/themes/folio.edc
index 8836f01..24223a3 100644
--- a/data/themes/folio.edc
+++ b/data/themes/folio.edc
@@ -26,7 +26,7 @@
#define TITLE_FONT "Serif:style=Bold"
#define BUTTON_HEIGHT 37
#define ROW_HEIGHT 26
-#define LABEL_STYLE "font=Sans font_size=13 color=#493d31ff align=center wrap=none"
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#493d31ff align=center wrap=none"
data {
item: "evisum/graph_palette/000" "#8c563c";
diff --git a/data/themes/frequency.edc b/data/themes/frequency.edc
index a8d6944..c89bdb9 100644
--- a/data/themes/frequency.edc
+++ b/data/themes/frequency.edc
@@ -26,7 +26,7 @@
#define TITLE_FONT "Sans:style=Bold"
#define BUTTON_HEIGHT 34
#define ROW_HEIGHT 23
-#define LABEL_STYLE "font=Sans font_size=13 color=#ffe0adff align=center wrap=none"
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#ffe0adff align=center wrap=none"
data {
item: "evisum/graph_palette/000" "#e0ad65";
diff --git a/data/themes/gant.edc b/data/themes/gant.edc
index 2eb904d..642c555 100644
--- a/data/themes/gant.edc
+++ b/data/themes/gant.edc
@@ -26,7 +26,7 @@
#define TITLE_FONT "Sans:style=Bold"
#define BUTTON_HEIGHT 36
#define ROW_HEIGHT 24
-#define LABEL_STYLE "font=Sans font_size=13 color=#eff8fcff align=center wrap=none"
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#eff8fcff align=center wrap=none"
data {
item: "evisum/graph_palette/000" "#c1efff";
diff --git a/data/themes/midnight.edc b/data/themes/midnight.edc
index dee7b36..c8b3063 100644
--- a/data/themes/midnight.edc
+++ b/data/themes/midnight.edc
@@ -26,7 +26,7 @@
#define TITLE_FONT "Sans:style=Bold"
#define BUTTON_HEIGHT 35
#define ROW_HEIGHT 24
-#define LABEL_STYLE "font=Sans font_size=13 color=#e0e9f8ff align=center wrap=none"
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#e0e9f8ff align=center wrap=none"
data {
item: "evisum/graph_palette/000" "#7bb1ff";
diff --git a/data/themes/nocturne.edc b/data/themes/nocturne.edc
index 213af92..9deb753 100644
--- a/data/themes/nocturne.edc
+++ b/data/themes/nocturne.edc
@@ -26,7 +26,7 @@
#define TITLE_FONT "Sans:style=Medium"
#define BUTTON_HEIGHT 35
#define ROW_HEIGHT 24
-#define LABEL_STYLE "font=Sans font_size=13 color=#e6e1f3ff align=center wrap=none"
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#e6e1f3ff align=center wrap=none"
data {
item: "evisum/graph_palette/000" "#c0adeb";
diff --git a/data/themes/shared/meters.edc b/data/themes/shared/meters.edc
index b0a65d9..ce0470c 100644
--- a/data/themes/shared/meters.edc
+++ b/data/themes/shared/meters.edc
@@ -8,7 +8,7 @@
#define METER_FILLED_TEXT(ID, SOURCE, CLIP, ALIGN) \
part { name: ID; type: TEXT; mouse_events: 0; scale: 1; clip_to: CLIP; \
description { state: "default" 0.0; color: BG; rel.to: SOURCE; \
- text { font: HEADING_FONT; size: TEXT_SIZE; align: ALIGN 0.5; \
+ text { font: HEADING_FONT; size: TEXT_SIZE; text_class: "label"; align: ALIGN 0.5; \
ellipsis: 1; text_source: SOURCE; } } }
group { name: "elm/progressbar/horizontal/default"; min: 24 19;
@@ -50,13 +50,13 @@ group { name: "elm/progressbar/horizontal/default"; min: 24 19;
description { state: "default" 0.0; color: INK; offset_scale: 1;
rel1 { to_x: "elm.swallow.content"; to_y: "track"; relative: 1 0; offset: 4 0; }
rel2 { to: "track"; relative: 0.5 1; }
- text { font: HEADING_FONT; size: TEXT_SIZE; align: 0 0.5; ellipsis: 1; }
+ text { font: HEADING_FONT; size: TEXT_SIZE; text_class: "label"; align: 0 0.5; ellipsis: 1; }
}
}
part { name: "elm.text.status"; type: TEXT; mouse_events: 0; scale: 1;
description { state: "default" 0.0; color: INK; offset_scale: 1; rel.to: "track";
rel1.offset: 5 0; rel2.offset: -6 -1;
- text { font: HEADING_FONT; size: TEXT_SIZE; align: 1 0.5; ellipsis: 1; }
+ text { font: HEADING_FONT; size: TEXT_SIZE; text_class: "label"; align: 1 0.5; ellipsis: 1; }
}
}
METER_FILLED_TEXT("filled-label", "elm.text", "fraction-clip", 0)
diff --git a/data/themes/shared/tabs.edc b/data/themes/shared/tabs.edc
index 879b80e..fda12f5 100644
--- a/data/themes/shared/tabs.edc
+++ b/data/themes/shared/tabs.edc
@@ -24,7 +24,7 @@ group { name: "elm/segment_control/item/evisum";
part { name: "elm.text"; type: TEXT; mouse_events: 0; scale: 1;
description { state: "default" 0.0; offset_scale: 1; rel.to: "face"; color: INK;
rel1.offset: 6 2; rel2.offset: -7 -3;
- text { font: HEADING_FONT; size: TEXT_SIZE; align: 0.5 0.5; min: 1 1; ellipsis: 1; }
+ text { font: HEADING_FONT; size: TEXT_SIZE; text_class: "label"; align: 0.5 0.5; min: 1 1; ellipsis: 1; }
}
}
}
diff --git a/data/themes/shared/theme.edc b/data/themes/shared/theme.edc
index 6170fa7..a7a0963 100644
--- a/data/themes/shared/theme.edc
+++ b/data/themes/shared/theme.edc
@@ -5,7 +5,6 @@ data {
item: "edge" EDGE_DATA;
item: "ink" INK_DATA;
item: "evisum/about/ink" INK_HEX;
- item: "evisum/text-size" "13";
item: "muted" MUTED_DATA;
item: "accent" ACCENT_DATA;
item: "selection" SELECTED_DATA;
@@ -37,7 +36,7 @@ images {
#define UI_FONT "Sans"
#define HEADING_FONT "Sans:style=Medium"
#define TITLE_SIZE 15
-#define TEXT_SIZE 13
+#define TEXT_SIZE 11
collections {
#define THEME_ICON(GROUP, FILE, SIZE) \
diff --git a/data/themes/shared/widgets.edc b/data/themes/shared/widgets.edc
index 094c239..1a621ab 100644
--- a/data/themes/shared/widgets.edc
+++ b/data/themes/shared/widgets.edc
@@ -37,7 +37,7 @@ group { name: "elm/button/base/default"; min: 26 BUTTON_HEIGHT;
part { name: "elm.text"; type: TEXT; mouse_events: 0; scale: 1;
description { state: "default" 0.0; offset_scale: 1; color: INK;
rel1.offset: 8 3; rel2.offset: -9 -4;
- text { font: UI_FONT; size: TEXT_SIZE; min: 1 1; ellipsis: -1; }
+ text { font: UI_FONT; size: TEXT_SIZE; text_class: "label"; min: 1 1; ellipsis: -1; }
}
description { state: "with_icon" 0.0; inherit: "default" 0.0;
rel1 { relative: 0.24 0; offset: 8 3; } }
@@ -141,7 +141,7 @@ group { name: "elm/button/base/evisum/column"; inherit: "elm/button/base/default
}
part { name: "elm.text";
description { state: "default" 0.0; rel1.offset: 9 3; rel2.offset: -31 -4;
- text { font: HEADING_FONT; size: TEXT_SIZE; align: 0.5 0.5; min: 0 1; ellipsis: 1; } }
+ text { font: HEADING_FONT; size: TEXT_SIZE; text_class: "label"; align: 0.5 0.5; min: 0 1; ellipsis: 1; } }
description { state: "with_icon" 0.0; inherit: "default" 0.0;
rel1 { relative: 0 0; offset: 9 3; }
text.align: 0.5 0.5;
@@ -255,7 +255,7 @@ group { name: "elm/button/base/hoversel_vertical/default"; inherit: "elm/button/
part { name: "elm.text"; type: TEXT; scale: 1; mouse_events: 0; clip_to: "ink"; \
description { state: "default" 0.0; offset_scale: 1; color: INK; \
rel1.offset: 27 1; rel2.offset: -6 -2; \
- text { font: UI_FONT; size: TEXT_SIZE; min: 1 1; align: 0 0.5; } } } \
+ text { font: UI_FONT; size: TEXT_SIZE; text_class: "label"; min: 1 1; align: 0 0.5; } } } \
part { name: "event"; type: RECT; ignore_flags: ON_HOLD; \
description { state: "default" 0.0; color: 0 0 0 0; } \
description { state: "disabled" 0.0; inherit: "default" 0.0; visible: 0; } } \
@@ -298,7 +298,7 @@ group { name: "elm/frame/base/default";
description { state: "default" 0.0; offset_scale: 1; color: INK;
fixed: 0 1; align: 0 0; rel1.offset: 9 5;
rel2 { relative: 1 0; offset: -10 5; }
- text { font: HEADING_FONT; size: TEXT_SIZE; min: 0 1; align: 0 0.5; }
+ text { font: HEADING_FONT; size: TEXT_SIZE; text_class: "label"; min: 0 1; align: 0 0.5; }
}
}
part { name: "elm.swallow.content"; type: SWALLOW; scale: 1;
@@ -480,6 +480,30 @@ group { name: "elm/genlist/item/full/default"; inherit: "evisum/genlist/row";
}
}
+group { name: "elm/genlist/item/evisum-exel/default"; inherit: "elm/genlist/item/full/default";
+ alias: "elm/genlist/item_odd/evisum-exel/default";
+ alias: "elm/genlist/item_compress/evisum-exel/default";
+ alias: "elm/genlist/item_compress_odd/evisum-exel/default";
+ parts {
+ part { name: "row";
+ description { state: "default" 0.0; color_class: "evisum/exel/row"; }
+ description { state: "odd" 0.0; color_class: "evisum/exel/row"; }
+ }
+ part { name: "hover";
+ description { state: "default" 0.0; color_class: "evisum/exel/row"; }
+ description { state: "on" 0.0; color_class: "evisum/exel/row"; }
+ }
+ part { name: "selection";
+ description { state: "default" 0.0; color_class: "evisum/exel/row"; }
+ description { state: "on" 0.0; color_class: "evisum/exel/row"; }
+ }
+ part { name: "marked-row";
+ description { state: "default" 0.0; color_class: "evisum/exel/row"; }
+ description { state: "on" 0.0; color_class: "evisum/exel/row"; }
+ }
+ }
+}
+
group { name: "elm/genlist/item/evisum-process/default"; inherit: "evisum/genlist/row";
alias: "elm/genlist/item_odd/evisum-process/default";
alias: "elm/genlist/item_compress/evisum-process/default";
@@ -501,7 +525,7 @@ group { name: "elm/genlist/item/evisum-process/default"; inherit: "evisum/genlis
description { state: "default" 0.0; offset_scale: 1; color: INK;
rel1 { to_x: "elm.swallow.icon"; relative: 1 0; offset: 8 2; }
rel2.offset: -10 -3;
- text { font: UI_FONT; size: TEXT_SIZE; align: 0 0.5; min: 0 1; ellipsis: 1; }
+ text { font: UI_FONT; size: TEXT_SIZE; text_class: "label"; align: 0 0.5; min: 0 1; ellipsis: 1; }
}
}
}
diff --git a/data/themes/shared/window.edc b/data/themes/shared/window.edc
index a3505a0..53e11a2 100644
--- a/data/themes/shared/window.edc
+++ b/data/themes/shared/window.edc
@@ -24,19 +24,27 @@ group { name: "evisum/window"; min: 190 80;
description { state: "maximized" 0.0; inherit: "default" 0.0; visible: 0; }
}
part { name: "edge"; type: RECT; mouse_events: 0; scale: 1;
- description { state: "default" 0.0; offset_scale: 1; color: EDGE;
+ description { state: "default" 0.0; offset_scale: 1; color: 0 0 0 0;
rel1.offset: 5 3; rel2.offset: -6 -9; }
description { state: "maximized" 0.0; inherit: "default" 0.0;
rel1.offset: 0 0; rel2.offset: -1 -1; }
}
- WINDOW_RECT("surface", BG, 0,0,1,1, 1,1,-2,-2, 0)
- WINDOW_RECT("accent", ACCENT, 0,0,1,0, 1,1,-2,1, 0)
+ WINDOW_RECT("edge.top", EDGE, 0,0,1,0, 0,0,-1,0, 0)
+ WINDOW_RECT("edge.bottom", EDGE, 0,1,1,1, 0,-1,-1,-1, 0)
+ WINDOW_RECT("edge.left", EDGE, 0,0,0,1, 0,1,0,-2, 0)
+ WINDOW_RECT("edge.right", EDGE, 1,0,1,1, -1,1,-1,-2, 0)
+ part { name: "surface"; type: RECT; mouse_events: 0; scale: 1;
+ description { state: "default" 0.0; offset_scale: 1; color: BG;
+ color_class: "evisum/window/surface"; rel.to: "edge";
+ rel1.offset: 1 1; rel2.offset: -2 -2; }
+ }
+ WINDOW_RECT("accent", ACCENT, 0,0,1,0, 1,1,-2,2, 0)
WINDOW_RECT("move", 0 0 0 0, 0,0,1,0, 5,5,-6,(HEADER_HEIGHT - 1), 1)
part { name: "evisum.title"; type: TEXT; mouse_events: 0; scale: 1;
description { state: "default" 0.0; offset_scale: 1; color: INK;
rel.to: "edge"; rel1.offset: 12 5;
rel2 { relative: 0 0; to_x: "evisum.controls"; offset: -9 (HEADER_HEIGHT - 1); }
- text { font: "Sans:style=Bold"; size: 13; align: 0 0.5; ellipsis: 1; }
+ text { font: "Sans:style=Bold"; size: TEXT_SIZE; text_class: "label"; align: 0 0.5; ellipsis: 1; }
}
description { state: "with_menu" 0.0; inherit: "default" 0.0;
rel1 { to_x: "evisum.menu"; relative: 1 0; offset: 5 5; } }
@@ -108,7 +116,7 @@ group { name: "evisum/about/hero";
description { state: "default" 0.0; offset_scale: 1; color: INK;
rel1 { relative: 0 0.55; offset: 23 0; }
rel2 { relative: 0.66 0.83; offset: -1 0; }
- text { font: UI_FONT; size: TEXT_SIZE; align: 0 0.5; ellipsis: 1; }
+ text { font: UI_FONT; size: TEXT_SIZE; text_class: "label"; align: 0 0.5; ellipsis: 1; }
}
}
}
diff --git a/data/themes/undertow.edc b/data/themes/undertow.edc
index 36202ba..4f6fb2d 100644
--- a/data/themes/undertow.edc
+++ b/data/themes/undertow.edc
@@ -26,7 +26,7 @@
#define TITLE_FONT "Sans:style=Medium"
#define BUTTON_HEIGHT 36
#define ROW_HEIGHT 25
-#define LABEL_STYLE "font=Sans font_size=13 color=#d3f0ebff align=center wrap=none"
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#d3f0ebff align=center wrap=none"
data {
item: "evisum/graph_palette/000" "#77d8bd";
diff --git a/data/themes/voltage.edc b/data/themes/voltage.edc
index 61ef087..f33c650 100644
--- a/data/themes/voltage.edc
+++ b/data/themes/voltage.edc
@@ -26,7 +26,7 @@
#define TITLE_FONT "Sans:style=Bold"
#define BUTTON_HEIGHT 33
#define ROW_HEIGHT 23
-#define LABEL_STYLE "font=Sans font_size=13 color=#e2f9efff align=center wrap=none"
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#e2f9efff align=center wrap=none"
data {
item: "evisum/graph_palette/000" "#5bd9d1";
diff --git a/src/bin/ui/evisum_ui_process_list.c b/src/bin/ui/evisum_ui_process_list.c
index a1c4b4f..1eb5c8b 100644
--- a/src/bin/ui/evisum_ui_process_list.c
+++ b/src/bin/ui/evisum_ui_process_list.c
@@ -75,6 +75,7 @@ typedef struct
Elm_Genlist_Item_Class itc;
Evas_Object *btn_menu;
Evas_Object *widget_exel;
+ Evas_Object *scroller;
Evas_Object *sort_header;
struct
@@ -2069,7 +2070,7 @@ _evisum_ui_process_list_content_add(Evisum_Ui_Process_List_View *view, Evas_Obje
Evas_Object *btn, *scr;
Evas_Object *fr, *hbx;
- scr = elm_scroller_add(parent);
+ view->scroller = scr = elm_scroller_add(parent);
evas_object_size_hint_weight_set(scr, EXPAND, EXPAND);
evas_object_size_hint_align_set(scr, FILL, FILL);
elm_scroller_policy_set(scr, ELM_SCROLLER_POLICY_AUTO, ELM_SCROLLER_POLICY_OFF);
@@ -2088,7 +2089,8 @@ _evisum_ui_process_list_content_add(Evisum_Ui_Process_List_View *view, Evas_Obje
evisum_ui_widget_exel_header_content_set(view->widget_exel, btn);
}
- view->itc.item_style = "full";
+ view->itc.item_style = elm_theme_group_path_find(NULL, "elm/genlist/item/evisum-exel/default")
+ ? "evisum-exel" : "full";
view->itc.func.text_get = NULL;
view->itc.func.content_get = _evisum_ui_process_list_content_get;
view->itc.func.filter_get = NULL;
@@ -2407,43 +2409,50 @@ _evisum_ui_process_list_win_resize_cb(void *data, Evas *e, Evas_Object *obj, voi
evas_object_show(view->indicator);
}
+static void
+_process_list_scroller_background_set(Evas_Object *scroller, Eina_Bool transparent)
+{
+ if (!scroller) return;
+
+ Evas_Object *edje = elm_layout_edje_get(scroller);
+ const char *color_class = "/bg/normal/scroller/base";
+ if (transparent)
+ edje_object_color_class_set(edje, color_class, 255, 255, 255, 0,
+ 255, 255, 255, 255, 255, 255, 255, 255);
+ else
+ edje_object_color_class_del(edje, color_class);
+}
+
static void
_evisum_ui_process_list_win_alpha_set(Evisum_Ui_Process_List_View *view)
{
- Evas_Object *bg, *win;
- Evisum_Ui *ui;
- int r, g, b, a;
- double fade;
+ Evas_Object *win = view->win;
+ Evas_Object *frame = evas_object_data_get(win, "evisum_frame");
+ Evisum_Ui *ui = view->ui;
+ int alpha = ui->proc.transparent ? 255 * ui->proc.alpha / 100 : 255;
- win = view->win;
- ui = view->ui;
-
- bg = evas_object_data_get(win, "bg");
- if (!bg) return;
-
- fade = ui->proc.alpha / 100.0;
-
- // FIXME: Base window colour from theme.
- if (ui->proc.transparent)
+ if (frame)
{
- r = b = g = a = 255;
- evas_object_color_set(view->widget_exel, r * fade, g * fade, b * fade, fade * a);
- r = b = g = a = 255;
- evas_object_color_set(bg, r * fade, g * fade, b * fade, fade * a);
- elm_bg_color_set(bg, -1, -1, -1);
+ Evas_Object *genlist = evisum_ui_widget_exel_genlist_obj_get(view->widget_exel);
+ _process_list_scroller_background_set(view->scroller, alpha < 255);
+ _process_list_scroller_background_set(genlist, alpha < 255);
+ edje_color_class_set("evisum/exel/row", 255, 255, 255, alpha,
+ 255, 255, 255, 255, 255, 255, 255, 255);
+ edje_object_color_class_set(elm_layout_edje_get(frame),
+ "evisum/window/surface", 255, 255, 255, alpha,
+ 255, 255, 255, 255, 255, 255, 255, 255);
}
else
{
- r = b = g = a = 255;
- evas_object_color_set(view->widget_exel, r, g, b, a);
- r = b = g = a = 255;
- evas_object_color_set(bg, r, g, b, a);
- elm_bg_color_set(bg, -1, -1, -1);
- }
-
- if (ui->proc.transparent != view->transparent)
- {
- elm_win_alpha_set(win, ui->proc.transparent);
+ Evas_Object *bg = evas_object_data_get(win, "bg");
+ evas_object_color_set(view->widget_exel, alpha, alpha, alpha, alpha);
+ if (bg)
+ {
+ evas_object_color_set(bg, alpha, alpha, alpha, alpha);
+ elm_bg_color_set(bg, -1, -1, -1);
+ }
+ if (ui->proc.transparent != view->transparent)
+ elm_win_alpha_set(win, ui->proc.transparent);
}
view->transparent = ui->proc.transparent;
}
@@ -2661,7 +2670,8 @@ evisum_ui_process_list_win_add(Evisum_Ui *ui)
icon = elm_icon_add(win);
elm_icon_standard_set(icon, "evisum");
elm_win_icon_object_set(win, icon);
- evisum_ui_background_add(win);
+ if (!evas_object_data_get(win, "evisum_frame"))
+ evisum_ui_background_add(win);
if ((ui->proc.width > 1) && (ui->proc.height > 1)) evas_object_resize(win, ui->proc.width, ui->proc.height);
else evas_object_resize(win, EVISUM_WIN_WIDTH * elm_config_scale_get(), EVISUM_WIN_HEIGHT * elm_config_scale_get());
diff --git a/src/bin/ui/evisum_ui_theme.c b/src/bin/ui/evisum_ui_theme.c
index 71089f3..f29089b 100644
--- a/src/bin/ui/evisum_ui_theme.c
+++ b/src/bin/ui/evisum_ui_theme.c
@@ -85,16 +85,6 @@ _fallback_palette_apply(void *data EINA_UNUSED, int type EINA_UNUSED, void *even
free(value);
}
- static const char *text_classes[] = {
- "entry_text", "entry_text_disabled", "entry_guide_text", "list_item",
- "list_item_selected", "list_group_item", "menu_item", "slider_text"
- };
- const char *text_size = elm_theme_data_get(NULL, "evisum/text-size");
- int size = text_size ? atoi(text_size) : 0;
- if (size > 0)
- for (unsigned int i = 0; i < EINA_C_ARRAY_LENGTH(text_classes); i++)
- edje_text_class_set(text_classes[i], "Sans", size);
-
return ECORE_CALLBACK_RENEW;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.