forked from openlp/openlp
Some more UI fixes (mostly for Windows).
This commit is contained in:
parent
c4c8c36e7f
commit
13305ab6bb
14
openlp.pyw
14
openlp.pyw
|
@ -37,6 +37,19 @@ from openlp.core.utils import ConfigHelper
|
||||||
|
|
||||||
log = logging.getLogger()
|
log = logging.getLogger()
|
||||||
|
|
||||||
|
application_stylesheet = u"""
|
||||||
|
QMainWindow::separator
|
||||||
|
{
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDockWidget::title
|
||||||
|
{
|
||||||
|
border: none;
|
||||||
|
padding-left: 2px;
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
|
||||||
class OpenLP(QtGui.QApplication):
|
class OpenLP(QtGui.QApplication):
|
||||||
"""
|
"""
|
||||||
The core application class. This class inherits from Qt's QApplication
|
The core application class. This class inherits from Qt's QApplication
|
||||||
|
@ -60,6 +73,7 @@ class OpenLP(QtGui.QApplication):
|
||||||
QtCore.SIGNAL(u'process_events'), self.processEvents)
|
QtCore.SIGNAL(u'process_events'), self.processEvents)
|
||||||
self.setApplicationName(u'OpenLP')
|
self.setApplicationName(u'OpenLP')
|
||||||
self.setApplicationVersion(applicationVersion)
|
self.setApplicationVersion(applicationVersion)
|
||||||
|
self.setStyleSheet(application_stylesheet)
|
||||||
show_splash = str_to_bool(ConfigHelper.get_registry().get_value(
|
show_splash = str_to_bool(ConfigHelper.get_registry().get_value(
|
||||||
u'general', u'show splash', True))
|
u'general', u'show splash', True))
|
||||||
if show_splash:
|
if show_splash:
|
||||||
|
|
|
@ -77,13 +77,22 @@ class SlideController(QtGui.QWidget):
|
||||||
self.timer_id = 0
|
self.timer_id = 0
|
||||||
self.commandItem = None
|
self.commandItem = None
|
||||||
self.Panel = QtGui.QWidget(parent.ControlSplitter)
|
self.Panel = QtGui.QWidget(parent.ControlSplitter)
|
||||||
self.Splitter = QtGui.QSplitter(self.Panel)
|
|
||||||
self.Splitter.setOrientation(QtCore.Qt.Vertical)
|
|
||||||
# Layout for holding panel
|
# Layout for holding panel
|
||||||
self.PanelLayout = QtGui.QVBoxLayout(self.Panel)
|
self.PanelLayout = QtGui.QVBoxLayout(self.Panel)
|
||||||
self.PanelLayout.addWidget(self.Splitter)
|
|
||||||
self.PanelLayout.setSpacing(0)
|
self.PanelLayout.setSpacing(0)
|
||||||
self.PanelLayout.setMargin(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
|
# Actual controller section
|
||||||
self.Controller = QtGui.QWidget(self.Splitter)
|
self.Controller = QtGui.QWidget(self.Splitter)
|
||||||
self.Controller.setGeometry(QtCore.QRect(0, 0, 100, 536))
|
self.Controller.setGeometry(QtCore.QRect(0, 0, 100, 536))
|
||||||
|
|
Loading…
Reference in New Issue