src/eric7/EricWidgets/EricApplication.py

branch
eric7
changeset 10689
3ede487187f2
parent 10439
21c28b0f9e41
child 10909
4a847e8260c1
equal deleted inserted replaced
10688:0d9853ceb288 10689:3ede487187f2
71 self.__smallScreen = ( 71 self.__smallScreen = (
72 primaryScreenSize.width() < 1920 or primaryScreenSize.height() < 1080 72 primaryScreenSize.width() < 1920 or primaryScreenSize.height() < 1080
73 ) 73 )
74 74
75 self.__hasNonStandardPalette = False 75 self.__hasNonStandardPalette = False
76 self.__hasUserStyleSheet = False
77 76
78 def usesSmallScreen(self): 77 def usesSmallScreen(self):
79 """ 78 """
80 Public method to determine, if the application is used on a small 79 Public method to determine, if the application is used on a small
81 screen. 80 screen.
241 # pre-process the style sheet to replace the placeholder for the 240 # pre-process the style sheet to replace the placeholder for the
242 # path to the icons 241 # path to the icons
243 styleIconsPath = self.getStyleIconsPath(universal=True) 242 styleIconsPath = self.getStyleIconsPath(universal=True)
244 styleSheet = styleSheet.replace("${path}", styleIconsPath) 243 styleSheet = styleSheet.replace("${path}", styleIconsPath)
245 244
246 self.__hasUserStyleSheet = True
247
248 if "QPalette {" in styleSheet: 245 if "QPalette {" in styleSheet:
249 self.__setPaletteFromStyleSheet(styleSheet) 246 self.__setPaletteFromStyleSheet(styleSheet)
250 247
251 ericApp().setStyleSheet(styleSheet) 248 ericApp().setStyleSheet(styleSheet)
252 249

eric ide

mercurial