From ab6286db3633dab354bac22c6100900502b26269 Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+uiucmeche1317@users.noreply.github.com> Date: Sat, 12 Jul 2025 11:27:21 -0700 Subject: [PATCH 1/7] Fixed hover background color issue on Translation Guide for Python Packaging Guide --- _ext/translation_graph.py | 1 + 1 file changed, 1 insertion(+) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 2077faaf..50968131 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -146,6 +146,7 @@ def run(self): fig.update_layout( paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", + hoverlabel=dict(bgcolor="white"), font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False, From e0c61be5ce68e788fdce0b8e5008e403cdcfc271 Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+uiucmeche1317@users.noreply.github.com> Date: Sat, 12 Jul 2025 12:23:31 -0700 Subject: [PATCH 2/7] Added hoverlabel_font_color keyword argument and replaced hoverlabel with hoverlabel_bgcolor keyword argument --- _ext/translation_graph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 50968131..0c56233b 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -146,7 +146,8 @@ def run(self): fig.update_layout( paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", - hoverlabel=dict(bgcolor="white"), + hoverlabel_bgcolor="white", + hoverlabel_font_color = "black", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False, From e20f92cc7780c8f202c5ba1becbf0eb81dc9093c Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+hfactor13@users.noreply.github.com> Date: Sat, 12 Jul 2025 14:49:51 -0700 Subject: [PATCH 3/7] Update _ext/translation_graph.py Removed extra white space. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- _ext/translation_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 0c56233b..24b8628c 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -147,7 +147,7 @@ def run(self): paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", hoverlabel_bgcolor="white", - hoverlabel_font_color = "black", + hoverlabel_font_color="black", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False, From ef2a22c618b8fbfcaa3ed9eb575d28b32f6528f2 Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+hfactor13@users.noreply.github.com> Date: Sat, 12 Jul 2025 14:50:37 -0700 Subject: [PATCH 4/7] Update _ext/translation_graph.py Used CSS variable instead of hardcoded "white" value. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- _ext/translation_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 24b8628c..ab859eeb 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -146,7 +146,7 @@ def run(self): fig.update_layout( paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", - hoverlabel_bgcolor="white", + hoverlabel_bgcolor="var(--bs-body-bg)", hoverlabel_font_color="black", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), From 4f81bfb75c1a3900dc85aa485656fcad9ef58f00 Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Sat, 12 Jul 2025 16:44:29 -0700 Subject: [PATCH 5/7] Update _ext/translation_graph.py --- _ext/translation_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index ab859eeb..7d2be501 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -147,7 +147,7 @@ def run(self): paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", hoverlabel_bgcolor="var(--bs-body-bg)", - hoverlabel_font_color="black", + hoverlabel_font_color="rgba(255, 255, 255, 1)", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False, From 050e3297931297007738a8e7d78f0a5b55afa5e6 Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+uiucmeche1317@users.noreply.github.com> Date: Sat, 12 Jul 2025 17:30:47 -0700 Subject: [PATCH 6/7] Changed --pyos-color-primary for light mode button --- _static/pyos.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_static/pyos.css b/_static/pyos.css index dadecbfd..f40cce43 100644 --- a/_static/pyos.css +++ b/_static/pyos.css @@ -1,6 +1,6 @@ /* PyOS-specific vars :) */ :root { - --pyos-color-primary: #703c87; + --pyos-color-primary: #cfafde; --pyos-color-secondary: #8045e5; --pyos-color-secondary-highlight: #591bc2; --pyos-color-tertiary: #a66c98; From c20eb75f23156c2ef9c3798b6bf5106f324daa83 Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+hfactor13@users.noreply.github.com> Date: Sun, 13 Jul 2025 09:34:19 -0700 Subject: [PATCH 7/7] Replaced hardcoded font color with CSS variable Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- _ext/translation_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 7d2be501..76c4a479 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -147,7 +147,7 @@ def run(self): paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", hoverlabel_bgcolor="var(--bs-body-bg)", - hoverlabel_font_color="rgba(255, 255, 255, 1)", + hoverlabel_font_color="var(--bs-body-color)", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False,