mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix log viewer stylesheet of qtoolbutton
This commit is contained in:
parent
5937461cf6
commit
60445b705c
3 changed files with 7 additions and 8 deletions
|
|
@ -7,12 +7,13 @@ class LogsWindow(QtWidgets.QWidget):
|
|||
def __init__(self, parent=None):
|
||||
super(LogsWindow, self).__init__(parent)
|
||||
|
||||
self.setStyleSheet(style.load_stylesheet())
|
||||
self.setWindowTitle("Logs viewer")
|
||||
|
||||
self.resize(1400, 800)
|
||||
log_detail = OutputWidget(parent=self)
|
||||
logs_widget = LogsWidget(log_detail, parent=self)
|
||||
|
||||
main_layout = QtWidgets.QHBoxLayout()
|
||||
main_layout = QtWidgets.QHBoxLayout(self)
|
||||
|
||||
log_splitter = QtWidgets.QSplitter(self)
|
||||
log_splitter.setOrientation(QtCore.Qt.Horizontal)
|
||||
|
|
@ -24,5 +25,4 @@ class LogsWindow(QtWidgets.QWidget):
|
|||
self.logs_widget = logs_widget
|
||||
self.log_detail = log_detail
|
||||
|
||||
self.setLayout(main_layout)
|
||||
self.setWindowTitle("Logs")
|
||||
self.setStyleSheet(style.load_stylesheet())
|
||||
|
|
|
|||
|
|
@ -76,13 +76,12 @@ class CustomCombo(QtWidgets.QWidget):
|
|||
|
||||
toolbutton.setMenu(toolmenu)
|
||||
toolbutton.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
|
||||
toolbutton.setProperty("popup_mode", "1")
|
||||
|
||||
layout = QtWidgets.QHBoxLayout()
|
||||
layout = QtWidgets.QHBoxLayout(self)
|
||||
layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.addWidget(toolbutton)
|
||||
|
||||
self.setLayout(layout)
|
||||
|
||||
toolmenu.selection_changed.connect(self.selection_changed)
|
||||
|
||||
self.toolbutton = toolbutton
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ QToolButton:disabled {
|
|||
background: {color:bg-buttons-disabled};
|
||||
}
|
||||
|
||||
QToolButton[popupMode="1"] {
|
||||
QToolButton[popupMode="1"], QToolButton[popup_mode="1"] {
|
||||
/* make way for the popup button */
|
||||
padding-right: 20px;
|
||||
border: 1px solid {color:bg-buttons};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue