0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00

Dark theme updated

This commit is contained in:
Arin Alex 2018-06-28 23:58:05 +03:00
parent 977be6cf77
commit bac39060bf
2 changed files with 6 additions and 11 deletions

View File

@ -267,6 +267,7 @@ QMenu::separator {
QMenu::indicator {
width: 18px;
height: 18px;
padding-left: 4px;
}
/* non-exclusive indicator = check box style indicator
@ -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 */

View File

@ -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);