Added new style, fixed some bugs in google plugin dialog and dict manager widget
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Thu, 9 Sep 2010 06:55:01 +0000 (08:55 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Thu, 9 Sep 2010 06:55:01 +0000 (08:55 +0200)
data/xsl/style.css
src/mdictionary/gui/DictManagerWidget.cpp
src/plugins/google/GoogleDialog.cpp

index a10d5e8..74f0061 100644 (file)
@@ -1,75 +1,58 @@
-div.tab {
-       
-       border-style            : solid;
-       border-width            : 1px;
-       width                   : 100%
+body {
+       background-color: #000000
 }
+div.tab { 
+    border-style            : solid;
+    border-width            : 1px;
+    -webkit-box-reflect:below 5px -webkit-gradient(linear, 0% 0%, 0% 180%, from(transparent), color-stop(0.3, transparent), to(white));
+} 
 
 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));
+background: -webkit-gradient(
+    linear,
+    left top,
+    left bottom,
+    color-stop(0.05, rgb(88,190,245)),
+    color-stop(0.85, rgb(0,49,61))
+);
+       /*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-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));
-
-div.tab {
+       background: -webkit-gradient(
+    linear,
+    left bottom,
+    left top,
+    color-stop(0.03, rgb(175,247,237)),
+    color-stop(0.44, rgb(28,176,230)),
+    color-stop(1, rgb(0,48,61)));
        
-       border-style            : solid;
-       border-width            : thin;
-       width                   : 100%
-}
-
-div.info {
-        font-weight            : bold;
-        text-align             : center;
-        border-style           : solid;
-        border-width           : thin;
-        margin                 : 2px 2px 2px 2px;                 
-       background-color       : #99FF99;
-}
-
-div.key {
-       font-weight             : bold;
-       text-align              : center;
-       border-style            : solid;
-       border-width            : thin;
-       margin                  : 2px 2px 2px 2px;   
-       background-color        : #99CCFF; 
 }
 
 div.cell {
-       border-style            : solid;
-       border-width            : thin;
-       margin                  : 2px 2px 2px 2px;
+
+       background: -webkit-gradient(
+    linear,
+    left top,
+    left bottom,
+    color-stop(0.03, rgb(175,247,237)),
+    color-stop(0.52, rgb(242,255,229)));
 }
 
 span.i {
@@ -81,7 +64,7 @@ span.b {
 }
 
 span.u {
-            text-decoration    : underline;
+       text-decoration    : underline;
 }
 
 
index c9028db..6727484 100644 (file)
@@ -180,10 +180,6 @@ void DictManagerWidget::addNewDictButtonClicked() {
    CommonDictInterface* selectedPlugin =
            DictTypeSelectDialog::addNewDict(guiInterface->getPlugins(),this);
    if(selectedPlugin) {
-           DictTypeSelectDialog::addNewDict(
-                   guiInterface->getPlugins(),
-                   this->parentWidget());
-
        Settings* settings =
                selectedPlugin->dictDialog()->addNewDictionary(this->parentWidget());
 
index a8dd8ab..a7b83ff 100644 (file)
@@ -95,7 +95,8 @@ void GoogleDialog::initializeUI() {
 
 
     #ifdef Q_WS_MAEMO_5
-        connectInfoLabel = new QLabel(tr("Google plugin makes use of Internet "                                         "connection, so it may cost You."));
+        connectInfoLabel = new QLabel(tr("Google plugin makes use of Internet "
+                                         "connection, so it may cost You."));
         connectInfoLabel->setWordWrap(true);
 
         verticalLayout->addWidget(connectInfoLabel);
@@ -155,13 +156,13 @@ void GoogleDialog::langToChanged(int index) {
 
 void GoogleDialog::changeLangButtonClicked() {
     int tempIndexTo=langToComboBox->currentIndex();
-    QString tempLangTo=_langTo;
+    //QString tempLangTo=_langTo;
 
     langToComboBox->setCurrentIndex(langFromComboBox->currentIndex());
     langFromComboBox->setCurrentIndex(tempIndexTo);
 
-    _langTo=_langFrom;
-    _langFrom=tempLangTo;
+    //_langTo=_langFrom;
+    //_langFrom = tempLangTo;
 }
 
 void GoogleDialog::accept() {