From e464efb42dc26630c550c1b7f0e0d064506ee392 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Mon, 7 Dec 2015 00:41:02 -0500 Subject: [PATCH] change the text color for gui presets --- pd/nw/css/c64.css | 14 ++++++++++---- pd/nw/css/default.css | 7 +++++++ pd/nw/css/inverted.css | 8 +++++++- pd/nw/css/strongbad.css | 8 +++++++- pd/nw/css/vanilla_inverted.css | 10 ++++++++-- pd/nw/pdgui.js | 3 ++- 6 files changed, 41 insertions(+), 9 deletions(-) diff --git a/pd/nw/css/c64.css b/pd/nw/css/c64.css index f3213cfe8..28a0f4059 100644 --- a/pd/nw/css/c64.css +++ b/pd/nw/css/c64.css @@ -16,7 +16,7 @@ ::selection { background: #a49aea; - color: #3e32a2; + color: #cc9933; } /* The main Pd Window */ @@ -89,6 +89,11 @@ fill: #e87216; } +/* text inside boxes: message boxes, object boxes, graphs, comments, etc. */ +.box_text { + fill: #a49aea; +} + #new_object_textentry { /* max-width: 10ch; */ min-width: 3ch; @@ -96,7 +101,8 @@ display: table-cell; padding: 3px 2px 3px 2px; /* box-shadow: inset 1px 0px 0px 1px #000; */ - background-color: white; + color: #a49aea; /* text color */ + background-color: #3a32a2; white-space: normal; word-wrap: break-word; -webkit-margin-before: 0px; @@ -151,8 +157,8 @@ text { } .obj .border { - fill: #7569d7; - stroke: #3e32a2; + fill: #3e32a2; + stroke: #7569d7; } /* A little hack for special canvas of [cnv]. diff --git a/pd/nw/css/default.css b/pd/nw/css/default.css index ebbb1e1d0..41afd9b96 100644 --- a/pd/nw/css/default.css +++ b/pd/nw/css/default.css @@ -113,6 +113,12 @@ mark.console_find_highlighted { fill: #e87216; } +/* text inside boxes: message boxes, object boxes, graphs, comments, etc. */ +.box_text { + fill: black; +} + +/* text inside a box that is being edited */ #new_object_textentry { /* max-width: 10ch; */ min-width: 3ch; @@ -120,6 +126,7 @@ mark.console_find_highlighted { display: table-cell; padding: 3px 2px 3px 2px; /* box-shadow: inset 1px 0px 0px 1px #000; */ + color: black; /* text color */ background-color: white; white-space: normal; word-wrap: break-word; diff --git a/pd/nw/css/inverted.css b/pd/nw/css/inverted.css index 7ad0e6114..a063b4784 100644 --- a/pd/nw/css/inverted.css +++ b/pd/nw/css/inverted.css @@ -16,7 +16,7 @@ /* selected text */ ::selection { - background: #3c3c3c; + background: #a294a2; color: white; /* selected text color */ } @@ -90,6 +90,11 @@ fill: #e87216; } +/* text inside boxes: message boxes, object boxes, graphs, comments, etc. */ +.box_text { + fill: white; +} + #new_object_textentry { /* max-width: 10ch; */ min-width: 3ch; @@ -97,6 +102,7 @@ display: table-cell; padding: 3px 2px 3px 2px; /* box-shadow: inset 1px 0px 0px 1px #000; */ + color: white; /* text color */ background-color: black; white-space: normal; word-wrap: break-word; diff --git a/pd/nw/css/strongbad.css b/pd/nw/css/strongbad.css index 37d42023d..aa3d02ae0 100644 --- a/pd/nw/css/strongbad.css +++ b/pd/nw/css/strongbad.css @@ -89,6 +89,11 @@ fill: #e87216; } +/* text inside boxes: message boxes, object boxes, graphs, comments, etc. */ +.box_text { + fill: #4bd046 +} + #new_object_textentry { /* max-width: 10ch; */ min-width: 3ch; @@ -96,7 +101,8 @@ display: table-cell; padding: 3px 2px 3px 2px; /* box-shadow: inset 1px 0px 0px 1px #000; */ - background-color: white; + color: #4bd046; + background-color: black; white-space: normal; word-wrap: break-word; -webkit-margin-before: 0px; diff --git a/pd/nw/css/vanilla_inverted.css b/pd/nw/css/vanilla_inverted.css index 86e4ec6bb..10d9f752f 100644 --- a/pd/nw/css/vanilla_inverted.css +++ b/pd/nw/css/vanilla_inverted.css @@ -15,8 +15,8 @@ } ::selection { - background: #3c3c3c; - color: white; + background: white; + color: black; } /* The main Pd Window */ @@ -89,6 +89,11 @@ fill: #e87216; } +/* text inside boxes: message boxes, object boxes, graphs, comments, etc. */ +.box_text { + fill: white; +} + #new_object_textentry { /* max-width: 10ch; */ min-width: 3ch; @@ -96,6 +101,7 @@ display: table-cell; padding: 3px 2px 3px 2px; /* box-shadow: inset 1px 0px 0px 1px #000; */ + color: white; /* text color */ background-color: black; white-space: normal; word-wrap: break-word; diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index 414e45633..8f1482261 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -1548,7 +1548,8 @@ function gui_text_new(canvasname, myname, type, isselected, left_margin, font_he "shape-rendering": "crispEdges", "font-size": pd_fontsize_to_gui_fontsize(font) + "px", "font-weight": "normal", - id: myname + "text" + id: myname + "text", + "class": "box_text" }); // trim off any extraneous leading/trailing whitespace. Because of // the way binbuf_gettext works we almost always have a trailing -- GitLab