summaryrefslogtreecommitdiff
path: root/github-activity-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-11-09 10:51:37 -0500
committerstreetturtle <streetturtle@gmail.com>2020-11-09 10:51:37 -0500
commit69eff31bb789711a49c25dfdb22061abf0393227 (patch)
tree30b84c46b0adca563934dc330a1dc5c6f76f06ca /github-activity-widget
parentee008b6e5478eba7714846b49fc2141b770bdd6b (diff)
[github-activity] use feature icons
Diffstat (limited to 'github-activity-widget')
-rw-r--r--github-activity-widget/github-activity-widget.lua9
-rw-r--r--github-activity-widget/icons/alert-circle.svg1
-rw-r--r--github-activity-widget/icons/comment.svg1
-rw-r--r--github-activity-widget/icons/fork.svg1
-rw-r--r--github-activity-widget/icons/git-branch.svg1
-rw-r--r--github-activity-widget/icons/git-pull-request.svg1
-rw-r--r--github-activity-widget/icons/issue.svg1
-rw-r--r--github-activity-widget/icons/message-square.svg1
-rw-r--r--github-activity-widget/icons/pr.svg1
-rw-r--r--github-activity-widget/icons/star.svg2
10 files changed, 9 insertions, 10 deletions
diff --git a/github-activity-widget/github-activity-widget.lua b/github-activity-widget/github-activity-widget.lua
index 4af0c13..84b5320 100644
--- a/github-activity-widget/github-activity-widget.lua
+++ b/github-activity-widget/github-activity-widget.lua
@@ -83,21 +83,21 @@ local function generate_action_string(event)
if (event.type == "PullRequestEvent") then
action_string = event.action .. ' a pull request in'
link = event.pr_url
- icon = 'pr.svg'
+ icon = 'git-pull-request.svg'
elseif (event.type == "IssuesEvent") then
action_string = event.action .. ' an issue in'
link = event.issue_url
- icon = 'issue.svg'
+ icon = 'alert-circle.svg'
elseif (event.type == "IssueCommentEvent") then
action_string = event.action == 'created' and 'commented in issue' or event.action .. ' a comment in'
link = event.issue_url
- icon = 'comment.svg'
+ icon = 'message-square.svg'
elseif (event.type == "WatchEvent") then
action_string = 'starred'
icon = 'star.svg'
elseif (event.type == "ForkEvent") then
action_string = 'forked'
- icon = 'fork.svg'
+ icon = 'git-branch.svg'
elseif (event.type == "CreateEvent") then
action_string = 'created'
end
@@ -144,7 +144,6 @@ local function worker(args)
github_widget:set_icon(icon)
local rows = {
- { widget = wibox.widget.textbox },
layout = wibox.layout.fixed.vertical,
}
diff --git a/github-activity-widget/icons/alert-circle.svg b/github-activity-widget/icons/alert-circle.svg
new file mode 100644
index 0000000..1c42eaf
--- /dev/null
+++ b/github-activity-widget/icons/alert-circle.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg> \ No newline at end of file
diff --git a/github-activity-widget/icons/comment.svg b/github-activity-widget/icons/comment.svg
deleted file mode 100644
index 5cb54bf..0000000
--- a/github-activity-widget/icons/comment.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><style type="text/css"><![CDATA[.white{fill: #ffffff;}]]></style><path class="white" fill-rule="evenodd" d="M14 1H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2v3.5L7.5 11H14c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1zm0 9H7l-2 2v-2H2V2h12v8z"></path></svg> \ No newline at end of file
diff --git a/github-activity-widget/icons/fork.svg b/github-activity-widget/icons/fork.svg
deleted file mode 100644
index 4c722dc..0000000
--- a/github-activity-widget/icons/fork.svg
+++ /dev/null
@@ -1 +0,0 @@
-<?xml version="1.0" ?><svg height="1024" width="640" xmlns="http://www.w3.org/2000/svg"><style type="text/css"><![CDATA[.white{fill: #ffffff;}]]></style><path class="white" d="M512 192c-70.625 0-128 57.344-128 128 0 47.219 25.875 88.062 64 110.281V448c0 0 0 128-128 128-53.062 0-94.656 11.375-128 28.812V302.28099999999995c38.156-22.219 64-63.062 64-110.281 0-70.656-57.344-128-128-128S0 121.34400000000005 0 192c0 47.219 25.844 88.062 64 110.281V721.75C25.844 743.938 0 784.75 0 832c0 70.625 57.344 128 128 128s128-57.375 128-128c0-33.5-13.188-63.75-34.25-86.625C240.375 722.5 270.656 704 320 704c254 0 256-256 256-256v-17.719c38.125-22.219 64-63.062 64-110.281C640 249.34400000000005 582.625 192 512 192zM128 128c35.406 0 64 28.594 64 64s-28.594 64-64 64-64-28.594-64-64S92.594 128 128 128zM128 896c-35.406 0-64-28.625-64-64 0-35.312 28.594-64 64-64s64 28.688 64 64C192 867.375 163.406 896 128 896zM512 384c-35.375 0-64-28.594-64-64s28.625-64 64-64 64 28.594 64 64S547.375 384 512 384z"/></svg> \ No newline at end of file
diff --git a/github-activity-widget/icons/git-branch.svg b/github-activity-widget/icons/git-branch.svg
new file mode 100644
index 0000000..3f06c34
--- /dev/null
+++ b/github-activity-widget/icons/git-branch.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-branch"><line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path></svg> \ No newline at end of file
diff --git a/github-activity-widget/icons/git-pull-request.svg b/github-activity-widget/icons/git-pull-request.svg
new file mode 100644
index 0000000..c2e2867
--- /dev/null
+++ b/github-activity-widget/icons/git-pull-request.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-pull-request"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line></svg> \ No newline at end of file
diff --git a/github-activity-widget/icons/issue.svg b/github-activity-widget/icons/issue.svg
deleted file mode 100644
index b47543a..0000000
--- a/github-activity-widget/icons/issue.svg
+++ /dev/null
@@ -1 +0,0 @@
-<?xml version="1.0" ?><svg height="1024" width="896" xmlns="http://www.w3.org/2000/svg"><style type="text/css"><![CDATA[.white{fill: #ffffff;}]]></style><path class="white" d="M448 64C200.562 64 0 264.562 0 512c0 247.438 200.562 448 448 448 247.438 0 448-200.562 448-448C896 264.562 695.438 64 448 64zM448 832c-176.781 0-320-143.25-320-320 0-176.781 143.219-320 320-320 176.75 0 320 143.219 320 320C768 688.75 624.75 832 448 832zM384 768h128V640H384V768zM384 576h128V256H384V576z"/></svg> \ No newline at end of file
diff --git a/github-activity-widget/icons/message-square.svg b/github-activity-widget/icons/message-square.svg
new file mode 100644
index 0000000..758ba42
--- /dev/null
+++ b/github-activity-widget/icons/message-square.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg> \ No newline at end of file
diff --git a/github-activity-widget/icons/pr.svg b/github-activity-widget/icons/pr.svg
deleted file mode 100644
index 412be1a..0000000
--- a/github-activity-widget/icons/pr.svg
+++ /dev/null
@@ -1 +0,0 @@
-<?xml version="1.0" ?><svg height="1024" width="768" xmlns="http://www.w3.org/2000/svg"><style type="text/css"><![CDATA[.white{fill: #ffffff;}]]></style><path class="white" d="M128 64C57.344 64 0 121.34400000000005 0 192c0 47.219 25.906 88.062 64 110.281V721.75C25.906 743.938 0 784.75 0 832c0 70.625 57.344 128 128 128s128-57.375 128-128c0-47.25-25.844-88.062-64-110.25V302.28099999999995c38.156-22.219 64-63.062 64-110.281C256 121.34400000000005 198.656 64 128 64zM128 896c-35.312 0-64-28.625-64-64 0-35.312 28.688-64 64-64 35.406 0 64 28.688 64 64C192 867.375 163.406 896 128 896zM128 256c-35.312 0-64-28.594-64-64s28.688-64 64-64c35.406 0 64 28.594 64 64S163.406 256 128 256zM704 721.75V320c0-192.5-192-192-192-192h-64V0L256 192l192 192V256c0 0 26.688 0 64 0 56.438 0 64 64 64 64v401.75c-38.125 22.188-64 62.938-64 110.25 0 70.625 57.375 128 128 128s128-57.375 128-128C768 784.75 742.125 743.938 704 721.75zM640 896c-35.312 0-64-28.625-64-64 0-35.312 28.688-64 64-64 35.375 0 64 28.688 64 64C704 867.375 675.375 896 640 896z"/></svg> \ No newline at end of file
diff --git a/github-activity-widget/icons/star.svg b/github-activity-widget/icons/star.svg
index 7ac51ac..0a3d39e 100644
--- a/github-activity-widget/icons/star.svg
+++ b/github-activity-widget/icons/star.svg
@@ -1 +1 @@
-<?xml version="1.0" ?><svg height="1024" width="896" xmlns="http://www.w3.org/2000/svg"><style type="text/css"><![CDATA[.white{fill: #ffffff;}]]></style><path class="white" d="M896 384l-313.5-40.781L448 64 313.469 343.219 0 384l230.469 208.875L171 895.938l277-148.812 277.062 148.812L665.5 592.875 896 384z"/></svg> \ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg> \ No newline at end of file