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

svn at pcbsd.org svn at pcbsd.org
Fri Mar 1 10:52:04 PST 2013


Author: kenmoore
Date: 2013-03-01 18:52:04 +0000 (Fri, 01 Mar 2013)
New Revision: 21685

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
   pcbsd-projects/PCDM/pcdm-xprocess.cpp
   pcbsd-projects/PCDM/pcdm.theme
Log:
Now clean up the sizing for the list widget (minimum vertical) and adjust the default theme file. Also fix a bug with the LANG variable, always make sure it is *.UTF-8 unless otherwise found.



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-03-01 18:37:46 UTC (rev 21684)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-03-01 18:52:04 UTC (rev 21685)
@@ -30,6 +30,7 @@
   listUserBig = new QListWidget;
   	listUserBig->setFocusPolicy(Qt::StrongFocus);
   	listUserBig->setSelectionMode(QAbstractItemView::SingleSelection);
+  	listUserBig->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
   listUsers = new QComboBox;
   	listUsers->setFocusPolicy(Qt::StrongFocus);
   linePassword = new QLineEdit;

Modified: pcbsd-projects/PCDM/pcdm-xprocess.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-xprocess.cpp	2013-03-01 18:37:46 UTC (rev 21684)
+++ pcbsd-projects/PCDM/pcdm-xprocess.cpp	2013-03-01 18:52:04 UTC (rev 21685)
@@ -66,6 +66,7 @@
   environ.insert("USERNAME",xuser); // Username
   environ.insert("PATH",environ.value("PATH")+":"+xhome+"/bin"); // Append the user's home dir to the path
   if(!environ.value("MM_CHARSET").isEmpty()){ langCode.append( "."+environ.value("MM_CHARSET") ); }
+  else{ langCode.append(".UTF-8"); }
   environ.insert("LANG",langCode); //Set the proper localized language
   environ.insert("MAIL","/var/mail/"+xuser); //Set the mail variable
   environ.insert("GROUP",xuser); //Set the proper group id

Modified: pcbsd-projects/PCDM/pcdm.theme
===================================================================
--- pcbsd-projects/PCDM/pcdm.theme	2013-03-01 18:37:46 UTC (rev 21684)
+++ pcbsd-projects/PCDM/pcdm.theme	2013-03-01 18:52:04 UTC (rev 21685)
@@ -64,16 +64,23 @@
 # --- Main Widgets to Customize ---
 # Toolbar: QToolBar
 # All buttons: QToolButton
-# Login Widget User List: QComboBox
+# Login Widget User List: QComboBox & QListWidget
 # Login Widget Password Entry: QLineEdit
 # Login Widget Background/Frame: QGroupBox
 # Desktop Environment Icon Display: QGraphicsView
 # Desktop Environment Selector Buttons: QPushButton
+# Header Image: QLabel
 # ----------
 APP_STYLESHEET_START
 QToolBar{ background-color: rgba(253,253,255,100); }
 QWindow{ background-color: white; color: black; }
-QComboBox{font-size: 26px}
+QListWidget{
+	font-size: 21px;
+	color: black;
+	background: rgba(253,253,253,180);
+	border: 1px solid grey;
+	border-radius: 5px;
+}
 QToolButton{ background-color: transparent; border: none; }
 QToolButton:hover{ background-color: transparent; border: 1px solid grey; border-radius: 5px; }
 QGroupBox{ 
@@ -93,6 +100,7 @@
 	border:1px solid grey;
 	border-radius: 5px;
 }
+QListWidget
 QGraphicsView{ 
 	background: rgba(253,253,253,180); 
 	color: black; 
@@ -102,5 +110,6 @@
 QPushButton{ background-color: transparent; border: none; }
 QPushButton:hover{ background-color: transparent; border: 1px solid grey; border-radius: 5px; }
 QMessageBox{}
+QWidget{}
 
 APP_STYLESHEET_STOP



More information about the Commits mailing list