Log stylesheets

This commit is contained in:
Florian Bruhin 2014-06-13 07:38:10 +02:00
parent efd83f40ca
commit 9b7ff910c3
2 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,7 @@ Module attributes:
from functools import partial
import qutebrowser.config.config as config
from qutebrowser.utils.log import style as logger
_colordict = None
@ -60,7 +61,9 @@ def set_register_stylesheet(obj):
obj: The object to set the stylesheet for and register.
Must have a STYLESHEET attribute.
"""
obj.setStyleSheet(get_stylesheet(obj.STYLESHEET))
qss = get_stylesheet(obj.STYLESHEET)
logger.debug("stylesheet for {}:\n{}".format(obj.__class__.__name__, qss))
obj.setStyleSheet(qss)
config.instance().changed.connect(partial(_update_stylesheet, obj))

View File

@ -69,6 +69,7 @@ keyboard = getLogger('keyboard')
downloads = getLogger('downloads')
js = getLogger('js')
qt = getLogger('qt')
style = getLogger('style')
ram_handler = None