diff options
author | Lootyhoof <lootyhoofer@gmail.com> | 2016-06-04 00:34:15 +0100 |
---|---|---|
committer | Lootyhoof <lootyhoofer@gmail.com> | 2016-06-04 00:34:15 +0100 |
commit | 04029416e6b7265229bd8fb34708f59590c5599a (patch) | |
tree | db189cd972b0655c8f40d7edb2bd4b57242e8cee /browser/themes/windows | |
parent | 4d8c6e70464fded7af174fd1bdbb47f9239ad9ef (diff) | |
download | palemoon-gre-04029416e6b7265229bd8fb34708f59590c5599a.tar.gz |
Improve dark window frame text styling
Diffstat (limited to 'browser/themes/windows')
-rw-r--r-- | browser/themes/windows/browser-aero.css | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/browser/themes/windows/browser-aero.css b/browser/themes/windows/browser-aero.css index f900b373f..2d0a340e7 100644 --- a/browser/themes/windows/browser-aero.css +++ b/browser/themes/windows/browser-aero.css @@ -409,13 +409,9 @@ } /* ==== Windows Vista/7 (true glass) styling ==== */ -/* Also apply this to Windows 8 because the system coloring the background - of #main-window is out of our control, and may kill readability */ @media (-moz-os-version: windows-vista), - (-moz-os-version: windows-win7), - (-moz-os-version: windows-win8) { - + (-moz-os-version: windows-win7) { #toolbar-menubar:not(:-moz-lwtheme), #TabsToolbar[tabsontop=true]:not(:-moz-lwtheme), #nav-bar[tabsontop=false]:not(:-moz-lwtheme), @@ -431,12 +427,28 @@ } -/* ==== Adjust text for dark window frame colors ==== */ - - #main-window[darkwindowframe="true"] #toolbar-menubar:not(:-moz-lwtheme):not(:-moz-window-inactive), - #main-window[darkwindowframe="true"] #TabsToolbar:not(:-moz-lwtheme):not(:-moz-window-inactive) { - color: white; +/* ==== Windows 8/10 (flat color) styling ==== */ + + @media (-moz-os-version: windows-win8), + (-moz-os-version: windows-win10) { + /* On dark window frames, use a light text color instead of fog on Win8/10 */ + #main-window[darkwindowframe=true] #toolbar-menubar:not(:-moz-lwtheme), + #main-window[darkwindowframe=true] #TabsToolbar[tabsontop=true]:not(:-moz-lwtheme), + #main-window[darkwindowframe=true] #nav-bar[tabsontop=false]:not(:-moz-lwtheme), + #main-window[darkwindowframe=true] #nav-bar + #customToolbars + #PersonalToolbar[collapsed=true] + #TabsToolbar[tabsontop=false]:last-child:not(:-moz-lwtheme) { + color: white; + } + + /* Prevent the dark window frame styles from disturbing native menu styling */ + #main-window[darkwindowframe=true] #main-menubar > menu:not(:-moz-lwtheme) { + color: inherit; + } + + #main-window[darkwindowframe=true] #toolbar-menubar:not(:-moz-lwtheme):-moz-window-inactive { + color: ThreeDShadow; + } } + /* ==== ==== */ #main-window[sizemode=fullscreen]:not(:-moz-lwtheme) { |