mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-11-04 00:52:11 +00:00 
			
		
		
		
	Workaround for menubar margins.
This commit is contained in:
		@@ -36,6 +36,9 @@ ApplicationWindow{
 | 
				
			|||||||
    property bool fullscreen: shadersettings.fullscreen
 | 
					    property bool fullscreen: shadersettings.fullscreen
 | 
				
			||||||
    onFullscreenChanged: visibility = (fullscreen ? Window.FullScreen : Window.Windowed)
 | 
					    onFullscreenChanged: visibility = (fullscreen ? Window.FullScreen : Window.Windowed)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //Workaround: if menubar is assigned ugly margins are visible.
 | 
				
			||||||
 | 
					    menuBar: shadersettings.showMenubar ? defaultMenuBar : null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    flags: Qt.WA_TranslucentBackground
 | 
					    flags: Qt.WA_TranslucentBackground
 | 
				
			||||||
    color: "#00000000"
 | 
					    color: "#00000000"
 | 
				
			||||||
    title: qsTr("cool-retro-term")
 | 
					    title: qsTr("cool-retro-term")
 | 
				
			||||||
@@ -104,9 +107,8 @@ ApplicationWindow{
 | 
				
			|||||||
            aboutDialog.show();
 | 
					            aboutDialog.show();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    MenuBar {
 | 
				
			||||||
    menuBar: MenuBar {
 | 
					        id: defaultMenuBar
 | 
				
			||||||
        id: menubar
 | 
					 | 
				
			||||||
        Menu {
 | 
					        Menu {
 | 
				
			||||||
            title: qsTr("File")
 | 
					            title: qsTr("File")
 | 
				
			||||||
            visible: shadersettings.showMenubar
 | 
					            visible: shadersettings.showMenubar
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user