Commit c4c9032f authored by dmMaze's avatar dmMaze
Browse files

remove fixed width qss for qaction #285

parent 51691a5f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -293,11 +293,11 @@ QMenu {

QMenu::item {
    height: 28px;
    width: 342px;
    min-width: 128px;
    margin: 0px;
    background-color: @emptyContentBackgroundColor;
    padding-left: 32px;
    padding-right: 32px;
    padding-left: 20px;
    padding-right: 20px;
}

QMenu::separator {
+0 −1
Original line number Diff line number Diff line
@@ -339,7 +339,6 @@ class MainWindow(FramelessWindow):
            self.opening_dir = False
            LOGGER.exception(e)
            LOGGER.warning("Failed to load project from " + directory)
            LOGGER.warning("If you were trying to download images check IMPLEMENTED_SOURCES.md for more information")
            self.module_manager.handleRunTimeException(self.tr('Failed to load project ') + directory, '')
            return
        
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ class LeftBar(Widget):
            self.recent_proj_list.insert(0, proj)
            topAction = newTop

        MAXIUM_RECENT_PROJ_NUM = 5
        MAXIUM_RECENT_PROJ_NUM = 14
        actionlist = self.recentMenu.actions()
        num_to_remove = len(actionlist) - MAXIUM_RECENT_PROJ_NUM
        if num_to_remove > 0: