--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py Wed Apr 01 19:50:41 2020 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py Fri Apr 03 17:43:01 2020 +0200 @@ -34,7 +34,9 @@ Constructor @param vcs reference to the vcs object - @param path path of the repository to serve (string) + @type Hg + @param path path of the repository to serve + @type str @param parent reference to the parent widget (QWidget) """ super(HgServeDialog, self).__init__(parent) @@ -46,16 +48,21 @@ self.setWindowTitle(self.tr("Mercurial Server")) + if e5App().usesDarkPalette(): + iconSuffix = "dark" + else: + iconSuffix = "light" + self.__startAct = QAction( UI.PixmapCache.getIcon( os.path.join("VcsPlugins", "vcsMercurial", "icons", - "startServer.png")), + "startServer-{0}.svg".format(iconSuffix))), self.tr("Start Server"), self) self.__startAct.triggered.connect(self.__startServer) self.__stopAct = QAction( UI.PixmapCache.getIcon( os.path.join("VcsPlugins", "vcsMercurial", "icons", - "stopServer.png")), + "stopServer-{0}.svg".format(iconSuffix))), self.tr("Stop Server"), self) self.__stopAct.triggered.connect(self.__stopServer) self.__browserAct = QAction(