(self)
Modify tagEdit background color
Modify tagEdit background color
Modify tagEdit background color
def updateTagsBackground(self):
    """Modify tagEdit background color"""
    nm_state_on = False
    if DISABLE_FOR_NIGHTMODE:
        try:
            from Night_Mode import nm_state_on
        except ImportError:
            pass

    if not mw._styleEditor or nm_state_on:
        return

    if TAGS_BACKGROUND:
        self.tags.setStyleSheet(
            """QLineEdit {{ background: {}; }}""".format(
                TAGS_BACKGROUND))
def updateTagsBackground ( self ) : nm_state_on = False if DISABLE_FOR_NIGHTMODE : try : from Night_Mode import nm_state_on except ImportError : pass if not mw . _styleEditor or nm_state_on : return if TAGS_BACKGROUND : self . tags . setStyleSheet ( """QLineEdit {{ background: {}; }}""" . format ( TAGS_BACKGROUND ) )