refactor: Define tooltip style in single css file and pass it to QApplication
This commit is contained in:
@@ -130,9 +130,3 @@
|
||||
#code_file #minimize_button:enabled {
|
||||
border-image: url(data/gui/code_view/images/minimize_active.png);
|
||||
}
|
||||
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>pt;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
QGraphicsView, QGraphicsScene {
|
||||
background-color: <color:graph/background>;
|
||||
}
|
||||
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>pt;
|
||||
}
|
||||
|
||||
@@ -27,9 +27,3 @@ QPushButton:pressed {
|
||||
border-bottom-right-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
}
|
||||
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>pt;
|
||||
}
|
||||
|
||||
@@ -57,9 +57,3 @@ QPushButton#search_button {
|
||||
#search_button:pressed {
|
||||
background: <color:search/button/press>;
|
||||
}
|
||||
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>pt;
|
||||
}
|
||||
|
||||
@@ -75,9 +75,3 @@ QLineEdit:disabled {
|
||||
color: white;
|
||||
background: #2D3F85;
|
||||
}
|
||||
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>pt;
|
||||
}
|
||||
|
||||
@@ -32,9 +32,3 @@ QPushButton:hover {
|
||||
QPushButton:pressed {
|
||||
background: <color:search/button/press>;
|
||||
}
|
||||
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>pt;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ public:
|
||||
PlayerB = 4
|
||||
};
|
||||
|
||||
static Token Opponent( oken token );
|
||||
static Token Opponent( Token token );
|
||||
|
||||
struct Move {
|
||||
int row;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include "component/view/View.h"
|
||||
#include "component/view/CompositeView.h"
|
||||
#include "qt/utility/utilityQt.h"
|
||||
#include "qt/view/QtViewWidgetWrapper.h"
|
||||
#include "settings/ApplicationSettings.h"
|
||||
#include "utility/file/FileSystem.h"
|
||||
@@ -92,6 +93,8 @@ QtMainWindow::QtMainWindow()
|
||||
QApplication* app = dynamic_cast<QApplication*>(QCoreApplication::instance());
|
||||
app->installEventFilter(new MouseReleaseFilter(this));
|
||||
|
||||
app->setStyleSheet(utility::getStyleSheet("data/gui/tooltip.css").c_str());
|
||||
|
||||
m_recentProjectAction = new QAction*[ApplicationSettings::MaximalAmountOfRecentProjects];
|
||||
|
||||
setupProjectMenu();
|
||||
|
||||
Reference in New Issue
Block a user