Skip to content

Commit 8bdaf40

Browse files
committed
Reversed Heuristic and Exhaustive buttons #54: different text color for multi-cgra frame
1 parent 4ec1560 commit 8bdaf40

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

mode_dark_light.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
CANVAS_LINE_COLOR = "white"
2525
MULTI_CGRA_FRAME_COLOR = "#14375E"
2626
MULTI_CGRA_TILE_COLOR = "#1F538D"
27+
MULTI_CGRA_TXT_COLOR = "white"
2728

2829
if args.theme:
2930
# print(f'Input theme argument: {args.theme}')
@@ -34,6 +35,7 @@
3435
CANVAS_LINE_COLOR = "black"
3536
MULTI_CGRA_FRAME_COLOR = "#325882"
3637
MULTI_CGRA_TILE_COLOR = "#3A7EBF"
38+
MULTI_CGRA_TXT_COLOR = "black"
3739

3840
from VectorCGRA.cgra.translate.CGRATemplateRTL_test import *
3941

@@ -53,8 +55,8 @@
5355
PORT_SOUTHEAST = 6
5456
PORT_SOUTHWEST = 7
5557
PORT_DIRECTION_COUNTS = 8
56-
CGRA_ROWS = 2
57-
CGRA_COLS = 2
58+
CGRA_ROWS = 3
59+
CGRA_COLS = 3
5860
ROWS = 4
5961
COLS = 4
6062
INTERVAL = 10
@@ -1616,7 +1618,7 @@ def create_multi_cgra_panel(master, cgraRows=2, cgraCols=2):
16161618
multiCgraCanvas.create_window(x, y, window=cgraFrame, height=cgraSquareLength, width=cgraSquareLength,
16171619
anchor="nw")
16181620
multiCgraCanvas.create_text(x + cgraSquareLength/2 + 5, y + cgraSquareLength + 10, font=customtkinter.CTkFont(weight="bold"),
1619-
text=f"CGRA {cgraId}")
1621+
text=f"CGRA {cgraId}", fill=MULTI_CGRA_TXT_COLOR)
16201622
cgraId = cgraId + 1
16211623

16221624
# todo
@@ -1740,14 +1742,14 @@ def create_multi_cgra_config_panel(master):
17401742
multiCgraRowsLabel.grid(row=3, column=0, padx=5, sticky="w")
17411743
multiCgraRowsLabelEntry = customtkinter.CTkEntry(multiCgraConfigPanel, justify=tkinter.CENTER)
17421744
multiCgraRowsLabelEntry.grid(row=3, column=1, padx=5)
1743-
multiCgraRowsLabelEntry.insert(0, str(2))
1745+
multiCgraRowsLabelEntry.insert(0, str(3))
17441746
widgets["multiCgraRowsLabelEntry"] = multiCgraRowsLabelEntry
17451747

17461748
multiCgraColumnsLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Multi-CGRA\nColumns:')
17471749
multiCgraColumnsLabel.grid(row=4, column=0, padx=5, sticky="w")
17481750
multiCgraColumnsEntry = customtkinter.CTkEntry(multiCgraConfigPanel, justify=tkinter.CENTER)
17491751
multiCgraColumnsEntry.grid(row=4, column=1, padx=5)
1750-
multiCgraColumnsEntry.insert(0, str(2))
1752+
multiCgraColumnsEntry.insert(0, str(3))
17511753
widgets["multiCgraColumnsEntry"] = multiCgraColumnsEntry
17521754

17531755
vectorLanesLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Vector Lanes:')

0 commit comments

Comments
 (0)