Commit 1a8ef085 authored by Martin Heni's avatar Martin Heni

Improved color and widget sizes.

svn path=/trunk/KDE/kdegames/lskat/; revision=527963
parent 3eabda1b
......@@ -27,6 +27,12 @@ GameView::GameView(QSize size, int advancePeriod, QWidget* parent)
mPlayerWidgets.clear();
QPalette palette;
palette.setColor(QPalette::Active, QPalette::Background, QColor(0,0,128));
palette.setColor(QPalette::Inactive, QPalette::Background, QColor(0,0,128));
palette.setColor(QPalette::Disabled, QPalette::Background, QColor(0,0,128));
this->setPalette(palette);
updateGeometry();
adjustSize();
}
......
......@@ -8,283 +8,18 @@
<rect>
<x>0</x>
<y>0</y>
<width>269</width>
<width>258</width>
<height>215</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="palette" >
<palette>
<active>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>221</red>
<green>223</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>85</red>
<green>85</green>
<blue>85</blue>
</color>
<color>
<red>199</red>
<green>199</green>
<blue>199</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>85</red>
<green>170</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>103</red>
<green>141</green>
<blue>178</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>238</blue>
</color>
<color>
<red>82</red>
<green>24</green>
<blue>139</blue>
</color>
<color>
<red>232</red>
<green>232</green>
<blue>232</blue>
</color>
</active>
<inactive>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>221</red>
<green>223</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>85</red>
<green>85</green>
<blue>85</blue>
</color>
<color>
<red>199</red>
<green>199</green>
<blue>199</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>85</red>
<green>170</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>103</red>
<green>141</green>
<blue>178</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>238</blue>
</color>
<color>
<red>82</red>
<green>24</green>
<blue>139</blue>
</color>
<color>
<red>232</red>
<green>232</green>
<blue>232</blue>
</color>
</inactive>
<disabled>
<color>
<red>128</red>
<green>128</green>
<blue>128</blue>
</color>
<color>
<red>221</red>
<green>223</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>85</red>
<green>85</green>
<blue>85</blue>
</color>
<color>
<red>199</red>
<green>199</green>
<blue>199</blue>
</color>
<color>
<red>199</red>
<green>199</green>
<blue>199</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>128</red>
<green>128</green>
<blue>128</blue>
</color>
<color>
<red>85</red>
<green>170</green>
<blue>255</blue>
</color>
<color>
<red>85</red>
<green>170</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>86</red>
<green>117</green>
<blue>148</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>238</blue>
</color>
<color>
<red>82</red>
<green>24</green>
<blue>139</blue>
</color>
<color>
<red>232</red>
<green>232</green>
<blue>232</blue>
</color>
</disabled>
</palette>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
......@@ -305,6 +40,271 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="palette" >
<palette>
<active>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>221</red>
<green>223</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>85</red>
<green>85</green>
<blue>85</blue>
</color>
<color>
<red>199</red>
<green>199</green>
<blue>199</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>50</red>
<green>50</green>
<blue>170</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>103</red>
<green>141</green>
<blue>178</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>238</blue>
</color>
<color>
<red>82</red>
<green>24</green>
<blue>139</blue>
</color>
<color>
<red>232</red>
<green>232</green>
<blue>232</blue>
</color>
</active>
<inactive>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>221</red>
<green>223</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>85</red>
<green>85</green>
<blue>85</blue>
</color>
<color>
<red>199</red>
<green>199</green>
<blue>199</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>50</red>
<green>50</green>
<blue>170</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>103</red>
<green>141</green>
<blue>178</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>238</blue>
</color>
<color>
<red>82</red>
<green>24</green>
<blue>139</blue>
</color>
<color>
<red>232</red>
<green>232</green>
<blue>232</blue>
</color>
</inactive>
<disabled>
<color>
<red>128</red>
<green>128</green>
<blue>128</blue>
</color>
<color>
<red>221</red>
<green>223</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>85</red>
<green>85</green>
<blue>85</blue>
</color>
<color>
<red>199</red>
<green>199</green>
<blue>199</blue>
</color>
<color>
<red>199</red>
<green>199</green>
<blue>199</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>128</red>
<green>128</green>
<blue>128</blue>
</color>
<color>
<red>50</red>
<green>50</green>
<blue>170</blue>
</color>
<color>
<red>50</red>
<green>50</green>
<blue>170</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>86</red>
<green>117</green>
<blue>148</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>238</blue>
</color>
<color>
<red>82</red>
<green>24</green>
<blue>139</blue>
</color>
<color>
<red>232</red>
<green>232</green>
<blue>232</blue>
</color>
</disabled>
</palette>
</property>
<property name="frameShape" >
<enum>QFrame::Panel</enum>
</property>
......@@ -344,7 +344,7 @@
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>15</pointsize>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
......@@ -362,7 +362,7 @@
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>15</pointsize>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
......@@ -425,7 +425,7 @@
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>15</pointsize>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
......@@ -446,7 +446,7 @@
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>15</pointsize>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
......@@ -464,7 +464,7 @@
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>15</pointsize>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
......@@ -482,7 +482,7 @@
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>15</pointsize>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
......@@ -540,7 +540,7 @@
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>15</pointsize>
<pointsize>12</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
......
......@@ -75,5 +75,6 @@ void PlayerStatusWidget::setInputIcon(QPixmap* icon)
QSize PlayerStatusWidget::sizeHint() const
{
QSize size = ui.gridLayout->sizeHint();
return size;
return QSize(250,80); // TODO: No fixed size
}
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