summaryrefslogtreecommitdiff
path: root/inbox_for_todoist.widget/index.coffee
diff options
context:
space:
mode:
authorBenjamin Chausse <ChausseBenjamin@users.noreply.github.com>2018-10-03 00:17:38 -0400
committerBenjamin Chausse <ChausseBenjamin@users.noreply.github.com>2018-10-03 00:17:38 -0400
commit8916fac827112ff42142be717a0a92003a8a2bc6 (patch)
treedcc10f9dd806e76c5972438d337ec1df7b66e65a /inbox_for_todoist.widget/index.coffee
parentba5a556e71b735b5458f2bedadf0fe95c5e1538b (diff)
Updated to match Ubersicht Requirements
Diffstat (limited to 'inbox_for_todoist.widget/index.coffee')
-rwxr-xr-xinbox_for_todoist.widget/index.coffee45
1 files changed, 45 insertions, 0 deletions
diff --git a/inbox_for_todoist.widget/index.coffee b/inbox_for_todoist.widget/index.coffee
new file mode 100755
index 0000000..b571976
--- /dev/null
+++ b/inbox_for_todoist.widget/index.coffee
@@ -0,0 +1,45 @@
+# -*-coding:utf-8 -*
+
+command: ". todoist/run.sh"
+
+refreshFrequency: 1000#*60#*5#*2#*2#*3#*12
+
+style: """
+ top: 245px
+ right: 0px
+ width: 240px
+ height: 600px
+ margin-left: -(@width / 2)
+ overflow: hidden
+ .content
+ color: #F2F2F2
+ margin-left: 7px
+ font-size: 16px
+ font-family: Avenir-Light
+ text-align: left
+ .title
+ color: #F2F2F2
+ font-size: 24px
+ font-family: Avenir-Book
+ text-align: center
+ bg-blur = 10px
+ .bg-slice
+ position: absolute
+ top: -(bg-blur)
+ left: -(bg-blur)
+ width: 100% + 2*bg-blur
+ height: 100% + 2*bg-blur
+ -webkit-filter: blur(bg-blur)
+ .mini
+ font-size: 2px
+ line-height: 0%;
+"""
+
+render: (output) -> """
+ <canvas class='bg-slice'></canvas>
+ <div class='title'>Todoist Inbox</div>
+ <div class='content'>#{output}</div>
+"""
+
+afterRender: (domEl) ->
+ uebersicht.makeBgSlice(el) for el in $(domEl).find '.bg-slice'