--- a/eric7/UI/UserInterface.py Wed Oct 27 19:15:50 2021 +0200 +++ b/eric7/UI/UserInterface.py Wed Oct 27 20:03:03 2021 +0200 @@ -169,7 +169,7 @@ def __init__(self, app, locale, splash, plugin, disabledPlugins, noOpenAtStartup, noCrashOpenAtStartup, disableCrashSession, - restartArguments, originalPathString): + smallScreen, restartArguments, originalPathString): """ Constructor @@ -194,6 +194,9 @@ @param disableCrashSession flag indicating to disable the crash session support @type bool + @param smallScreen flag indicating to use the interface for small + screens (i.e. smaller than 1920 x 1080) + @type bool @param restartArguments list of command line parameters to be used for a restart @type list of str @@ -216,13 +219,23 @@ self.__originalPathString = originalPathString + primaryScreenSize = app.primaryScreen().size() + if ( + smallScreen or + primaryScreenSize.width() < 1920 or + primaryScreenSize.height() < 1080 + ): + # override settings for small screens + Preferences.setUI("LayoutType", "Sidebars") + Preferences.setUI("CombinedLeftRightSidebar", True) + self.__layoutType = Preferences.getUI("LayoutType") self.passiveMode = Preferences.getDebugger("PassiveDbgEnabled") g = Preferences.getGeometry("MainGeometry") if g.isEmpty(): - s = QSize(1280, 1024) + s = QSize(1280, 720) self.resize(s) else: self.restoreGeometry(g)