QTfrontend/teamselect.cpp
changeset 1424 2b45d88716b0
parent 1389 6e411559cc7b
child 1425 7ee750565e2d
--- a/QTfrontend/teamselect.cpp	Sun Oct 26 15:02:55 2008 +0000
+++ b/QTfrontend/teamselect.cpp	Sun Oct 26 17:17:07 2008 +0000
@@ -214,17 +214,31 @@
 TeamSelWidget::TeamSelWidget(QWidget* parent) :
   QGroupBox(parent), mainLayout(this), m_acceptOuter(false)
 {
-  setTitle(QGroupBox::tr("Playing teams"));
-  framePlaying = new FrameTeams();
-  frameDontPlaying = new FrameTeams();
-  QPalette p;
-  p.setColor(QPalette::Window, QColor(0x13, 0x0f, 0x2c));
-  addScrArea(framePlaying, p.color(QPalette::Window).light(105), 200);
-  addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0);
-  QPushButton * btnSetup = new QPushButton(this);
-  btnSetup->setText(QPushButton::tr("Setup"));
-  connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked()));
-  mainLayout.addWidget(btnSetup);
+	setTitle(QGroupBox::tr("Playing teams"));
+	framePlaying = new FrameTeams();
+	framePlaying->setStyleSheet(
+			"FrameTeams{"
+				"border: solid;"
+				"border-width: 1px;"
+				"border-radius: 16px;"
+				"border-color: #ffcc00;"
+				"}"
+	);
+	frameDontPlaying = new FrameTeams();
+	frameDontPlaying->setStyleSheet(
+			"FrameTeams{"
+				"background-image: url(\":/res/panelbg.png\");"
+				"}"
+	);
+	
+	QPalette p;
+	p.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00));
+	addScrArea(framePlaying, p.color(QPalette::Window).light(105), 200);
+	addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0);
+	QPushButton * btnSetup = new QPushButton(this);
+	btnSetup->setText(QPushButton::tr("Setup"));
+	connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked()));
+	mainLayout.addWidget(btnSetup);
 }
 
 void TeamSelWidget::setAcceptOuter(bool acceptOuter)