This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository scribble.
View the commit online.
commit c51be479b150d5291454ce28688fe6dd4b09676e
Author: Alastair Poole <[email protected]>
AuthorDate: Tue Dec 1 16:23:18 2026 +0000
use accent for icons
---
data/themes/common/equation_theme.edc | 1 +
data/themes/common/scribble.edc | 24 ++++++++++++++----------
data/themes/common/scribble_editor_controls.edc | 5 +++--
src/bin/scribble_main.c | 3 +++
src/bin/scribble_theme.c | 3 ++-
5 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/data/themes/common/equation_theme.edc b/data/themes/common/equation_theme.edc
index eea6671..51f0b6e 100644
--- a/data/themes/common/equation_theme.edc
+++ b/data/themes/common/equation_theme.edc
@@ -19,6 +19,7 @@ images {
collections {
ICONS(ICON_GROUP)
+ ICONS(TOOLBAR_ICON_GROUP)
#include "scribble_panel.edc"
#include "scribble_tabs.edc"
#include "scribble_divider.edc"
diff --git a/data/themes/common/scribble.edc b/data/themes/common/scribble.edc
index 23ea2fe..4568570 100644
--- a/data/themes/common/scribble.edc
+++ b/data/themes/common/scribble.edc
@@ -1,20 +1,23 @@
efl_version: 1 26;
#define ICONS(V) \
- V("scribble/icon/menu", "menu.svg") V("scribble/icon/minimize", "minimize.svg") \
- V("scribble/icon/maximize", "maximize.svg") V("scribble/icon/restore", "restore.svg") V("scribble/icon/close", "close.svg") \
- V("scribble/icon/new", "new.svg") V("scribble/icon/open", "open.svg") V("scribble/icon/save", "save.svg") \
- V("scribble/icon/save-as", "save-as.svg") V("scribble/icon/undo", "undo.svg") V("scribble/icon/redo", "redo.svg") \
- V("scribble/icon/cut", "cut.svg") V("scribble/icon/copy", "copy.svg") V("scribble/icon/paste", "paste.svg") \
- V("scribble/icon/find", "find.svg") V("scribble/icon/goto", "goto.svg") V("scribble/icon/previous", "previous.svg") V("scribble/icon/next", "next.svg") \
- V("scribble/icon/panel-menu", "panel-menu.svg") V("scribble/icon/about", "about.svg") \
- V("scribble/icon/intelligence", "intelligence.svg")
+ V(menu, "menu.svg") V(minimize, "minimize.svg") \
+ V(maximize, "maximize.svg") V(restore, "restore.svg") V(close, "close.svg") \
+ V(new, "new.svg") V(open, "open.svg") V(save, "save.svg") \
+ V(save-as, "save-as.svg") V(undo, "undo.svg") V(redo, "redo.svg") \
+ V(cut, "cut.svg") V(copy, "copy.svg") V(paste, "paste.svg") \
+ V(find, "find.svg") V(goto, "goto.svg") V(previous, "previous.svg") V(next, "next.svg") \
+ V(panel-menu, "panel-menu.svg") V(about, "about.svg") \
+ V(intelligence, "intelligence.svg")
#define ICON_IMAGE(name, file) image: file COMP;
-#define ICON_GROUP(icon, file) \
+#define TINTED_ICON_GROUP(icon, file, tint) \
group { name: icon; min: 16 16; \
parts { part { name: "glyph"; mouse_events: 0; \
description { state: "default" 0.0; aspect: 1 1; aspect_preference: BOTH; \
- image.normal: file; color_class: "scribble.ink"; } } } }
+ image.normal: file; color_class: tint; } } } }
+#define ICON_GROUP(glyph, file) TINTED_ICON_GROUP(ICON_PATH(scribble/icon/glyph), file, "scribble.ink")
+#define TOOLBAR_ICON_GROUP(glyph, file) TINTED_ICON_GROUP(ICON_PATH(scribble/toolbar/glyph), file, "scribble.toolbar-icon")
+#define ICON_PATH(path) #path
images {
ICONS(ICON_IMAGE)
image: "tab-face.svg" COMP;
@@ -27,6 +30,7 @@ color_classes {
color_class { name: "scribble.tab-active"; color: 54 57 63 255; }
color_class { name: "scribble.tab-highlight"; color: 76 81 89 255; }
color_class { name: "scribble.tab-accent"; color: 91 150 206 255; }
+ color_class { name: "scribble.toolbar-icon"; color: 91 150 206 255; }
color_class { name: "scribble.tab-label"; color: 186 190 196 255; }
color_class { name: "scribble.tab-active-label"; color: 237 238 241 255; }
color_class { name: "scribble.ink"; color: 227 227 227 255; }
diff --git a/data/themes/common/scribble_editor_controls.edc b/data/themes/common/scribble_editor_controls.edc
index 2560789..f69aa84 100644
--- a/data/themes/common/scribble_editor_controls.edc
+++ b/data/themes/common/scribble_editor_controls.edc
@@ -1,7 +1,7 @@
group { name: "elm/toolbar/item/default";
alias: "elm/toolbar/item/item_centered";
alias: "elm/toolbar/item/item_horizontal";
- min: 28 28;
+ min: 30 30;
#include "equation/groups/equation_button_script.edc"
parts {
@@ -28,7 +28,8 @@ group { name: "elm/toolbar/item/default";
}
part { name: "elm.swallow.icon"; type: SWALLOW; scale: 1; clip_to: "icon_clip";
description { state: "default" 0.0; offset_scale: 1;
- rel1.offset: 5 5; rel2.offset: -6 -6;
+ rel1.offset: 5 5; rel2.offset: -7 -7;
+ max: 19 19;
align: 0.5 0.5; aspect: 1 1; aspect_preference: BOTH;
}
}
diff --git a/src/bin/scribble_main.c b/src/bin/scribble_main.c
index 3d326db..f7956c6 100644
--- a/src/bin/scribble_main.c
+++ b/src/bin/scribble_main.c
@@ -1665,6 +1665,9 @@ scribble_toolbar_create(Scribble_App *app)
_(scribble_toolbar_items[index].label));
}
scribble_toolbar_drawer_hide(toolbar);
+ if (scribble_theme_active_get() != SCRIBBLE_THEME_DEFAULT)
+ evas_object_size_hint_padding_set(toolbar, ELM_SCALE_SIZE(5), ELM_SCALE_SIZE(5),
+ ELM_SCALE_SIZE(3), ELM_SCALE_SIZE(3));
scribble_pack(app->toolbar_row, toolbar, EINA_FALSE);
}
diff --git a/src/bin/scribble_theme.c b/src/bin/scribble_theme.c
index 1372cd4..7b7f45b 100644
--- a/src/bin/scribble_theme.c
+++ b/src/bin/scribble_theme.c
@@ -85,6 +85,7 @@ static const Scribble_Color_Class scribble_ui_classes[] = {
{ "scribble.tab-active", SCRIBBLE_EDITOR },
{ "scribble.tab-highlight", SCRIBBLE_EDGE },
{ "scribble.tab-accent", SCRIBBLE_ACCENT },
+ { "scribble.toolbar-icon", SCRIBBLE_ACCENT },
{ "scribble.tab-label", SCRIBBLE_MUTED },
{ "scribble.tab-active-label", SCRIBBLE_CODE },
{ "/bg/normal/popup/base", SCRIBBLE_SURFACE },
@@ -376,7 +377,7 @@ scribble_theme_toolbar_icon_set(Elm_Object_Item *item, const char *name)
if (scribble_active_theme == SCRIBBLE_THEME_DEFAULT) return;
archive = scribble_theme_archive(scribble_active_theme);
if (archive)
- elm_toolbar_item_icon_file_set(item, archive, eina_slstr_printf("scribble/icon/%s", name));
+ elm_toolbar_item_icon_file_set(item, archive, eina_slstr_printf("scribble/toolbar/%s", name));
}
void
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.