Tint navigation arrows to match theme
This commit is contained in:
parent
662f6b4df3
commit
f49a13b80e
|
|
@ -328,6 +328,7 @@ class UIBuilderMixin:
|
||||||
def _create_navigation_button(self, container, symbol: str, command, *, column: int) -> None:
|
def _create_navigation_button(self, container, symbol: str, command, *, column: int) -> None:
|
||||||
bg = self.root.cget("bg") if hasattr(self.root, "cget") else "#f2f2f7"
|
bg = self.root.cget("bg") if hasattr(self.root, "cget") else "#f2f2f7"
|
||||||
container.grid_rowconfigure(0, weight=1)
|
container.grid_rowconfigure(0, weight=1)
|
||||||
|
fg = "#f5f5f5" if getattr(self, "theme", "light") == "dark" else "#1f1f1f"
|
||||||
btn = tk.Button(
|
btn = tk.Button(
|
||||||
container,
|
container,
|
||||||
text=symbol,
|
text=symbol,
|
||||||
|
|
@ -338,6 +339,8 @@ class UIBuilderMixin:
|
||||||
background=bg,
|
background=bg,
|
||||||
activebackground=bg,
|
activebackground=bg,
|
||||||
highlightthickness=0,
|
highlightthickness=0,
|
||||||
|
fg=fg,
|
||||||
|
activeforeground=fg,
|
||||||
cursor="hand2",
|
cursor="hand2",
|
||||||
width=2,
|
width=2,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue