Add icons back into the media library tabs

This commit is contained in:
Raoul Snyman 2016-12-16 22:11:24 +02:00
parent 5620e73c90
commit d47c66f833
2 changed files with 9 additions and 13 deletions

View File

@ -52,21 +52,17 @@ from openlp.core.ui.printserviceform import PrintServiceForm
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
MEDIA_MANAGER_STYLE = """ MEDIA_MANAGER_STYLE = """
QToolBox { ::tab#media_tool_box {
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: 0;
border-radius: 3px; border-radius: 2px;
} margin-bottom: 0;
QToolBox::tab:selected { margin-top: 0;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, text-align: left;
stop: 0 palette(light), stop: 1.0 palette(button));
border: 1px solid palette(mid);
font-weight: bold;
} }
/* This is here to make the tabs on KDE with the Breeze theme work */
::tab:selected {}
""" """
PROGRESSBAR_STYLE = """ PROGRESSBAR_STYLE = """

View File

@ -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):
""" """