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 |