def setupUi(self, Theme): Theme.setObjectName("Theme") Theme.setWindowModality(QtCore.Qt.NonModal) Theme.resize(450, 300) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Theme.sizePolicy().hasHeightForWidth()) Theme.setSizePolicy(sizePolicy) Theme.setMinimumSize(QtCore.QSize(100, 0)) Theme.setBaseSize(QtCore.QSize(0, 0)) Theme.setStyleSheet("") self.gridLayout = QtWidgets.QGridLayout(Theme) self.gridLayout.setContentsMargins(-1, -1, -1, 6) self.gridLayout.setSpacing(6) self.gridLayout.setObjectName("gridLayout") self.r2 = QtWidgets.QVBoxLayout() self.r2.setObjectName("r2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.discardtheme = QtWidgets.QPushButton(Theme) self.discardtheme.setObjectName("discardtheme") self.horizontalLayout_2.addWidget(self.discardtheme) self.savetheme = QtWidgets.QPushButton(Theme) self.savetheme.setObjectName("savetheme") self.horizontalLayout_2.addWidget(self.savetheme) self.r2.addLayout(self.horizontalLayout_2) self.gridLayout.addLayout(self.r2, 2, 0, 1, 1) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.tabWidget = QtWidgets.QTabWidget(Theme) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.layoutWidget = QtWidgets.QWidget(self.tab) self.layoutWidget.setGeometry(QtCore.QRect(0, 0, 533, 164)) self.layoutWidget.setObjectName("layoutWidget") self.r1 = QtWidgets.QHBoxLayout(self.layoutWidget) self.r1.setContentsMargins(6, 6, 6, 0) self.r1.setObjectName("r1") self.c1 = QtWidgets.QVBoxLayout() self.c1.setObjectName("c1") self.h4_c1 = QtWidgets.QHBoxLayout() self.h4_c1.setObjectName("h4_c1") self.text2_lbl = QtWidgets.QLabel(self.layoutWidget) self.text2_lbl.setObjectName("text2_lbl") self.h4_c1.addWidget(self.text2_lbl) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.h4_c1.addItem(spacerItem1) self.text2_btn = QtWidgets.QToolButton(self.layoutWidget) self.text2_btn.setText("") self.text2_btn.setObjectName("text2_btn") self.h4_c1.addWidget(self.text2_btn) self.text2 = QtWidgets.QLineEdit(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.text2.sizePolicy().hasHeightForWidth()) self.text2.setSizePolicy(sizePolicy) self.text2.setMinimumSize(QtCore.QSize(75, 0)) self.text2.setMaximumSize(QtCore.QSize(75, 16777215)) self.text2.setBaseSize(QtCore.QSize(75, 0)) self.text2.setReadOnly(True) self.text2.setObjectName("text2") self.h4_c1.addWidget(self.text2) spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.h4_c1.addItem(spacerItem2) self.c1.addLayout(self.h4_c1) self.h1_c2 = QtWidgets.QHBoxLayout() self.h1_c2.setObjectName("h1_c2") self.tooltip_lbl = QtWidgets.QLabel(self.layoutWidget) self.tooltip_lbl.setObjectName("tooltip_lbl") self.h1_c2.addWidget(self.tooltip_lbl) self.tooltip_btn = QtWidgets.QToolButton(self.layoutWidget) self.tooltip_btn.setText("") self.tooltip_btn.setObjectName("tooltip_btn") self.h1_c2.addWidget(self.tooltip_btn) self.tooltip = QtWidgets.QLineEdit(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tooltip.sizePolicy().hasHeightForWidth()) self.tooltip.setSizePolicy(sizePolicy) self.tooltip.setMinimumSize(QtCore.QSize(75, 0)) self.tooltip.setMaximumSize(QtCore.QSize(75, 16777215)) self.tooltip.setReadOnly(True) self.tooltip.setObjectName("tooltip") self.h1_c2.addWidget(self.tooltip) spacerItem3 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.h1_c2.addItem(spacerItem3) self.c1.addLayout(self.h1_c2) self.h3_c1 = QtWidgets.QHBoxLayout() self.h3_c1.setObjectName("h3_c1") self.text1_lbl = QtWidgets.QLabel(self.layoutWidget) self.text1_lbl.setObjectName("text1_lbl") self.h3_c1.addWidget(self.text1_lbl) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.h3_c1.addItem(spacerItem4) self.text1_btn = QtWidgets.QToolButton(self.layoutWidget) self.text1_btn.setText("") self.text1_btn.setObjectName("text1_btn") self.h3_c1.addWidget(self.text1_btn) self.text1 = QtWidgets.QLineEdit(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.text1.sizePolicy().hasHeightForWidth()) self.text1.setSizePolicy(sizePolicy) self.text1.setMinimumSize(QtCore.QSize(75, 0)) self.text1.setMaximumSize(QtCore.QSize(75, 16777215)) self.text1.setBaseSize(QtCore.QSize(75, 0)) self.text1.setReadOnly(True) self.text1.setObjectName("text1") self.h3_c1.addWidget(self.text1) spacerItem5 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.h3_c1.addItem(spacerItem5) self.c1.addLayout(self.h3_c1) self.h2_c1 = QtWidgets.QHBoxLayout() self.h2_c1.setObjectName("h2_c1") self.stats1_lbl = QtWidgets.QLabel(self.layoutWidget) self.stats1_lbl.setObjectName("stats1_lbl") self.h2_c1.addWidget(self.stats1_lbl) spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.h2_c1.addItem(spacerItem6) self.stats1_btn = QtWidgets.QToolButton(self.layoutWidget) self.stats1_btn.setText("") self.stats1_btn.setObjectName("stats1_btn") self.h2_c1.addWidget(self.stats1_btn) self.stats1 = QtWidgets.QLineEdit(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.stats1.sizePolicy().hasHeightForWidth()) self.stats1.setSizePolicy(sizePolicy) self.stats1.setMinimumSize(QtCore.QSize(75, 0)) self.stats1.setMaximumSize(QtCore.QSize(75, 16777215)) self.stats1.setBaseSize(QtCore.QSize(75, 0)) self.stats1.setReadOnly(True) self.stats1.setObjectName("stats1") self.h2_c1.addWidget(self.stats1) spacerItem7 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.h2_c1.addItem(spacerItem7) self.c1.addLayout(self.h2_c1) spacerItem8 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.c1.addItem(spacerItem8) self.r1.addLayout(self.c1) self.c2 = QtWidgets.QVBoxLayout() self.c2.setObjectName("c2") self.h1_c1 = QtWidgets.QHBoxLayout() self.h1_c1.setObjectName("h1_c1") self.stats2_lbl = QtWidgets.QLabel(self.layoutWidget) self.stats2_lbl.setObjectName("stats2_lbl") self.h1_c1.addWidget(self.stats2_lbl) spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.h1_c1.addItem(spacerItem9) spacerItem10 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.h1_c1.addItem(spacerItem10) self.stats2_btn = QtWidgets.QToolButton(self.layoutWidget) self.stats2_btn.setText("") self.stats2_btn.setObjectName("stats2_btn") self.h1_c1.addWidget(self.stats2_btn) self.stats2 = QtWidgets.QLineEdit(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.stats2.sizePolicy().hasHeightForWidth()) self.stats2.setSizePolicy(sizePolicy) self.stats2.setMinimumSize(QtCore.QSize(75, 0)) self.stats2.setMaximumSize(QtCore.QSize(75, 16777215)) self.stats2.setBaseSize(QtCore.QSize(75, 0)) self.stats2.setReadOnly(True) self.stats2.setObjectName("stats2") self.h1_c1.addWidget(self.stats2) self.c2.addLayout(self.h1_c1) self.h2_c2 = QtWidgets.QHBoxLayout() self.h2_c2.setObjectName("h2_c2") self.label_7 = QtWidgets.QLabel(self.layoutWidget) self.label_7.setEnabled(True) self.label_7.setObjectName("label_7") self.h2_c2.addWidget(self.label_7) spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.h2_c2.addItem(spacerItem11) self.toolButton_6 = QtWidgets.QToolButton(self.layoutWidget) self.toolButton_6.setText("") self.toolButton_6.setObjectName("toolButton_6") self.h2_c2.addWidget(self.toolButton_6) self.lineEdit_3 = QtWidgets.QLineEdit(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lineEdit_3.sizePolicy().hasHeightForWidth()) self.lineEdit_3.setSizePolicy(sizePolicy) self.lineEdit_3.setMinimumSize(QtCore.QSize(75, 0)) self.lineEdit_3.setMaximumSize(QtCore.QSize(75, 16777215)) self.lineEdit_3.setReadOnly(True) self.lineEdit_3.setObjectName("lineEdit_3") self.h2_c2.addWidget(self.lineEdit_3) self.c2.addLayout(self.h2_c2) self.h3_c2 = QtWidgets.QHBoxLayout() self.h3_c2.setObjectName("h3_c2") self.label_6 = QtWidgets.QLabel(self.layoutWidget) self.label_6.setObjectName("label_6") self.h3_c2.addWidget(self.label_6) spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.h3_c2.addItem(spacerItem12) self.toolButton_7 = QtWidgets.QToolButton(self.layoutWidget) self.toolButton_7.setText("") self.toolButton_7.setObjectName("toolButton_7") self.h3_c2.addWidget(self.toolButton_7) self.lineEdit_4 = QtWidgets.QLineEdit(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lineEdit_4.sizePolicy().hasHeightForWidth()) self.lineEdit_4.setSizePolicy(sizePolicy) self.lineEdit_4.setMinimumSize(QtCore.QSize(75, 0)) self.lineEdit_4.setMaximumSize(QtCore.QSize(75, 16777215)) self.lineEdit_4.setReadOnly(True) self.lineEdit_4.setObjectName("lineEdit_4") self.h3_c2.addWidget(self.lineEdit_4) self.c2.addLayout(self.h3_c2) self.h4_c2 = QtWidgets.QHBoxLayout() self.h4_c2.setObjectName("h4_c2") self.label_5 = QtWidgets.QLabel(self.layoutWidget) self.label_5.setObjectName("label_5") self.h4_c2.addWidget(self.label_5) spacerItem13 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.h4_c2.addItem(spacerItem13) self.toolButton_8 = QtWidgets.QToolButton(self.layoutWidget) self.toolButton_8.setText("") self.toolButton_8.setObjectName("toolButton_8") self.h4_c2.addWidget(self.toolButton_8) self.lineEdit = QtWidgets.QLineEdit(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lineEdit.sizePolicy().hasHeightForWidth()) self.lineEdit.setSizePolicy(sizePolicy) self.lineEdit.setMinimumSize(QtCore.QSize(75, 0)) self.lineEdit.setMaximumSize(QtCore.QSize(75, 16777215)) self.lineEdit.setReadOnly(True) self.lineEdit.setObjectName("lineEdit") self.h4_c2.addWidget(self.lineEdit) self.c2.addLayout(self.h4_c2) spacerItem14 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.c2.addItem(spacerItem14) self.r1.addLayout(self.c2) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.tabWidget.addTab(self.tab_2, "") self.verticalLayout.addWidget(self.tabWidget) self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) self.retranslateUi(Theme) self.setVisibility() QtCore.QMetaObject.connectSlotsByName(Theme)
def setupUi(self, Searcher, animated): self.animated = animated Searcher.setObjectName("Searcher") Searcher.setWindowModality(QtCore.Qt.NonModal) Searcher.setStyleSheet( u"background-color: rgb(42,42,42); border: 0px solid black") self.mainlayout = QtWidgets.QVBoxLayout() self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setSpacing(0) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSpacing(0) self.titlerow = QtWidgets.QHBoxLayout() self.titlerow.setSpacing(5) self.titlespacer1 = QtWidgets.QSpacerItem( 8, 0, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) # ------------------------------------------ Header # NOTE Header ------------------------------------- self.searcherlbl = QtWidgets.QLabel("Searcher") font = QtGui.QFont() font.setPointSize(15) self.searcherlbl.setFont(font) self.searcherlbl.setAlignment(QtCore.Qt.AlignCenter) self.titlespacer2 = QtWidgets.QSpacerItem( 40, 30, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.expander = QtWidgets.QToolButton() self.expander.setObjectName("expander") self.metricpos = QtWidgets.QToolButton() self.metricpos.setObjectName("metricpos") self.contexttoggle = QtWidgets.QPushButton() self.contexttoggle.setObjectName("contexttoggle") self.helpButton = HelpButton.HelpButton("main", la.TT_MW['helpButton'], 16, Searcher) self.helpButton.setObjectName("helpButton") self.pinwindow_btn = QtWidgets.QToolButton() self.pinwindow_btn.setObjectName("pinwindow") self.opensettings_btn = QtWidgets.QToolButton() self.opensettings_btn.setObjectName("opensettingstool") self.titlespacer3 = QtWidgets.QSpacerItem( 8, 0, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) # ----------------------------------- Search Filter # NOTE Search Filter ------------------------------ self.searchrow = QtWidgets.QHBoxLayout() self.searchrow.setSpacing(0) self.frame = QtWidgets.QFrame() searchframe_details = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) searchframe_details.setHorizontalStretch(0) searchframe_details.setVerticalStretch(0) searchframe_details.setHeightForWidth( self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(searchframe_details) self.frame.setMinimumSize(QtCore.QSize(20, 20)) self.frame.setMaximumSize(QtCore.QSize(500, 200)) self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame.setFrameShadow(QtWidgets.QFrame.Plain) self.frame.setStyleSheet( u"background-color: rgb(19, 19, 19); color: rgb(19, 19, 19);") self.searchfilter_btn = QtWidgets.QToolButton(self.frame) self.searchfilter_btn.setObjectName("searchfilter") self.searchfilter_btn.setGeometry(QtCore.QRect(0, 0, 36, 36)) self.searchfilter_btn.setBaseSize(QtCore.QSize(30, 30)) self.searchfilter_btn.setStyleSheet( u"background-color: rgb(19, 19, 19);") self.searchfilter_btn.setArrowType(QtCore.Qt.NoArrow) self.searchfilter_btn.setParent(self.frame) # -------------------------------------- Search Box # NOTE Search Box --------------------------------- self.searchbox_txt = QtWidgets.QLineEdit() self.searchbox_txt.setObjectName("searchbox") searchbox_details = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) searchbox_details.setHorizontalStretch(99) searchbox_details.setVerticalStretch(0) # searchbox_details.setHeightForWidth( # self.searchbox_txt.sizePolicy().hasHeightForWidth()) self.searchbox_txt.setSizePolicy(searchbox_details) self.searchbox_txt.setMinimumSize(QtCore.QSize(50, 0)) self.searchbox_txt.setMouseTracking(False) self.searchbox_txt.setStyleSheet(u"background-color: rgb(19, 19, 19);") self.searchbox_txt.setFrame(False) # ------------------------------------ Results Tree # NOTE Results Tree ------------------------------- self.searchresults_tree = QtWidgets.QTreeWidget() self.searchresults_tree.setObjectName("searchresultstree") # Header --------- __qtreewidgetitem = QtWidgets.QTreeWidgetItem() __qtreewidgetitem.setText(0, u"1") resultstree_header = QtGui.QFont() resultstree_header.setPointSize(9) __qtreewidgetitem.setFont(0, resultstree_header) self.searchresults_tree.setHeaderItem(__qtreewidgetitem) resultstree_details = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) resultstree_details.setHorizontalStretch(0) resultstree_details.setVerticalStretch(0) self.searchresults_tree.setSizePolicy(resultstree_details) resultstree_font = QtGui.QFont() resultstree_font.setPointSize(9) self.searchresults_tree.setFont(resultstree_font) self.searchresults_tree.setMouseTracking(False) self.searchresults_tree.setFocusPolicy(QtCore.Qt.NoFocus) self.searchresults_tree.setFrameShadow(QtWidgets.QFrame.Sunken) self.searchresults_tree.setLineWidth(0) self.searchresults_tree.setSizeAdjustPolicy( QtWidgets.QAbstractScrollArea.AdjustToContents) self.searchresults_tree.setAlternatingRowColors(True) self.searchresults_tree.setSelectionMode( QtWidgets.QAbstractItemView.SingleSelection) self.searchresults_tree.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) # -------------------------------------- Info Panel # NOTE Info Panel --------------------------------- self.infobar = QtWidgets.QHBoxLayout() self.infobar.setObjectName("infobar") self.infobargrid = QtWidgets.QGridLayout() self.infobargrid.setObjectName("infobargrid") # -------------------------------------- Info Panel # NOTE Info Panel --------------------------------- self.info_lbl = QtWidgets.QLabel() self.infolbl_font = QtGui.QFont() self.infolbl_font.setPointSize(9) self.infolbl_font.setBold(False) self.infolbl_font.setWeight(40) self.info_lbl.setFont(self.infolbl_font) self.info_lbl.setStyleSheet( u"background-color: rgba(11, 11, 11, 0); border-bottom: 1px solid rgb(100, 100, 100);" ) self.info_lbl.setMargin(3) self.info_lbl.setIndent(5) # -------------------------------------- Info Panel # NOTE Info Panel --------------------------------- self.overlay = overlayLabel(self.info_lbl) self.overlay.setFont(self.infolbl_font) self.overlay.setStyleSheet( u"background-color: rgb(11, 11, 11); border-bottom: 1px solid rgb(100, 100, 100); " ) self.overlay.setMargin(3) self.overlay.setIndent(5) # -------------------------------------- Info Panel # NOTE Info Panel --------------------------------- self.treetotal_lbl = QtWidgets.QLabel() self.treetotal_lbl.setObjectName("treetotal_lbl") # Size ---------- treetotal_size = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) treetotal_size.setHorizontalStretch(0) treetotal_size.setVerticalStretch(0) treetotal_size.setHeightForWidth( self.treetotal_lbl.sizePolicy().hasHeightForWidth()) self.treetotal_lbl.setSizePolicy(treetotal_size) self.treetotal_lbl.setMinimumSize(QtCore.QSize(160, 0)) self.treetotal_lbl.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) # Style --------- self.treetotallbl_font = QtGui.QFont() self.treetotallbl_font.setPointSize(9) self.treetotallbl_font.setBold(False) self.treetotallbl_font.setWeight(50) self.treetotal_lbl.setFont(self.treetotallbl_font) self.treetotal_lbl.setStyleSheet( u"background-color: rgb(11, 11, 11); border-bottom: 1px solid rgb(100, 100, 100); " ) self.treetotal_lbl.setMargin(3) self.treetotal_lbl.setIndent(5) # ------------------------------------------ Layout # NOTE Layout ------------------------------------- self.titlerow.addItem(self.titlespacer1) self.titlerow.addWidget(self.searcherlbl) self.titlerow.addItem(self.titlespacer2) self.titlerow.addWidget(self.expander) self.titlerow.addWidget(self.metricpos) self.titlerow.addWidget(self.contexttoggle) self.titlerow.addWidget(self.helpButton) self.titlerow.addWidget(self.pinwindow_btn) self.titlerow.addWidget(self.opensettings_btn) self.titlerow.addItem(self.titlespacer3) self.verticalLayout.addLayout(self.titlerow) # self.searchrow.addWidget(self.frame) self.searchgrid = QtWidgets.QGridLayout() self.searchgrid.addWidget(self.frame, 1, 0, 1, 1) self.searchgrid.addWidget(self.searchfilter_btn, 1, 0, 1, 1) self.searchgrid.addWidget(self.searchbox_txt, 1, 1, 1, 1) self.searchrow.addLayout(self.searchgrid) self.verticalLayout.addLayout(self.searchrow) self.verticalLayout.addWidget(self.searchresults_tree) self.gridLayout.addLayout(self.verticalLayout, 1, 0, 1, 1) self.infobargrid.addWidget(self.overlay, 1, 0, 1, 1) self.infobargrid.addWidget(self.info_lbl, 1, 0, 1, 1) self.infobargrid.addWidget(self.treetotal_lbl, 1, 1, 1, 1) self.infobar.addLayout(self.infobargrid) self.gridLayout.addLayout(self.infobar, 3, 0, 1, 1) self.mainlayout.setContentsMargins(0, 0, 0, 0) # --------------------------------------- ResizeHandles # NOTE ResizeHandles ---------------------------------- self.leftresize = QtWidgets.QSizeGrip(self.info_lbl) self.leftresize.setObjectName("resizeleft") self.leftresize.setMaximumSize(QtCore.QSize(25, 25)) self.leftresize.setStyleSheet( u"color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);") pos = self.info_lbl.mapToGlobal(QtCore.QPoint(-3, 0)) self.leftresize.setGeometry(pos.x(), pos.y(), self.leftresize.width(), self.leftresize.height()) self.rightresize = QtWidgets.QSizeGrip(self.treetotal_lbl) self.rightresize.setMaximumSize(QtCore.QSize(25, 25)) self.rightresize.setObjectName("resizeright") self.rightresize.setStyleSheet( u"color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);") pos = self.treetotal_lbl.mapToGlobal(QtCore.QPoint(138, 0)) self.rightresize.setGeometry(pos.x(), pos.y(), self.rightresize.width(), self.rightresize.height()) self.vlayout = self.gridLayout