--- a/eric7/eric7.py Wed Oct 27 19:15:50 2021 +0200 +++ b/eric7/eric7.py Wed Oct 27 20:03:03 2021 +0200 @@ -266,6 +266,8 @@ "load the given plugin file (plugin development)"), ("--settings=settingsDir", "use the given directory to store the settings files"), + ("--small-screen", + "adjust the interface for screens smaller than FHD"), ("--start-file", "load the most recently opened file"), ("--start-multi", "load the most recently opened multi-project"), ("--start-project", "load the most recently opened project"), @@ -340,6 +342,7 @@ nocrash = False disablecrash = False disabledPlugins = [] + smallScreen = False if "--no-open" in sys.argv and sys.argv.index("--no-open") < ddindex: sys.argv.remove("--no-open") ddindex -= 1 @@ -355,6 +358,10 @@ sys.argv.remove("--disable-crash") ddindex -= 1 disablecrash = True + if "--small-screen" in sys.argv: + sys.argv.remove("--small-screen") + ddindex -= 1 + smallScreen = True for arg in sys.argv[:]: if ( arg.startswith("--disable-plugin=") and @@ -401,8 +408,8 @@ splash.showMessage( QCoreApplication.translate("eric7", "Generating Main Window...")) mainWindow = UserInterface(app, loc, splash, pluginFile, disabledPlugins, - noopen, nocrash, disablecrash, restartArgs, - originalPathString) + noopen, nocrash, disablecrash, smallScreen, + restartArgs, originalPathString) app.lastWindowClosed.connect(app.quit) mainWindow.show()