From 69eff31bb789711a49c25dfdb22061abf0393227 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Mon, 9 Nov 2020 10:51:37 -0500 Subject: [PATCH] [github-activity] use feature icons --- github-activity-widget/github-activity-widget.lua | 9 ++++----- github-activity-widget/icons/alert-circle.svg | 1 + github-activity-widget/icons/comment.svg | 1 - github-activity-widget/icons/fork.svg | 1 - github-activity-widget/icons/git-branch.svg | 1 + github-activity-widget/icons/git-pull-request.svg | 1 + github-activity-widget/icons/issue.svg | 1 - github-activity-widget/icons/message-square.svg | 1 + github-activity-widget/icons/pr.svg | 1 - github-activity-widget/icons/star.svg | 2 +- 10 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 github-activity-widget/icons/alert-circle.svg delete mode 100644 github-activity-widget/icons/comment.svg delete mode 100644 github-activity-widget/icons/fork.svg create mode 100644 github-activity-widget/icons/git-branch.svg create mode 100644 github-activity-widget/icons/git-pull-request.svg delete mode 100644 github-activity-widget/icons/issue.svg create mode 100644 github-activity-widget/icons/message-square.svg delete mode 100644 github-activity-widget/icons/pr.svg 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 @@ + \ 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 @@ - \ 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 @@ - \ 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 @@ + \ 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 @@ + \ 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 @@ - \ 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 @@ + \ 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 @@ - \ 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 @@ - \ No newline at end of file + \ No newline at end of file