Fixes startpage css - fixes #8330

This commit is contained in:
Yorik van Havre
2023-02-05 12:31:45 +01:00
committed by Chris Hennes
parent 2620bcca35
commit ac9fde2a3d
2 changed files with 2 additions and 4 deletions

View File

@@ -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;

View File

@@ -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"