-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 7 minimize maximize close buttons hidden #218
Comments
Would you like to upgrade to a lastest commit? |
This issue is caused by changes in Firefox. I see it with Firefox 92 running on Windows 7 with Aero. I tried earlier versions of Lepton until v1.0 before getting the titlebar buttons visible again. It is d16cd6d that makes the navigator-toolbox opaque and ends up blocking the titlebar buttons, but I've been using much newer versions than that without problems, so the difference had to be a Firefox update. I downloaded Firefox 90, 91, and the 91.1 ESR, and narrowed down the change to sometime after 91.0.2. In fact, even unaltered, Firefox 92 and 91.1.0esr paint over the title bar buttons as shown in the second image here: Firefox 91.0.2:Firefox 91.1.0esr:While toggling properties in the Browser Toolbox, I found that everything went back to normal, even having Aero transparency in the title bar again, after removing this setting introduced in d16cd6d: Lines 80 to 82 in a96fab2
Lepton, fixed:It seems |
I downloaded the portable version of Firefox 92, ran it, and then installed the latest commit for Lepton. Without Lepton, the tab bar has the white overlay painted over the title bar buttons, as shown in my previous screenshot. With Lepton, it looks correct with Aero transparency and visible system buttons, until I go to Customize Toolbar -> Themes and choose the Light or Dark theme. Then the system buttons are painted over completely. It turns out that the "System theme" setting works correctly, but I've never used it because it is light-themed on Windows 7. The Firefox Dark theme still does not seem to work, showing the problem as described in the first post. I've just discovered the ui.systemUsesDarkTheme option in combination with the Firefox System theme which does work as intended. Though it seems there's transparency if ui.systemUsesDarkTheme is set for light mode, and solid color when set to dark. |
Looks like I found a workaround yesterday. Download ff_win7_darkmode.reg and double-clicking on it. Does it works? |
Thank you very much for doing a lot of testing. |
Here is the content of the clipboard after clicking the button :
release
|
I just tried it, and the pasting comes out weird. |
I put the raw data in a text file : |
I'am not sure as it's not reproducible.
Reproducibility is quite difficult. However, once I applied a patch that could solve it. 8a8351d |
OK. So it didn't fixed the problem, BUT I think I know why... On those two color schemes, the default Light and Dark Themes have the white "gradient" which overlaps the window frame (and the buttons with) : And when I use an alternative theme (like Alpenglow or one of the themes introduced with Firefox 94), the overlapping is not present at all : So I think this problem is not from Lepton, but from Firefox itself. For the moment I can suggest you a workaround. |
This reverts commit 8a8351d. #218 (comment)
I followed the color-way renders. I was working on following the default theme of Win7, but found that it was not applied in color-way. If an option system is adopted in the future, we are going to add an option to forcibly activate the Win7 default like theme. /*= Windows 7, 8 - Tab Bar Background *****************************************/
@media (-moz-os-version: windows-win7) {
/* Header Color */
:root:not([lwtheme-image]):-moz-lwtheme #menubar-items,
:root:not([lwtheme-image]):-moz-lwtheme .tab-background:not([selected], [multiselected]),
:root:not([lwtheme-image]):-moz-lwtheme #titlebar .toolbarbutton-1 > .toolbarbutton-icon,
:root:not([lwtheme-image]):-moz-lwtheme #alltabs-button > .toolbarbutton-badge-stack,
#scrollbutton-up:-moz-lwtheme,
#scrollbutton-down:-moz-lwtheme {
background-color: var(--lwt-accent-color) !important;
}
:root:not([lwtheme-image]):-moz-lwtheme .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected], [multiselected]),
:root:not([lwtheme-image]):-moz-lwtheme #titlebar .toolbarbutton-1:hover > .toolbarbutton-icon,
:root:not([lwtheme-image]):-moz-lwtheme #alltabs-button:hover > .toolbarbutton-badge-stack,
#scrollbutton-up:-moz-lwtheme:hover,
#scrollbutton-down:-moz-lwtheme:hover {
background-color: color-mix(in srgb, currentColor 15%, var(--lwt-accent-color)) !important;
}
:root:not([lwtheme-image]):-moz-lwtheme #titlebar .toolbarbutton-1:is([open], :hover:active) > .toolbarbutton-icon,
:root:not([lwtheme-image]):-moz-lwtheme #alltabs-button:is([open], :hover:active) > .toolbarbutton-badge-stack,
#scrollbutton-up:-moz-lwtheme:hover:active,
#scrollbutton-down:-moz-lwtheme:hover:active {
background-color: color-mix(in srgb, currentColor 20%, var(--lwt-accent-color)) !important;
}
#TabsToolbar:-moz-lwtheme {
color: var(--lwt-text-color) !important;
}
/* Remove Aero */
#TabsToolbar {
/* Original: radial-gradient(eclipse at bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5) 80%, transparent) */
background-image: unset !important;
}
}
@media (-moz-os-version: windows-win8) {
/* Header Color */
:root:not([lwtheme-image]):-moz-lwtheme {
background-color: var(--lwt-accent-color) !important;
}
#navigator-toolbox:-moz-lwtheme {
color: var(--lwt-text-color) !important;
}
} |
@Kiki79250CoC |
Describe the bug
In Windows 7 the minimize, maximize, and close buttons are covered by the background image in dark mode. They still work, but are not visible.
Expected behavior
The minimize, maximize, and close buttons should be visible.
Screenshots
Environment:
Additional context
The text was updated successfully, but these errors were encountered: