Skip to content

Commit

Permalink
gui: FIX tabbar height size
Browse files Browse the repository at this point in the history
  • Loading branch information
ctlcltd committed Jun 13, 2023
1 parent 42bfe59 commit 82d3d08
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,10 @@ void gui::tabStackerLayout()
twid->tabBar()->setChangeCurrentOnDrag(false);
twid->tabBar()->setElideMode(Qt::ElideRight);

#if defined Q_OS_WIN
twid->setStyleSheet("QTabWidget::tab-bar { left: 0 } QTabBar { border-style: solid } QTabWidget::pane { border: 0; border-radius: 0 } QTabBar::tab { min-width: 25ex; height: 22px; padding-top: 11px; padding-bottom: 11px; padding-left: 8px; padding-right: 8px; font-size: 13px; border-style: solid; border-width: 0 1px; color:palette(button-text); background: palette(button) } QTabBar::tab:selected { color:palette(highlighted-text); background: palette(highlight); border-color: transparent }");
#elif defined Q_OS_MAC
#ifndef Q_OS_WIN
twid->setStyleSheet("QTabWidget::tab-bar { left: 0 } QTabBar { border-style: solid } QTabWidget::pane { border: 0; border-radius: 0 } QTabBar::tab { min-width: 12ex; max-width: 25ex; height: 44px; padding-left: 8px; padding-right: 8px; font-size: 13px; border-style: solid; border-width: 0 1px; color:palette(button-text); background: palette(button) } QTabBar::tab:selected { color:palette(highlighted-text); background: palette(highlight); border-color: transparent }");
#else
twid->setStyleSheet("QTabWidget::tab-bar { left: 0 } QTabBar { border-style: solid } QTabWidget::pane { border: 0; border-radius: 0 } QTabBar::tab { min-width: 25ex; height: 44px; padding-top: 11px; padding-bottom: 11px; padding-left: 8px; padding-right: 8px; font-size: 13px; border-style: solid; border-width: 0 1px; color:palette(button-text); background: palette(button) } QTabBar::tab:selected { color:palette(highlighted-text); background: palette(highlight); border-color: transparent }");
twid->setStyleSheet("QTabWidget::tab-bar { left: 0 } QTabBar { border-style: solid } QTabWidget::pane { border: 0; border-radius: 0 } QTabBar::tab { min-width: 25ex; height: 22px; padding-top: 11px; padding-bottom: 11px; padding-left: 8px; padding-right: 8px; font-size: 13px; border-style: solid; border-width: 0 1px; color:palette(button-text); background: palette(button) } QTabBar::tab:selected { color:palette(highlighted-text); background: palette(highlight); border-color: transparent }");
#endif

QColor twtbshade;
Expand Down
1 change: 0 additions & 1 deletion src/gui/toolkit/ListProxyStyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

namespace e2se_gui
{
//TODO
class ListProxyStyle : public QProxyStyle
{
public:
Expand Down
1 change: 0 additions & 1 deletion src/gui/toolkit/TreeProxyStyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

namespace e2se_gui
{
//TODO
class TreeProxyStyle : public QProxyStyle
{
public:
Expand Down

0 comments on commit 82d3d08

Please sign in to comment.