code: def accel_toggle_transparency(self, *args):
          
          self.transparency_toggled = not self.transparency_toggled
          self.settings.styleBackground.triggerOnChangedValue(
              self.settings.styleBackground, 'transparency'
          )
          return True
docs: Callback to toggle transparency.