Add some fixes to stylesheet to avoid very odd looking OpenPype UIs in Substance Painter

This commit is contained in:
Roy Nieterau 2023-01-06 04:05:13 +01:00
parent b581804881
commit 3cb797b10a

View file

@ -127,6 +127,7 @@ QPushButton {
border-radius: 0.2em;
padding: 3px 5px 3px 5px;
background: {color:bg-buttons};
min-width: 0px; /* Substance Painter fix */
}
QPushButton:hover {
@ -328,7 +329,15 @@ QTabWidget::tab-bar {
alignment: left;
}
/* avoid QTabBar overrides in Substance Painter */
QTabBar {
text-transform: none;
font-weight: normal;
}
QTabBar::tab {
text-transform: none;
font-weight: normal;
border-top: 1px solid {color:border};
border-left: 1px solid {color:border};
border-right: 1px solid {color:border};
@ -368,6 +377,7 @@ QHeaderView {
QHeaderView::section {
background: {color:bg-view-header};
padding: 4px;
border-top: 0px; /* Substance Painter fix */
border-right: 1px solid {color:bg-view};
border-radius: 0px;
text-align: center;