[PC-BSD Commits] r21533 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Fri Feb 15 07:49:25 PST 2013


Author: kenmoore
Date: 2013-02-15 15:49:25 +0000 (Fri, 15 Feb 2013)
New Revision: 21533

Modified:
   pcbsd-projects/PCDM/pcdm-gui.cpp
   pcbsd-projects/PCDM/pcdm.theme
   pcbsd-projects/PCDM/themeStruct.cpp
Log:
Enable some debugging on the theme item placement and start adjusting the default theme



Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-15 15:42:32 UTC (rev 21532)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-15 15:49:25 UTC (rev 21533)
@@ -95,7 +95,7 @@
   //Populate the Toolbar with items (starts at leftmost/topmost)
     //----Virtual Keyboard
     tmpIcon = currentTheme->itemIcon("vkeyboard");
-    if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/keyboard.png"; }
+    if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/input-keyboard.png"; }
     virtkeyboardButton = new QAction( QIcon(tmpIcon),tr("Virtual Keyboard"),this );
     toolbar->addAction(virtkeyboardButton);
     connect( virtkeyboardButton, SIGNAL(triggered()), this, SLOT(slotPushVirtKeyboard()) );
@@ -110,7 +110,7 @@
 
     //----Keyboard Layout Switcher
     tmpIcon = currentTheme->itemIcon("keyboard");
-    if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/input-keyboard.png"; }
+    if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/keyboard.png"; }
     keyboardButton = new QAction( QIcon(tmpIcon),tr("Keyboard Layout"),this );
     toolbar->addAction(keyboardButton);
     connect( keyboardButton, SIGNAL(triggered()), this, SLOT(slotChangeKeyboardLayout()) );

Modified: pcbsd-projects/PCDM/pcdm.theme
===================================================================
--- pcbsd-projects/PCDM/pcdm.theme	2013-02-15 15:42:32 UTC (rev 21532)
+++ pcbsd-projects/PCDM/pcdm.theme	2013-02-15 15:49:25 UTC (rev 21533)
@@ -71,7 +71,8 @@
 # ----------
 APP_STYLESHEET_START
 QComboBox{ font-size: 32px; }
-QGroupBox{ background-color: qlineargradient(x1: 0, x2: 0, y1: 0.5, y2: 0.5, stop: 0 lightred, stop: 1 transparent); }
-QToolBar{ background-color: qlineargradient(x1: 0, x2: 0, y1: 0.5, y2: 0.5, stop: 0 red, stop: 1 transparent); }
+QGroupBox{ background-color: qlineargradient(x1: 0, x2: 0, y1: 0.1, y2: 0.1, stop: 0 blue, stop: 1 transparent); }
+QToolBar{ background-color: qlineargradient(x1: 0, x2: 0, y1: 0.1, y2: 0.1, stop: 0 blue, stop: 1 transparent); }
 QGraphicsView{ background: white; color: black; }
+QWindow{ background-color: white; color: black; }
 APP_STYLESHEET_STOP

Modified: pcbsd-projects/PCDM/themeStruct.cpp
===================================================================
--- pcbsd-projects/PCDM/themeStruct.cpp	2013-02-15 15:42:32 UTC (rev 21532)
+++ pcbsd-projects/PCDM/themeStruct.cpp	2013-02-15 15:49:25 UTC (rev 21533)
@@ -216,6 +216,7 @@
       ret = span +1; //add 1 for the end point
     }
   }
+  qDebug() << "Theme:" << item << variable << ret;
   return ret; //catch for errors;
 }
 



More information about the Commits mailing list