46 |
46 |
47 self.__styles = ["paper", "coal", "gitweb", "monoblue", "spartan", ] |
47 self.__styles = ["paper", "coal", "gitweb", "monoblue", "spartan", ] |
48 |
48 |
49 self.setWindowTitle(self.tr("Mercurial Server")) |
49 self.setWindowTitle(self.tr("Mercurial Server")) |
50 |
50 |
51 if e5App().usesDarkPalette(): |
51 iconSuffix = "dark" if e5App().usesDarkPalette() else "light" |
52 iconSuffix = "dark" |
|
53 else: |
|
54 iconSuffix = "light" |
|
55 |
52 |
56 self.__startAct = QAction( |
53 self.__startAct = QAction( |
57 UI.PixmapCache.getIcon( |
54 UI.PixmapCache.getIcon( |
58 os.path.join("VcsPlugins", "vcsMercurial", "icons", |
55 os.path.join("VcsPlugins", "vcsMercurial", "icons", |
59 "startServer-{0}.svg".format(iconSuffix))), |
56 "startServer-{0}.svg".format(iconSuffix))), |