0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-11 17:18:10 +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,12 +267,13 @@ QMenu::separator {
QMenu::indicator { QMenu::indicator {
width: 18px; width: 18px;
height: 18px; height: 18px;
padding-left: 4px;
} }
/* non-exclusive indicator = check box style indicator /* non-exclusive indicator = check box style indicator
(see QActionGroup::setExclusive) */ (see QActionGroup::setExclusive) */
QMenu::indicator:non-exclusive:unchecked { 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 { QMenu::indicator:non-exclusive:unchecked:selected {
@ -1061,10 +1062,8 @@ QSlider::handle:vertical {
} }
QToolButton { QToolButton {
\\ background: #404040;
color : white; color : white;
border: 1px solid #404040; border: 1px solid transparent;
\\ border-radius: 2px;
margin: 2px; margin: 2px;
padding: 2px; padding: 2px;
} }
@ -1089,10 +1088,6 @@ QToolButton:disabled{
border: 1px transparent #2b2b2b; border: 1px transparent #2b2b2b;
} }
QToolBar QToolButton{
border: 1px solid #383838;
}
\\ \\
\\QToolButton[popupMode="1"] { /* only for MenuButtonPopup */ \\QToolButton[popupMode="1"] { /* only for MenuButtonPopup */
\\ padding-right: 20px; /* make way for the popup button */ \\ padding-right: 20px; /* make way for the popup button */

View File

@ -1219,12 +1219,12 @@ void BaseDesignIntf::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
page->clearSelection(); page->clearSelection();
this->setSelected(true); this->setSelected(true);
} }
QMenu menu; QMenu menu(event->widget());
QAction* copyAction = menu.addAction(QIcon(":/report/images/copy.png"), tr("Copy")); QAction* copyAction = menu.addAction(QIcon(":/report/images/copy"), tr("Copy"));
copyAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_C)); copyAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_C));
QAction* cutAction = menu.addAction(QIcon(":/report/images/cut"), tr("Cut")); QAction* cutAction = menu.addAction(QIcon(":/report/images/cut"), tr("Cut"));
cutAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_X)); 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->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_V));
pasteAction->setEnabled(false); pasteAction->setEnabled(false);