QTfrontend/main.cpp
changeset 1152 c72b939c00df
parent 1150 ae86e36dad2e
child 1153 825931b81ad4
equal deleted inserted replaced
1151:ee6573db301a 1152:c72b939c00df
    52 	srand(now.secsTo(zero));
    52 	srand(now.secsTo(zero));
    53 
    53 
    54 	Q_INIT_RESOURCE(hedgewars);
    54 	Q_INIT_RESOURCE(hedgewars);
    55 
    55 
    56 	qApp->setStyleSheet
    56 	qApp->setStyleSheet
    57 	  (QString(
    57 		(QString(
    58 		   ".HWForm{"
    58 				".HWForm{"
    59 		   "background-image: url(\":/res/Background.png\");"
    59 				"background-image: url(\":/res/Background.png\");"
    60 		   "background-position: bottom center;"
    60 				"background-position: bottom center;"
    61 		   //" background-origin: content;"
    61 				"background-repeat: repeat-x;"
    62 		   "background-repeat: repeat-x;"
    62 				"background-color: #870c8f;"
    63 		   "background-color: #870c8f;"
    63 				"}"
    64 		   "}"
    64 				"PageMain > QPushButton{"
    65 		   "PageMain > QPushButton{"
    65 				"border: solid;"
    66 		   "border: solid transparent;"
    66 				"border-width: 4px;"
    67 		   "}"
    67 				"border-radius: 8px;"
    68 		   )
    68 				"border-color: orange;"
    69 	   );
    69 				"background-origin: content;"
       
    70 				"}"
       
    71 				"PageMain > QPushButton:hover{"
       
    72 				"border-color: yellow;"
       
    73 				"}"
       
    74 				"PageMain > QPushButton:pressed{"
       
    75 				"border-color: white;"
       
    76 				"}"
       
    77 			)
       
    78 		);
    70 
    79 
    71 	bindir->cd("bin"); // workaround over NSIS installer
    80 	bindir->cd("bin"); // workaround over NSIS installer
    72 
    81 
    73 	cfgdir->setPath(cfgdir->homePath());
    82 	cfgdir->setPath(cfgdir->homePath());
    74 	if (checkForDir(cfgdir->absolutePath() + "/.hedgewars"))
    83 	if (checkForDir(cfgdir->absolutePath() + "/.hedgewars"))