From 2a4e87b64d05f311ea587f9ea0b7d83dc9c87de7 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 5 Feb 2023 12:31:45 +0100 Subject: [PATCH] Fixes startpage css - fixes #8330 --- src/Mod/Start/StartPage/StartPage.css | 4 +--- src/Mod/Start/StartPage/StartPage.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Mod/Start/StartPage/StartPage.css b/src/Mod/Start/StartPage/StartPage.css index 7792c7da9a..e6551484b2 100644 --- a/src/Mod/Start/StartPage/StartPage.css +++ b/src/Mod/Start/StartPage/StartPage.css @@ -4,9 +4,7 @@ body { font-family: FONTFAMILY; font-size: FONTSIZE; } -body::-webkit-scrollbar { - display: OVERFLOW; -} +OVERFLOW a, a:link, a:visited { text-decoration: none; color: LINKCOLOR; diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index 1e3fd5f9b1..1e38609f87 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -563,7 +563,7 @@ def handle(): BOXCOLOR = gethexcolor(p.GetUnsigned("BoxColor",3722305023)) TEXTCOLOR = gethexcolor(p.GetUnsigned("PageTextColor",255)) BGTCOLOR = gethexcolor(p.GetUnsigned("BackgroundTextColor",4294703103)) - OVERFLOW = "normal" if p.GetBool("ShowScrollBars",True) else "none" + OVERFLOW = "" if p.GetBool("ShowScrollBars",True) else "body::-webkit-scrollbar {display: none;}" SHADOW = "#888888" if QtGui.QColor(BASECOLOR).valueF() < 0.5: # dark page - we need to make darker shadows SHADOW = "#000000"