diff --git a/lib/images/closetab.png b/lib/images/closetab.png index 0a729d1ded..540694eae3 100644 Binary files a/lib/images/closetab.png and b/lib/images/closetab.png differ diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 90a10e8346..ce1b43daaa 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -39,7 +39,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -697,16 +698,21 @@ QVariant GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const //////////////////////////////////////////////////////////////////// TabWorkArea::TabWorkArea(QWidget * parent): QTabWidget(parent) { - QPushButton * closeTabButton = new QPushButton(this); + QPalette pal = palette(); + pal.setColor(QPalette::Active, QPalette::Button, pal.color(QPalette::Active, QPalette::Window)); + pal.setColor(QPalette::Disabled, QPalette::Button, pal.color(QPalette::Disabled, QPalette::Window)); + pal.setColor(QPalette::Inactive, QPalette::Button, pal.color(QPalette::Inactive, QPalette::Window)); + + QToolButton * closeTabButton = new QToolButton(this); + closeTabButton->setPalette(pal); FileName const file = support::libFileSearch("images", "closetab", "png"); if (!file.empty()) { QPixmap pm(toqstr(file.absFilename())); closeTabButton->setIcon(QIcon(pm)); - closeTabButton->setMaximumSize(pm.size()); - closeTabButton->setFlat(true); } else { closeTabButton->setText("Close"); } + closeTabButton->setAutoRaise(true); closeTabButton->setCursor(Qt::ArrowCursor); closeTabButton->setToolTip(tr("Close tab")); closeTabButton->setEnabled(true);