summaryrefslogtreecommitdiff
path: root/devel/redasm/files/patch-git-779ffd9
blob: 0fa11ad60db3c639d7ab3c19fc4b789cef1c2a39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
https://github.com/REDasmOrg/REDasm/commit/779ffd95fc331a1c879bab70b30f5e7bb781f69d

--- themes/dark.json.orig
+++ themes/dark.json
@@ -43,6 +43,11 @@
     "instruction_jmp_c": "#e67e22",
 
     "graph_bg": "#262626",
+    "graph_edge": "#3498db",
+    "graph_edge_true": "#2ecc71",
+    "graph_edge_false": "#e74c3c",
+    "graph_edge_loop": "#1abc9c",
+    "graph_edge_loop_c": "#f47cc3",
 
     "address_list_fg": "#ef717a",
     "segment_name_fg": "#2dcb71",
--- themes/light.json.orig
+++ themes/light.json
@@ -29,6 +29,11 @@
     "instruction_jmp_c": "#d95459",
 
     "graph_bg": "azure",
+    "graph_edge": "#297fb9",
+    "graph_edge_true": "#27ae60",
+    "graph_edge_false": "#c0392b",
+    "graph_edge_loop": "#2d5036",
+    "graph_edge_loop_c": "#8e44ad",
 
     "address_list_fg": "darkblue",
     "segment_name_fg": "darkgreen",
--- widgets/disassemblergraphview/disassemblergraphview.cpp.orig
+++ widgets/disassemblergraphview/disassemblergraphview.cpp
@@ -115,7 +115,7 @@ QString DisassemblerGraphView::getNodeContent(const REDasm::Graphing::Node *n) c
 QColor DisassemblerGraphView::getEdgeColor(const REDasm::Graphing::Node *from, const REDasm::Graphing::Node *to) const
 {
     const REDasm::Graphing::FunctionBlock* fb = static_cast<const REDasm::Graphing::FunctionBlock*>(from);
-    return QColor(QString::fromStdString(fb->color(static_cast<const REDasm::Graphing::FunctionBlock*>(to))));
+    return THEME_VALUE(QString::fromStdString(fb->style(static_cast<const REDasm::Graphing::FunctionBlock*>(to))));
 }
 
 void DisassemblerGraphView::initializePage()