using long color codes only

This commit is contained in:
Martino Ferrari
2026-04-22 10:48:02 +02:00
parent 7266540371
commit 87381ee328
+8 -8
View File
@@ -154,14 +154,14 @@ def __doc_iogam__(id, obj, edges, thread):
) )
) )
orows.append(orow) orows.append(orow)
fill = "#eee" fill = "#eeeeee"
fcolor = "#000" fcolor = "#000000"
total = max(len(orows), len(irows)) total = max(len(orows), len(irows))
if bold or total > 1: if bold or total > 1:
fill = "#eee" fill = "#eeeeee"
bold = True bold = True
else: else:
fill = "#eee" fill = "#eeeeee"
inode = f"{id}_{counter} [shape=plaintext," inode = f"{id}_{counter} [shape=plaintext,"
inode += f'tooltip=" IOGAM::{id} ", label=<' inode += f'tooltip=" IOGAM::{id} ", label=<'
@@ -321,7 +321,7 @@ def __doc_mathgam__(id, obj, edges, thread):
node = __gam__(id, label, obj["Class"]) node = __gam__(id, label, obj["Class"])
node += ( node += (
"<tr><td colspan='2' align='left' balign='left' bgcolor='#fef'><font face='mono' point-size='9'>" "<tr><td colspan='2' align='left' balign='left' bgcolor='#ffeeff'><font face='mono' point-size='9'>"
+ __sanitize__(obj["Expression"]) + __sanitize__(obj["Expression"])
+ "</font></td></tr><hr/> " + "</font></td></tr><hr/> "
) )
@@ -418,7 +418,7 @@ def __process_gamds__(name, cls, signals, edges):
{node} {node}
</table> </table>
""" """
node = f'{name} [shape=plaintext, label=<{label}>, color="#0af"];\n' node = f'{name} [shape=plaintext, label=<{label}>, color="#00aaff"];\n'
return node, edges return node, edges
@@ -470,7 +470,7 @@ def __process_ds__(name, obj, edges):
sig_type = sigs[sig_name] sig_type = sigs[sig_name]
node += f"{sig_name} ({doc.type_to_string(sig_type)})" node += f"{sig_name} ({doc.type_to_string(sig_type)})"
node += "</td></tr>\n" node += "</td></tr>\n"
node += '</table>>, color="#0af"];\n' node += '</table>>, color="#00aaff"];\n'
if not multi_thread and node: if not multi_thread and node:
node = f"subgraph cluster_{thread}" + "{\n" + node + "};\n" node = f"subgraph cluster_{thread}" + "{\n" + node + "};\n"
return node, edges return node, edges
@@ -593,7 +593,7 @@ def __simple_ds__(label, obj, edges):
multi_thread = True multi_thread = True
fillcolor = "lightblue" fillcolor = "lightblue"
bordercolor = "#0af" bordercolor = "#00aaff"
style = "penwidth=2" style = "penwidth=2"
if cls == "GAMDataSource": if cls == "GAMDataSource":
fillcolor = "#eee" fillcolor = "#eee"