← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~raoul-snyman/openlp/uifixes into lp:openlp

 

Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/uifixes into lp:openlp.

    Requested reviews:
    OpenLP Core (openlp-core)

-- 
https://code.launchpad.net/~raoul-snyman/openlp/uifixes/+merge/13530
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp.pyw'
--- openlp.pyw	2009-10-14 16:27:46 +0000
+++ openlp.pyw	2009-10-17 22:40:23 +0000
@@ -23,6 +23,7 @@
 # Temple Place, Suite 330, Boston, MA 02111-1307 USA                          #
 ###############################################################################
 
+import os
 import sys
 import logging
 
@@ -37,6 +38,19 @@
 
 log = logging.getLogger()
 
+application_stylesheet = u"""
+QMainWindow::separator
+{
+  border: none;
+}
+
+QDockWidget::title
+{
+  border: none;
+  padding-left: 2px;
+}
+"""
+
 class OpenLP(QtGui.QApplication):
     """
     The core application class. This class inherits from Qt's QApplication
@@ -60,6 +74,8 @@
             QtCore.SIGNAL(u'process_events'), self.processEvents)
         self.setApplicationName(u'OpenLP')
         self.setApplicationVersion(applicationVersion)
+        if os.name == u'nt':
+            self.setStyleSheet(application_stylesheet)
         show_splash = str_to_bool(ConfigHelper.get_registry().get_value(
             u'general', u'show splash', True))
         if show_splash:

=== modified file 'openlp/core/ui/slidecontroller.py'
--- openlp/core/ui/slidecontroller.py	2009-10-17 19:06:06 +0000
+++ openlp/core/ui/slidecontroller.py	2009-10-17 22:40:23 +0000
@@ -77,13 +77,22 @@
         self.timer_id = 0
         self.commandItem = None
         self.Panel = QtGui.QWidget(parent.ControlSplitter)
-        self.Splitter = QtGui.QSplitter(self.Panel)
-        self.Splitter.setOrientation(QtCore.Qt.Vertical)
         # Layout for holding panel
         self.PanelLayout = QtGui.QVBoxLayout(self.Panel)
-        self.PanelLayout.addWidget(self.Splitter)
         self.PanelLayout.setSpacing(0)
         self.PanelLayout.setMargin(0)
+        # Type label for the top of the slide controller
+        self.TypeLabel = QtGui.QLabel(self.Panel)
+        if self.isLive:
+            self.TypeLabel.setText(u'<strong>%s</strong>' % translate(u'SlideController', u'Live'))
+        else:
+            self.TypeLabel.setText(u'<strong>%s</strong>' % translate(u'SlideController', u'Preview'))
+        self.TypeLabel.setAlignment(QtCore.Qt.AlignCenter)
+        self.PanelLayout.addWidget(self.TypeLabel)
+        # Splitter
+        self.Splitter = QtGui.QSplitter(self.Panel)
+        self.Splitter.setOrientation(QtCore.Qt.Vertical)
+        self.PanelLayout.addWidget(self.Splitter)
         # Actual controller section
         self.Controller = QtGui.QWidget(self.Splitter)
         self.Controller.setGeometry(QtCore.QRect(0, 0, 100, 536))


Follow ups