-th.info {
- background-color : #99FF99;
+div.tab {
+
+ border-style : solid;
+ border-width : 1px;
+ width : 100%
}
-th.key {
- background-color : #99CCFF;
+div.info {
+ font-weight : bold;
+ text-align : center;
+
+ text-shadow : black 5px 5px 10px;
+ background-color : #99CCFF;
+
+ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f7ffff), to(#dfffff));
+
+ padding-bottom: 8px;
+ padding-left: 10px;
+ padding-right: 10px;
+ padding-top: 8px;
+
+
+
+}
+
+div.key {
+ font-weight : bold;
+ text-align : center;
+ text-shadow : black 5px 5px 10px;
+ /*margin : 2px 2px 2px 2px; */
+ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#dfffff), to(#fffcca));
+ padding-bottom: 8px;
+ padding-left: 10px;
+ padding-right: 10px;
+ padding-top: 8px;
+}
+
+div.cell {
+ /*border-style : solid;
+ border-width : thin;*/
+ /*margin : 2px 2px 2px 2px;*/
+ background: -webkit-gradient(linear, 0% 0%, 0% 150%, from(#fffcca), to(#FFFFFF));
}
span.i {
void HomeWidget::paintEvent(QPaintEvent *event) {
//custom painting of rounded corners
QPainter p(this);
- p.setBrush(QColor(0, 0, 0, 255));
+
+ p.setBrush(palette().background());
p.setPen(Qt::NoPen);
newIcon.addPixmap(p);
- p.setMask(p.createHeuristicMask());
- /* #ifdef Q_WS_MAEMO_5
- QPainter painter(&p);
- QColor c = palette().background().color();
- // c.setAlpha(192);
- painter.fillRect(p.rect(), c);
+ #ifdef Q_WS_MAEMO_5
+ QImage img = p.toImage();
+
+ for(int i=0; i < img.width(); i++) {
+ for(int j=0; j < img.height(); j++) {
+ QColor c = img.pixel(i,j);
+ if(c != QColor(0,0,0,255)) {
+ c.setRed(c.red()/2);
+ c.setGreen(c.green()/2);
+ c.setBlue(c.blue()/2);
+ img.setPixel(i, j, c.rgb());
+ }
+ }
+ }
+ p = p.fromImage(img);
newIcon.addPixmap(p, QIcon::Disabled, QIcon::Off);
- #endif*/
+ #endif
return newIcon;
}
+void SearchBarWidget::setFocus() {
+ searchWordLineEdit->setFocus();
+}
+
void SearchBarWidget::initializeUI() {
#ifdef Q_WS_MAEMO_5
clearSearchWordToolButton->setMaximumSize(
clearSearchWordToolButton->sizeHint().height()/2,
clearSearchWordToolButton->sizeHint().height()/2);
- lineEditLayout->setContentsMargins(0,0,10,0);
+ lineEditLayout->setContentsMargins(0,0,15,0);
#else
clearSearchWordToolButton->setIcon(QIcon::fromTheme("edit-clear"));
clearSearchWordToolButton->setMinimumSize(