Skip to content

Commit

Permalink
gui / tab widget: fix alignment on MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Popa <[email protected]>
  • Loading branch information
andrei47w committed Nov 20, 2024
1 parent 2ffc78e commit e67d798
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/scopyhomeaddpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ QTabWidget *ScopyHomeAddPage::createTabWidget(QWidget *parent)
m_iioTabWidget = new IioTabWidget(tabWidget);
tabWidget->addTab(m_iioTabWidget, "IIO");
m_emuWidget = new EmuWidget(tabWidget);
tabWidget->addTab(m_emuWidget, "EMU");
tabWidget->addTab(m_emuWidget, "Emulator");
tabWidget->setCurrentWidget(m_iioTabWidget);
return tabWidget;
}
Expand Down
17 changes: 12 additions & 5 deletions gui/style/qss/generic/global.qss
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,17 @@ QTabBar::tab:hover {
QTabBar::tab QLabel {
background-color: transparent;
color: &content_default&;
padding-right: &padding_2&;;
padding-left: &padding_2&;;
}

QTabBar::tab {
min-width: 100px;
background: &background_primary&;
font-weight: bold;
min-width: &unit_5&;
background: &background_primary&;
font-size: &font_size_1&;
font-weight: bold;
padding-right: &padding_2&;
padding-left: &padding_2&;
padding-top: &padding_1&;
padding-bottom: &padding_1&;
}

QTabBar::tab:selected {
Expand All @@ -184,6 +187,10 @@ QTabBar::tab:selected {
border-bottom: 1px solid &interactive_primary_idle&;
}

QTabWidget::tab-bar {
alignment: left;
}


/* fix this */
QScrollArea {
Expand Down

0 comments on commit e67d798

Please sign in to comment.