summaryrefslogtreecommitdiff
path: root/github-contributions-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-12-24 17:56:30 -0500
committerstreetturtle <streetturtle@gmail.com>2020-12-24 17:56:30 -0500
commit10e59679dc9750866b503f9d210eb48641f9a95d (patch)
tree1eff02b455516b49c129e36ee0b4d87f1277296f /github-contributions-widget
parent5909d10c979a293156f0591bff9bdceb3b018111 (diff)
[github-contributions] dirty quick fix
Diffstat (limited to 'github-contributions-widget')
-rw-r--r--github-contributions-widget/README.md2
-rw-r--r--github-contributions-widget/github-contributions-widget.lua5
2 files changed, 5 insertions, 2 deletions
diff --git a/github-contributions-widget/README.md b/github-contributions-widget/README.md
index 7d02008..150bc0d 100644
--- a/github-contributions-widget/README.md
+++ b/github-contributions-widget/README.md
@@ -25,6 +25,8 @@ _Note:_ widget height is 21px (7 rows of 3x3 cells). So it would look nice on th
### Themes
+Themes don't work for the moment due to changes in the API the widget relies upon;
+
Following themes are available:
| Theme name | Preview |
diff --git a/github-contributions-widget/github-contributions-widget.lua b/github-contributions-widget/github-contributions-widget.lua
index 5a45fcb..ea10f85 100644
--- a/github-contributions-widget/github-contributions-widget.lua
+++ b/github-contributions-widget/github-contributions-widget.lua
@@ -50,7 +50,7 @@ local function worker(user_args)
if with_border == nil then with_border = true end
local function hex2rgb(hex)
- if color_of_empty_cells ~= nil and hex == widget_themes[theme]['color_calendar_graph_day_bg'] then
+ if color_of_empty_cells ~= nil and hex == '#ebedf0' then
hex = color_of_empty_cells
end
hex = tostring(hex):gsub('#','')
@@ -88,7 +88,8 @@ local function worker(user_args)
table.insert(row, col)
col = {layout = wibox.layout.fixed.vertical}
end
- table.insert(col, get_square(widget_themes[theme][colors:match('var%(%-%-(.*)%)'):gsub('-', '_')]))
+ --table.insert(col, get_square(widget_themes[theme][colors:match('var%(%-%-(.*)%)'):gsub('-', '_')]))
+ table.insert(col, get_square(colors))
a = a + 1
end
github_contributions_widget:setup(