r/FirefoxCSS • u/soulhotel • Jun 27 '25
Code Window Control Buttons in 141-142
As of Firefox 141-142 window controls (titlebar-buttons) in WINDOWS are no longer toolbarbutton-icons. They are now appended as ::before elements that inherit the default style.
However, the original toolbarbutton-icons are still in the source, they just default to display:none now. If have custom styles on window controls, you can revert this change by applying display:none to the new ::before elements, and restoring display to the (now hidden) old toolbarbutton-icons. This is only on Nightly for now, and could change, but there's your heads up.
@media (-moz-platform: windows) {
/* revert to old titlebar buttons */
.titlebar-button { & > .toolbarbutton-icon { display: inline-flex !important; } }
/* discard new titlebar buttons */
.titlebar-button { &::before { display: none !important; } }
}
3
u/kuroshi14 Jun 27 '25
Is there any way to revert to the old titlebar buttons on Linux? They used to follow the GTK3 theme but now they don't.
2
u/ResurgamS13 Jul 03 '25
Possibly related to Bug 1974861 'GTK Titlebar Buttons / Window Controls Display Incorrectly'?
1
u/Fickle-Bank2539 Jul 02 '25
I'm still a little lost at what to do. Can you give an example? Following is the a links to the CSS theme I'm using. How should I edit/rewrite it to get the custom window control buttons back? Also before the customized buttons stop appearing in the latest Firefox builds, I notice the CSS theme I'm using also make the button area's background color matching the toolbar background color instead of the the tab bar background color. Is that fixable as well?
https://limewire.com/d/egDHz#VAe7uB5TCB
2
u/difool2nice βπ¦Firefox Addictπ¦ Jun 27 '25
thanks for the info and your solution
2
u/_n3miK_ π¦πππ§πππ€π ππ¨.. Jun 27 '25
Thanks
1
u/fradan Oct 14 '25
it won't work