diff --git a/3rdparty/dark_style_sheet/qdarkstyle/style.qss b/3rdparty/dark_style_sheet/qdarkstyle/style.qss index dfca1ac..f664d1c 100644 --- a/3rdparty/dark_style_sheet/qdarkstyle/style.qss +++ b/3rdparty/dark_style_sheet/qdarkstyle/style.qss @@ -267,12 +267,13 @@ QMenu::separator { QMenu::indicator { width: 18px; height: 18px; + padding-left: 4px; } /* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */ QMenu::indicator:non-exclusive:unchecked { - image: url(:/qss_icons/rc/checkbox_unchecked.png); + image: url(:/qss_icons/rc/checkbox_unchecked.png); } QMenu::indicator:non-exclusive:unchecked:selected { @@ -1061,10 +1062,8 @@ QSlider::handle:vertical { } QToolButton { -\\ background: #404040; color : white; - border: 1px solid #404040; -\\ border-radius: 2px; + border: 1px solid transparent; margin: 2px; padding: 2px; } @@ -1089,10 +1088,6 @@ QToolButton:disabled{ border: 1px transparent #2b2b2b; } - -QToolBar QToolButton{ - border: 1px solid #383838; -} \\ \\QToolButton[popupMode="1"] { /* only for MenuButtonPopup */ \\ padding-right: 20px; /* make way for the popup button */ diff --git a/limereport/lrbasedesignintf.cpp b/limereport/lrbasedesignintf.cpp index 1ad1ee5..0dbea41 100644 --- a/limereport/lrbasedesignintf.cpp +++ b/limereport/lrbasedesignintf.cpp @@ -1219,12 +1219,12 @@ void BaseDesignIntf::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) page->clearSelection(); this->setSelected(true); } - QMenu menu; - QAction* copyAction = menu.addAction(QIcon(":/report/images/copy.png"), tr("Copy")); + QMenu menu(event->widget()); + QAction* copyAction = menu.addAction(QIcon(":/report/images/copy"), tr("Copy")); copyAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_C)); QAction* cutAction = menu.addAction(QIcon(":/report/images/cut"), tr("Cut")); cutAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_X)); - QAction* pasteAction = menu.addAction(QIcon(":/report/images/paste.png"), tr("Paste")); + QAction* pasteAction = menu.addAction(QIcon(":/report/images/paste"), tr("Paste")); pasteAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_V)); pasteAction->setEnabled(false);