Fix the problem with the Library/Media Manager icons not showing up.

This commit is contained in:
Raoul Snyman 2016-12-13 00:14:45 +02:00
parent 7acfe1dbfd
commit 79934596ac
2 changed files with 7 additions and 8 deletions

View File

@ -54,7 +54,7 @@ class MediaDockManager(object):
match = True
break
if not match:
self.media_dock.addItem(media_item, visible_title['title'])
self.media_dock.addItem(media_item, media_item.plugin.icon, visible_title['title'])
def remove_dock(self, media_item):
"""

View File

@ -52,19 +52,18 @@ from openlp.core.ui.lib.mediadockmanager import MediaDockManager
log = logging.getLogger(__name__)
MEDIA_MANAGER_STYLE = """
QToolBox {
padding-bottom: 2px;
}
QToolBox::tab {
::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 palette(button), stop: 1.0 palette(mid));
border: 1px solid palette(mid);
border-radius: 3px;
margin-top: 0;
margin-bottom: 0;
text-align: left;
}
QToolBox::tab:selected {
::tab:selected {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 palette(light), stop: 1.0 palette(button));
border: 1px solid palette(mid);
border: 1px solid palette(highlight);
font-weight: bold;
}
"""