diff options
author | Thomas Friese <tasmo@tasmo.de> | 2020-02-07 10:27:02 +0100 |
---|---|---|
committer | Thomas Friese <tasmo@tasmo.de> | 2020-02-07 10:27:02 +0100 |
commit | 60f74904530058bf8b1cc9a2ee3972093381b19d (patch) | |
tree | 09537fb618f42a2b2208d4ab89d60931f83c4d0a /volumearc-widget | |
parent | 8839e853df93c50ed5ff7c034915cd32a1c3e12a (diff) |
Make backgrounds theme-able
Fixes visibility on light themes
Affects widgets:
- `batteryarc`
- `brightnessarc`
- `volumearc`
- `volumebar`
Fixes #109
Diffstat (limited to 'volumearc-widget')
-rw-r--r-- | volumearc-widget/README.md | 1 | ||||
-rw-r--r-- | volumearc-widget/volumearc.lua | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/volumearc-widget/README.md b/volumearc-widget/README.md index cd0501e..58f9550 100644 --- a/volumearc-widget/README.md +++ b/volumearc-widget/README.md @@ -16,6 +16,7 @@ It is possible to customize widget by providing a table with all or some of the | Name | Default | Description | |---|---|---| | `main_color` | `beautiful.fg_normal` | Color of the arc | +| `bg_color` | `#ffffff11` | Color of the arc's background | | `mute_color` | `beautiful.fg_urgent` | Color of the arc when mute | | `path_to_icon` | /usr/share/icons/Arc/status/symbolic/audio-volume-muted-symbolic.svg | Path to the icon | | `thickness` | 2 | The arc thickness | diff --git a/volumearc-widget/volumearc.lua b/volumearc-widget/volumearc.lua index 62b18ab..33cc99c 100644 --- a/volumearc-widget/volumearc.lua +++ b/volumearc-widget/volumearc.lua @@ -28,6 +28,7 @@ local function worker(args) local args = args or {} local main_color = args.main_color or beautiful.fg_color + local bg_color = args.bg_color or '#ffffff11' local mute_color = args.mute_color or beautiful.fg_urgent local path_to_icon = args.path_to_icon or PATH_TO_ICON local thickness = args.thickness or 2 @@ -52,7 +53,7 @@ local function worker(args) start_angle = 4.71238898, -- 2pi*3/4 forced_height = height, forced_width = height, - bg = "#ffffff11", + bg = bg_color, paddings = 2, widget = wibox.container.arcchart } |