[github-contributions] dirty quick fix
This commit is contained in:
parent
5909d10c97
commit
10e59679dc
|
@ -25,6 +25,8 @@ _Note:_ widget height is 21px (7 rows of 3x3 cells). So it would look nice on th
|
||||||
|
|
||||||
### Themes
|
### Themes
|
||||||
|
|
||||||
|
Themes don't work for the moment due to changes in the API the widget relies upon;
|
||||||
|
|
||||||
Following themes are available:
|
Following themes are available:
|
||||||
|
|
||||||
| Theme name | Preview |
|
| Theme name | Preview |
|
||||||
|
|
|
@ -50,7 +50,7 @@ local function worker(user_args)
|
||||||
if with_border == nil then with_border = true end
|
if with_border == nil then with_border = true end
|
||||||
|
|
||||||
local function hex2rgb(hex)
|
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
|
hex = color_of_empty_cells
|
||||||
end
|
end
|
||||||
hex = tostring(hex):gsub('#','')
|
hex = tostring(hex):gsub('#','')
|
||||||
|
@ -88,7 +88,8 @@ local function worker(user_args)
|
||||||
table.insert(row, col)
|
table.insert(row, col)
|
||||||
col = {layout = wibox.layout.fixed.vertical}
|
col = {layout = wibox.layout.fixed.vertical}
|
||||||
end
|
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
|
a = a + 1
|
||||||
end
|
end
|
||||||
github_contributions_widget:setup(
|
github_contributions_widget:setup(
|
||||||
|
|
Loading…
Reference in New Issue