QTfrontend/main.cpp
changeset 1893 85c61bc5e160
parent 1577 e3e37c730dc0
child 1894 ba54441631da
equal deleted inserted replaced
1892:fddc1201df25 1893:85c61bc5e160
    60 				"background-position: bottom center;"
    60 				"background-position: bottom center;"
    61 				"background-repeat: repeat-x;"
    61 				"background-repeat: repeat-x;"
    62 				"background-color: #870c8f;"
    62 				"background-color: #870c8f;"
    63 				"}"
    63 				"}"
    64 
    64 
    65 			"QPushButton{"
    65 			"QPushButton, QLineEdit, QLabel, QHeaderView, "
       
    66 			"QListWidget, QTableView, QTextBrowser, QSpinBox, "
       
    67 			"QToolBox::tab, QToolBox::tab QWidget, QComboBox, "
       
    68 			"QComboBox QAbstractItemView, IconedGroupBox, .QGroupBox, "
       
    69             "GameCFGWidget, TeamSelWidget, SelWeaponWidget, "
       
    70 			"QCheckBox, QRadioButton, QMenu::item, QTabBar::tab:selected {"
       
    71 				"color: #ffcc00;"
       
    72 			"}"
       
    73 
       
    74 			"QLineEdit, QListWidget, QTableView, QTextBrowser, QSpinBox, QComboBox, "
       
    75             "QComboBox QAbstractItemView, QMenu::item {"
       
    76 				"background-color: #0d0544;"
       
    77 			"}"
       
    78 
       
    79 			"QPushButton, QListWidget, QTableView, QLineEdit, QHeaderView, "
       
    80 			"QTextBrowser, QSpinBox, QToolBox, QComboBox, "
       
    81             "QComboBox QAbstractItemView, IconedGroupBox, "
       
    82 			".QGroupBox, GameCFGWidget, TeamSelWidget, SelWeaponWidget, QTabWidget::pane {"
    66 				"border: solid;"
    83 				"border: solid;"
    67 				"border-width: 3px;"
    84 				"border-width: 3px;"
       
    85 				"border-color: #ffcc00;"
       
    86 			"}"
       
    87 
       
    88 			"QPushButton:hover, QLineEdit:hover, QListWidget:hover, "
       
    89 			"QSpinBox:hover, QToolBox:hover, QComboBox:hover {"
       
    90 			    "border-color: yellow;"
       
    91 			"}"
       
    92 
       
    93 			"QLineEdit, QListWidget,QTableView, QTextBrowser, "
       
    94 			"QSpinBox, QToolBox { "
       
    95 				"border-radius: 12px;"
       
    96 			"}"
       
    97 
       
    98 			"QLineEdit, QLabel, QHeaderView, QListWidget, QTableView, "
       
    99 			"QSpinBox, QToolBox::tab, QComboBox, QComboBox QAbstractItemView, "
       
   100 			"IconedGroupBox, .QGroupBox, GameCFGWidget, TeamSelWidget, "
       
   101             "SelWeaponWidget, QCheckBox, QRadioButton {"
       
   102 				"font: bold 14px;"
       
   103 			"}"
       
   104 
       
   105 			".QGroupBox,GameCFGWidget,TeamSelWidget,SelWeaponWidget {"
       
   106 				"background-image: url(\":/res/panelbg.png\");"
       
   107 				"background-position: bottom center;"
       
   108 				"background-repeat: repeat-x;"
       
   109 				"border-radius: 16px;"
       
   110 				"background-color: #040200;"
       
   111 				"padding: 6px;"
       
   112 			"}"
       
   113 
       
   114 			"IconedGroupBox, QTabWidget::pane, QTabBar::tab:selected, QToolBox::tab QWidget{"
       
   115 				"background-color: #130f2c;"
       
   116 			"}"
       
   117 
       
   118 
       
   119 			"QPushButton {"
    68 				"border-radius: 10px;"
   120 				"border-radius: 10px;"
    69 				"border-color: #ffcc00;"
       
    70 				"background-origin: margin;"
   121 				"background-origin: margin;"
    71 				"background-position: top left;"
   122 				"background-position: top left;"
    72 				"background-color: #00351d;"
   123 				"background-color: #00351d;"
    73 				"color: #ffcc00;"
   124 			"}"
    74 				"}"
   125 
    75 				"QPushButton:hover{"
   126 			"QPushButton:pressed{"
    76 				"border-color: yellow;"
   127 			    "border-color: white;"
    77 				"}"
   128 			"}"
    78 				"QPushButton:pressed{"
   129 
    79 				"border-color: white;"
   130 			"QHeaderView {"
    80 				"}"
   131 				"border-radius: 0;"
    81 
   132 				"border-width: 0;"
    82 			"QLineEdit{"
   133 				"border-bottom-width: 3px;"
    83 				"border: solid;"
   134 				"background-color: #00351d;"
    84 				"border-width: 3px;"
   135 			"}"
    85 				"border-radius: 12px;"
   136 
    86 				"border-color: #ffcc00;"
   137             "QTabBar::tab {"
    87 				"background-color: #0d0544;"
   138                  "border-top: solid;"
    88 				"color: #ffcc00;"
   139                  "border-left: solid;"
    89 				"font: bold 14px;"
   140                  "border-right: solid;"
    90 				"}"
   141                  "border-width: 3px;"
    91 			"QLineEdit:hover{"
   142                  "border-radius: 0;"
    92 				"border-color: yellow;"
   143                  "border-top-left-radius: 6px;"
    93 				"}"
   144                  "border-top-right-radius: 6px;"
    94 
   145                  "border-color: #ffcc00;"
    95 			"QLabel{"
   146                  "padding: 3px;"
    96 				"color: #ffcc00;"
   147             "}"
    97 				"font: bold 14px;"
   148             "QTabBar::tab:!selected {"
    98 				"}"
   149                  "color: #0d0544;"
    99 
   150                  "background-color: #ffcc00;"
   100 			"QListWidget,QTableView{"
   151             "}"
   101 				"border: solid;"
       
   102 				"border-width: 3px;"
       
   103 				"border-radius: 12px;"
       
   104 				"border-color: #ffcc00;"
       
   105 				"background-color: #0d0544;"
       
   106 //				"alternate-background-color: #2f213a;" //what's it?
       
   107 				"color: #ffcc00;"
       
   108 				"font: bold 14px;"
       
   109 				"}"
       
   110 			"QListWidget:hover{"
       
   111 				"border-color: yellow;"
       
   112 				"}"
       
   113 
       
   114 			"QTextBrowser{"
       
   115 				"border: solid;"
       
   116 				"border-width: 3px;"
       
   117 				"border-radius: 12px;"
       
   118 				"border-color: #ffcc00;"
       
   119 				"background-color: #0d0544;"
       
   120 				"color: #ffcc00;"
       
   121 //				"font: bold 14px;"
       
   122 				"}"
       
   123 
       
   124 			"QSpinBox{"
       
   125 				"border: solid;"
       
   126 				"border-width: 3px;"
       
   127 				"border-radius: 12px;"
       
   128 				"border-color: #ffcc00;"
       
   129 				"background-color: #0d0544;"
       
   130 				"color: #ffcc00;"
       
   131 				"font: bold 14px;"
       
   132 				"}"
       
   133 			"QSpinBox:hover{"
       
   134 				"border-color: yellow;"
       
   135 				"}"
       
   136 			"QSpinBox::up-button{"
   152 			"QSpinBox::up-button{"
   137 				"background: transparent;"
   153 				"background: transparent;"
   138 				"width: 16px;"
   154 				"width: 16px;"
   139 				"height: 10px;"
   155 				"height: 10px;"
   140 				"}"
   156 			"}"
   141 			"QSpinBox::up-arrow{"
   157 
       
   158 			"QSpinBox::up-arrow {"
   142 				"image: url(\":/res/spin_up.png\");"
   159 				"image: url(\":/res/spin_up.png\");"
   143 				//"width: 5px;"
   160 			"}"
   144 				//"height: 5px;"
   161 
   145 				"}"
   162 			"QSpinBox::down-arrow {"
   146 			"QSpinBox::down-button{"
   163 				"image: url(\":/res/spin_down.png\");"
       
   164 			"}"
       
   165 
       
   166 			"QSpinBox::down-button {"
   147 				"background: transparent;"
   167 				"background: transparent;"
   148 				"width: 16px;"
   168 				"width: 16px;"
   149 				"height: 10px;"
   169 				"height: 10px;"
   150 				"}"
   170 			"}"
   151 			"QSpinBox::down-arrow{"
   171 
   152 				"image: url(\":/res/spin_down.png\");"
   172 			"QComboBox {"
   153 				"}"
       
   154 
       
   155 			"QToolBox{"
       
   156 				"border: solid;"
       
   157 				"border-width: 3px;"
       
   158 				"border-radius: 12px;"
       
   159 				"border-color: #ffcc00;"
       
   160 				//"background-color: #0d0544;"
       
   161 			"}"
       
   162 			"QToolBox::tab{"
       
   163 				"color: #ffcc00;"
       
   164 				"font: bold 14px;"
       
   165 				"}"
       
   166 			"QToolBox:hover{"
       
   167 				"border-color: yellow;"
       
   168 				"}"
       
   169 
       
   170 			"QComboBox{"
       
   171 				"border: solid;"
       
   172 				"border-width: 3px;"
       
   173 				"border-radius: 15px;"
   173 				"border-radius: 15px;"
   174 				"border-color: #ffcc00;"
       
   175 				"background-color: #0d0544;"
       
   176 				"color: #ffcc00;"
       
   177 				"font: bold 14px;"
       
   178 				"padding: 3px;"
   174 				"padding: 3px;"
   179 //				"text-align: center;"
   175 			"}"
   180 				"}"
       
   181 			"QComboBox:hover{"
       
   182 				"border-color: yellow;"
       
   183 				"}"
       
   184 			"QComboBox:pressed{"
   176 			"QComboBox:pressed{"
   185 				"border-color: white;"
   177 				"border-color: white;"
   186 				"}"
   178 			"}"
   187 			"QComboBox::drop-down{"
   179 			"QComboBox::drop-down{"
   188 				"border: transparent;"
   180 				"border: transparent;"
   189 				"width: 25px;"
   181 				"width: 25px;"
   190 				"}"
   182 			"}"
   191 			"QComboBox::down-arrow {"
   183 			"QComboBox::down-arrow {"
   192 				"image: url(\":/res/dropdown.png\");"
   184 				"image: url(\":/res/dropdown.png\");"
   193 				"}"
   185 			"}"
   194 			"QComboBox QAbstractItemView{"
   186 			"QComboBox QAbstractItemView {"
   195 				"border: solid transparent;"
   187 				"border: solid transparent;"
   196 				"border-width: 3px;"
   188 			"}"
   197 				//"border-radius: 12px;" -- bad corners look
       
   198 				"border-color: #ffcc00;"
       
   199 				"background-color: #0d0544;"
       
   200 				"color: #ffcc00;"
       
   201 				"font: bold 14px;"
       
   202 				"}"
       
   203 			
   189 			
   204 			"VertScrArea{"
   190 			"VertScrArea {"
   205 				"background-image: url(\":/res/panelbg.png\");"
   191 				"background-image: url(\":/res/panelbg.png\");"
   206 				"background-position: bottom center;"
   192 				"background-position: bottom center;"
   207 				"background-repeat: repeat-x;"
   193 				"background-repeat: repeat-x;"
   208 				"}"
   194 			"}"
   209 			
   195 			
   210 			"IconedGroupBox{"
   196 			"IconedGroupBox {"
   211 				"border: solid;"
       
   212 				"border-width: 3px;"
       
   213 				"border-radius: 16px;"
   197 				"border-radius: 16px;"
   214 				"border-color: #ffcc00;"
       
   215 				"background-color: #130f2c;"
       
   216 				"color: #ffcc00;"
       
   217 				"font: bold 14px;"
       
   218 				"padding: 2px;"
   198 				"padding: 2px;"
   219 				"}"
   199 			"}"
   220 			".QGroupBox,GameCFGWidget,TeamSelWidget,SelWeaponWidget{"
   200 
   221 				"background-image: url(\":/res/panelbg.png\");"
       
   222 				"background-position: bottom center;"
       
   223 				"background-repeat: repeat-x;"
       
   224 				"border: solid;"
       
   225 				"border-width: 3px;"
       
   226 				"border-radius: 16px;"
       
   227 				"border-color: #ffcc00;"
       
   228 				"background-color: #040200;"
       
   229 				"padding: 6px;"
       
   230 				"color: #ffcc00;"
       
   231 				"font: bold 14px;"
       
   232 				//"margin-top: 24px;"
       
   233 				"}"
       
   234 			".QGroupBox::title{"
   201 			".QGroupBox::title{"
   235 				"subcontrol-origin: margin;"
   202 				"subcontrol-origin: margin;"
   236 				"subcontrol-position: top left;"
   203 				"subcontrol-position: top left;"
   237 				//"padding-left: 82px;"
   204 				//"padding-left: 82px;"
   238 				//"padding-top: 26px;"
   205 				//"padding-top: 26px;"
   239 				"text-align: left;"
   206 				"text-align: left;"
   240 				"}"
   207 				"}"
   241 
   208 
   242 			"QCheckBox{"
       
   243 				"color: #ffcc00;"
       
   244 				"font: bold 14px;"
       
   245 				"}"
       
   246 			"QCheckBox::indicator:checked{"
   209 			"QCheckBox::indicator:checked{"
   247 				"image: url(\":/res/checked.png\");"
   210 				"image: url(\":/res/checked.png\");"
   248 				"}"
   211 				"}"
   249 			"QCheckBox::indicator:unchecked{"
   212 			"QCheckBox::indicator:unchecked{"
   250 				"image: url(\":/res/unchecked.png\");"
   213 				"image: url(\":/res/unchecked.png\");"
   251 				"}"
       
   252 			
       
   253 			"QRadioButton{"
       
   254 				"color: #ffcc00;"
       
   255 				"font: bold 14px;"
       
   256 				"}"
   214 				"}"
   257 			
   215 			
   258 			".QWidget{"
   216 			".QWidget{"
   259 				"background: transparent;"
   217 				"background: transparent;"
   260 				"}"
   218 				"}"
   261 			".QTabWidget{"
   219 
   262 				//"background: transparent;"
   220 			"QTabWidget::pane {"
   263 				"background-color: #130f2c;"
   221                 "border-top-width: 2px;"
   264 				"}"
   222 			"}"
   265 
   223 
   266 			"QMenu{"
   224 			"QMenu{"
   267 				"background-color: #ffcc00;"
   225 				"background-color: #ffcc00;"
   268 				"margin: 3px;"
   226 				"margin: 3px;"
   269 				"}"
   227 			"}"
   270 			"QMenu::item{"
   228 			"QMenu::item {"
   271 				"background-color: #0d0544;"
   229 				"background-color: #0d0544;"
   272 				"border: 1px solid transparent;"
   230 				"border: 1px solid transparent;"
   273 				"font: bold;"
   231 				"font: bold;"
   274 				"color: #ffcc00;"
       
   275 				"padding: 2px 25px 2px 20px;"
   232 				"padding: 2px 25px 2px 20px;"
   276 				"}"
   233 			"}"
   277 			"QMenu::item:selected{"
   234 			"QMenu::item:selected {"
   278 				"border-color: yellow;"
       
   279 				"background-color: #2d2564;"
   235 				"background-color: #2d2564;"
   280 				"}"
   236 			"}"
   281 			"QMenu::indicator{"
   237 			"QMenu::indicator {"
   282 				"width: 16px;"
   238 				"width: 16px;"
   283 				"height: 16px;"
   239 				"height: 16px;"
   284 				"}"
   240 			"}"
   285 			"QMenu::indicator:non-exclusive:checked{"
   241 			"QMenu::indicator:non-exclusive:checked{"
   286 				"image: url(\":/res/checked.png\");"
   242 				"image: url(\":/res/checked.png\");"
   287 				"}"
   243 			"}"
   288 			"QMenu::indicator:non-exclusive:unchecked{"
   244 			"QMenu::indicator:non-exclusive:unchecked{"
   289 				"image: url(\":/res/unchecked.png\");"
   245 				"image: url(\":/res/unchecked.png\");"
   290 				"}"
   246 			"}"
   291 
   247 
   292 			"QToolTip{"
   248 			"QToolTip{"
   293 				"background-color: #0d0544;"
   249 				"background-color: #0d0544;"
   294 				"}"
   250 			"}"
   295 			
   251 			
   296 			":disabled{"
   252 			":disabled{"
   297 				"color: #a0a0a0;"
   253 				"color: #a0a0a0;"
   298 				"}"
   254 			"}"
   299 			)
   255 			)
   300 		);
   256 		);
   301 
   257 
   302 	bindir->cd("bin"); // workaround over NSIS installer
   258 	bindir->cd("bin"); // workaround over NSIS installer
   303 
   259