110:82e44ab02b5a
Anton Shestakov <av6@dwimlabs.net>, Thu, 07 Apr 2016 22:29:56 +0800
css: change default background color of remote video feeds to a darker gray

next change 111:b2e3a00a9691
previous change 87:8fcb4b1f8611

coffee/sidebar.coffee

Permissions: -rw-r--r--

Other formats: Feeds:
class window.Tram.SidebarApp extends Backbone.View
colors: Tram.colors.show
initialize: ->
@render()
getPipColor: (show) =>
"background: #{ @colors[show] || @colors['default'] };"
minify: =>
minified = not @model.get('sidebar/minified')
@model.set('sidebar/minified', minified)
@$el.parent().toggleClass('mini', minified)
show: (event) =>
$btn = $(event.currentTarget)
show = $btn.attr('data-show')
status = $btn.text().trim()
@model.trigger('show', show, status)
disconnect: =>
@model.trigger('disconnect')
render: (model) ->
@rivet = rivets.bind(@el, model: @model, view: this)
@
remove: ->
@rivet.unbind()
super