--- /dev/null
+QWidget {
+ background-color: "#fdf6e3";
+ color: "#839496";
+}
+
+QPushButton {
+ background-color: "#eee8d5";
+ border-top-width: 5px;
+ border-bottom-width: 5px;
+ border-left-width: 20px;
+ border-right-width: 20px;
+ border-style: flat;
+ margin: 0px;
+ color: "#839496";
+}
+
+QPushButton:pressed {
+ background-color: "#ddd7d4";
+}
{
setWindowTitle("fstl");
+ QFile styleFile( ":/style.qss" );
+ styleFile.open( QFile::ReadOnly );
+ setStyleSheet(styleFile.readAll());
+
QGLFormat format;
format.setVersion(2, 1);
format.setSampleBuffers(true);
void Window::on_about()
{
- QMessageBox::about(this, "About fstl", "<b>fstl</b><br><br>"
- "A fast viewer for <code>.stl</code> files.<br>"
- "<a href=\"https://github.com/mkeeter/fstl\">https://github.com/mkeeter/fstl</a><br><br>"
- "© 2014 Matthew Keeter<br>"
- "<a href=\"mailto:matt.j.keeter@gmail.com\">matt.j.keeter@gmail.com</a><br>");
+ QMessageBox::about(this, "", "<p align=\"center\"><b>fstl</b></p>"
+ "<p>A fast viewer for <code>.stl</code> files.<br>"
+ "<a href=\"https://github.com/mkeeter/fstl\">https://github.com/mkeeter/fstl</a></p>"
+ "<p>© 2014 Matthew Keeter<br>"
+ "<a href=\"mailto:matt.j.keeter@gmail.com\">matt.j.keeter@gmail.com</a></p>");
}