forked from mirrors/gecko-dev
		
	 756c14b26a
			
		
	
	
		756c14b26a
		
	
	
	
	
		
			
			I've tested this (both with and without titlebar) in Linux, Win10, Win11, Win7 and macOS. * On macOS behavior doesn't change at all (since on fullscreen we didn't show the buttons to begin with). * Linux now shows "native" buttons on fullscreen (which is also an improvement). * On Windows 10/11 the sizing of the buttons is now the same when fullscreen vs. not (which is an improvement). * On Windows 7 we now use regular native-looking buttons (like on windows 10) instead of the custom windowControls.png. That could be considered a slight regression I guess, but is consistent with win10. Differential Revision: https://phabricator.services.mozilla.com/D128196
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| # This Source Code Form is subject to the terms of the Mozilla Public
 | |
| # License, v. 2.0. If a copy of the MPL was not distributed with this
 | |
| # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 | |
| 
 | |
| <hbox class="titlebar-buttonbox-container" skipintoolbarset="true">
 | |
|   <hbox class="titlebar-buttonbox titlebar-color">
 | |
|     <toolbarbutton class="titlebar-button titlebar-min"
 | |
|                    titlebar-btn="min"
 | |
|                    oncommand="window.minimize();"
 | |
|                    data-l10n-id="browser-window-minimize-button"
 | |
|                    />
 | |
|     <toolbarbutton class="titlebar-button titlebar-max"
 | |
|                    titlebar-btn="max"
 | |
|                    oncommand="window.maximize();"
 | |
|                    data-l10n-id="browser-window-maximize-button"
 | |
|                    />
 | |
|     <toolbarbutton class="titlebar-button titlebar-restore"
 | |
|                    titlebar-btn="max"
 | |
|                    oncommand="window.fullScreen ? BrowserFullScreen() : window.restore();"
 | |
|                    data-l10n-id="browser-window-restore-down-button"
 | |
|                    />
 | |
|     <toolbarbutton class="titlebar-button titlebar-close"
 | |
|                    titlebar-btn="close"
 | |
|                    command="cmd_closeWindow"
 | |
|                    data-l10n-id="browser-window-close-button"
 | |
|                    />
 | |
|   </hbox>
 | |
| </hbox>
 |