border-top: 6px solid qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFE085, stop: 0.8 #CC9900); /* Width of the line below the tab panel */
}
left: 5px; /* move to the right by 5px */
}
/* Tab properties */
border: 1px solid #000000;
border-top-left-radius: 4px; /* For rounded corners */
border-top-right-radius: 4px;
min-width: 8ex;
padding: 2px; /* Padding inside each tab */
margin-left: 4px; /* Margins among the tabs */
margin-right: 4px;
}
/* Properties for selected tab */
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CC9900, stop: 0.8 #FFE085);
border-color: #000000;
border-bottom-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CC9900, stop: 0.8 #FFE085); /* same as pane color */
}
/* Properties for unselected tabs */
background: #C2C7CB; /* Gray color for unselected tabs */
border-bottom-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CC9900, stop: 0.8 #FFE085); /* same as pane color */
margin-top: 4px; /* make non-selected tabs look smaller */
}
margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
}
margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
}
QTabWidget::pane { /* The tab widget frame */
border-top: 6px solid qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFE085, stop: 0.8 #CC9900); /* Width of the line below the tab panel */
}
QTabWidget::tab-bar {
left: 5px; /* move to the right by 5px */
}
/* Tab properties */
QTabBar::tab {
border: 1px solid #000000;
border-top-left-radius: 4px; /* For rounded corners */
border-top-right-radius: 4px;
min-width: 8ex;
padding: 2px; /* Padding inside each tab */
margin-left: 4px; /* Margins among the tabs */
margin-right: 4px;
}
/* Properties for selected tab */
QTabBar::tab:selected {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CC9900, stop: 0.8 #FFE085);
border-color: #000000;
border-bottom-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CC9900, stop: 0.8 #FFE085); /* same as pane color */
}
/* Properties for unselected tabs */
QTabBar::tab:!selected {
background: #C2C7CB; /* Gray color for unselected tabs */
border-bottom-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CC9900, stop: 0.8 #FFE085); /* same as pane color */
margin-top: 4px; /* make non-selected tabs look smaller */
}
QTabBar::tab:first:selected {
margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
}
QTabBar::tab:last:selected {
margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
}
To copy to clipboard, switch view to plain text mode
Bookmarks