Commit 6fa81a8c authored by Anakin's avatar Anakin

Some styling

parent c4444bce
......@@ -8,6 +8,7 @@
</qresource>
<qresource prefix="/files">
<file>about.txt</file>
<file>StyleSheet.txt</file>
</qresource>
<qresource prefix="/images/toolbar">
<file>placeholder.png</file>
......
QToolButton#test123 {
color: #000000;
}
QToolButton:checked {
background-color: #ffffff;
border-style: inset;
border-width: 1px;
border-radius: 5px;
border-color: #b3b3b3;
min-height: 25px
}
QToolButton:hover {
border-style: solid;
border-width: 1px;
border-radius: 5px;
border-color: #a4daff;
min-height: 25px
}
......@@ -35,6 +35,10 @@ MainWindow::MainWindow(QWidget *parent)
ui->statusBar->showMessage("MeshViewer by Anakin", 0);
m_fileInfo += "Filename: -\nMaterials: -\nVertices: -\nTriangle: -<detail>No file is open";
QFile styleSheet(":/files/StyleSheet.txt");
styleSheet.open(QIODevice::ReadOnly);
this->setStyleSheet(styleSheet.readAll());
}
MainWindow::~MainWindow()
......@@ -118,6 +122,11 @@ void MainWindow::setupWidgets()
connect(help, &QAction::triggered, this, &MainWindow::aboutTool);
ui->mainToolBar->addAction(help);
QAction *test = new QAction(this);
test->setCheckable(true);
test->setObjectName("test123");
ui->mainToolBar->addAction(test);
m_output->setObjectName("output");
m_output->setStyleSheet("QLabel#output{color : white; min-width: 400px; min-height: 50px;}");
m_output->setAlignment(Qt::AlignTop);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment