Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/panels/left_sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _build_ui(self):
command=self._toggle_sidebar,
relief="flat",
bg="#e0e0e0",
fg="#555",
fg="black",
cursor="hand2",
width=3
)
Expand All @@ -70,7 +70,7 @@ def _build_ui(self):
command=self._load_images,
relief="flat",
bg="#e6e6e6",
fg="#222",
fg="black",
cursor="hand2",
width=3
)
Expand Down Expand Up @@ -143,7 +143,7 @@ def h_lbl(text, col):
f = tk.Frame(self.tbl_head, bg="#e0e0e0", height=24, bd=0, highlightthickness=1, highlightbackground="#f0f0f0")
f.pack_propagate(False)
f.grid(row=0, column=col, sticky="nsew", padx=0, pady=0)
tk.Label(f, text=text, bg="#e0e0e0", font=("Segoe UI", 9, "bold")).pack(expand=True)
tk.Label(f, text=text, bg="#e0e0e0", fg="black", font=("Segoe UI", 9, "bold")).pack(expand=True)

h_lbl("Original", 0)
h_lbl("Preprocessed", 1)
Expand Down
18 changes: 10 additions & 8 deletions app/panels/right_sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _build_ui(self):
self,
text="Settings",
bg="#f4f4f4",
fg="#222",
fg="black",
font=("Segoe UI", 14, "bold")
)
title.pack(anchor="w", padx=16, pady=(16, 8))
Expand Down Expand Up @@ -96,7 +96,7 @@ def _preprocess_section(self):
self,
text="Preprocess Parameters Customization",
bg="#f4f4f4",
fg="#444",
fg="black",
font=("Segoe UI", 11, "bold")
)
lbl.pack(anchor="w", padx=16, pady=(8, 4))
Expand All @@ -108,7 +108,7 @@ def _toggle_prep():

cbtn = tk.Checkbutton(
self, text="Customize", variable=self.preprocess_custom_var,
bg="#f4f4f4", command=_toggle_prep
bg="#f4f4f4", command=_toggle_prep, fg="black"
)
cbtn.pack(anchor="w", padx=16)

Expand All @@ -132,7 +132,7 @@ def _detect_section(self):
self,
text="Mold Detection Parameters Customization",
bg="#f4f4f4",
fg="#444",
fg="black",
font=("Segoe UI", 11, "bold")
)
lbl.pack(anchor="w", padx=16, pady=(8, 4))
Expand All @@ -150,7 +150,7 @@ def _toggle_det():

cbtn = tk.Checkbutton(
self, text="Customize", variable=self.detect_custom_var,
bg="#f4f4f4", command=_toggle_det
bg="#f4f4f4", command=_toggle_det, fg = "black"
)
cbtn.pack(anchor="w", padx=16)

Expand Down Expand Up @@ -182,7 +182,7 @@ def _dropdown(self, label, var, values):
frame = tk.Frame(self, bg="#f4f4f4")
frame.pack(fill="x", padx=16, pady=4)

tk.Label(frame, text=label, bg="#f4f4f4").pack(anchor="w")
tk.Label(frame, text=label, bg="#f4f4f4", fg="black").pack(anchor="w")
cb = ttk.Combobox(
frame,
textvariable=var,
Expand All @@ -196,7 +196,7 @@ def _slider(self, label, var, minv, maxv, step=1):
frame = tk.Frame(self, bg="#f4f4f4")
frame.pack(fill="x", padx=16, pady=4)

tk.Label(frame, text=label, bg="#f4f4f4").pack(anchor="w")
tk.Label(frame, text=label, bg="#f4f4f4", fg="black").pack(anchor="w")
sc = tk.Scale(
frame,
from_=minv,
Expand All @@ -205,7 +205,8 @@ def _slider(self, label, var, minv, maxv, step=1):
orient="horizontal",
variable=var,
bg="#f4f4f4",
highlightthickness=0
highlightthickness=0,
fg="black"
)
sc.pack(fill="x")
return sc
Expand All @@ -221,6 +222,7 @@ def _row_buttons(self, *buttons):
command=cmd,
relief="flat",
bg="#e6e6e6",
fg="black",
cursor="hand2"
).pack(side="left", expand=True, fill="x", padx=2)

Expand Down