From 8231fd00ebd1bf3a3e9b875023a92d4c083eeca0 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Sun, 24 Jan 2016 18:03:32 -0500 Subject: [PATCH] first attempt at pddplink css, plus a more specific class "pd_link" instead of just "link" --- externals/pddp/pddplink.c | 2 +- pd/nw/css/default.css | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/externals/pddp/pddplink.c b/externals/pddp/pddplink.c index e12dc38dc..e6bb2ff71 100644 --- a/externals/pddp/pddplink.c +++ b/externals/pddp/pddplink.c @@ -164,7 +164,7 @@ static void pddplink_vis(t_gobj *z, t_glist *glist, int vis) gui_vmess("gui_text_create_gobj", "xssiii", glist_getcanvas(glist), rtext_gettag(y), - "link", + "pd_link", text_xpix(&x->x_ob, glist_getcanvas(glist)), text_ypix(&x->x_ob, glist_getcanvas(glist)), glist_istoplevel(glist)); diff --git a/pd/nw/css/default.css b/pd/nw/css/default.css index 41c912c96..a34617a27 100644 --- a/pd/nw/css/default.css +++ b/pd/nw/css/default.css @@ -125,6 +125,19 @@ mark.console_find_highlighted { fill: black; } +/* hyperlinks: for now, just pddplink and helplink */ +.pd_link text { + fill: blue; +} + +.pd_link text:hover { + fill: red; +} + +.pd_link.selected text { + fill: #e87216 !important; +} + /* text inside a box that is being edited */ #new_object_textentry { /* max-width: 10ch; */ -- GitLab