 
       $(document).on 'hidden.bs.modal', () ->
         $("body").removeClass("modal-shown")
-        feedbin.setNativeTheme()
+        feedbin.setNativeTheme(false, 40)
 
     modalScrollPosition: ->
       $('.modal').on 'scroll', (event) ->


      setTimeout ( ->
        feedbin.nativeMessage("performAction", message)
      ), 1

  nativeMessage: (name, data) ->
    if typeof(webkit) != "undefined"

    canvas.parentNode.removeChild(canvas)
    "rgba(#{data.data[0]}, #{data.data[1]}, #{data.data[2]}, #{data.data[3]})"

  setNativeTheme: (calculateOverlay = false, timeout = 10) ->
    if feedbin.native && feedbin.data && feedbin.data.theme
      message = {
        action: "titleColor"
