forked from openlp/openlp
Fix the problem with the Library/Media Manager icons not showing up.
This commit is contained in:
parent
7acfe1dbfd
commit
79934596ac
@ -54,7 +54,7 @@ class MediaDockManager(object):
|
|||||||
match = True
|
match = True
|
||||||
break
|
break
|
||||||
if not match:
|
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):
|
def remove_dock(self, media_item):
|
||||||
"""
|
"""
|
||||||
|
@ -52,19 +52,18 @@ from openlp.core.ui.lib.mediadockmanager import MediaDockManager
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
MEDIA_MANAGER_STYLE = """
|
MEDIA_MANAGER_STYLE = """
|
||||||
QToolBox {
|
::tab {
|
||||||
padding-bottom: 2px;
|
|
||||||
}
|
|
||||||
QToolBox::tab {
|
|
||||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
||||||
stop: 0 palette(button), stop: 1.0 palette(mid));
|
stop: 0 palette(button), stop: 1.0 palette(mid));
|
||||||
border: 1px solid 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,
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
||||||
stop: 0 palette(light), stop: 1.0 palette(button));
|
stop: 0 palette(light), stop: 1.0 palette(button));
|
||||||
border: 1px solid palette(mid);
|
border: 1px solid palette(highlight);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user