Skip to content

Commit fe361d7

Browse files
committed
refactor: update default colors and opacity
1 parent 31c7d8d commit fe361d7

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

docs/USER_OPTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ watch-later-options-remove=osd-margin-y
145145
| windowcontrols_max_hover | `#F8BC3A` | color of maximize window controls on hover |
146146
| windowcontrols_min_hover | `#43CB44` | color of minimize window controls on hover |
147147
| title_color | `#FFFFFF` | color of the title (above seekbar) |
148-
| seekbarfg_color | `#FB8C00` | color of the seekbar progress |
149-
| seekbarbg_color | `#94754F` | color of the remaining seekbar |
150148
| seekbar_cache_color | `#918F8E` | color of the cache ranges on the seekbar |
151-
| seek_handle_color | `#94754F` | color of the seekbar handle |
149+
| seekbarfg_color | `#FB8C00` | color of the seekbar progress |
150+
| seekbarbg_color | `#6E573C` | color of the remaining seekbar |
151+
| seek_handle_color | `#6E573C` | color of the seekbar handle |
152152
| seek_handle_border_color | `#FB8C00` | inner border color drawn inside the seekbar handle |
153153
| volumebar_match_seek_color | no | match volume bar color with seekbar color (ignores `side_buttons_color`) |
154154
| time_color | `#FFFFFF` | color of the timestamps (below seekbar) |

modernz.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ windowcontrols_min_hover=#43CB44
218218
title_color=#FFFFFF
219219
# color of the cache information
220220
cache_info_color=#FFFFFF
221+
# color of the cache ranges on the seekbar
222+
seekbar_cache_color=#918F8E
221223
# color of the seekbar progress
222224
seekbarfg_color=#FB8C00
223225
# color of the remaining seekbar
224-
seekbarbg_color=#94754F
225-
# color of the cache ranges on the seekbar
226-
seekbar_cache_color=#918F8E
226+
seekbarbg_color=#6E573C
227227
# color of the seekbar handle
228-
seek_handle_color=#94754F
228+
seek_handle_color=#6E573C
229229
# inner border color drawn inside the seekbar handle
230230
seek_handle_border_color=#FB8C00
231231
# match volume bar color with seekbar color (ignores side_buttons_color)

modernz.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ local user_opts = {
140140
windowcontrols_min_hover = "#43CB44", -- color of minimize window controls on hover
141141
title_color = "#FFFFFF", -- color of the title (above seekbar)
142142
cache_info_color = "#FFFFFF", -- color of the cache information
143-
seekbarfg_color = "#FB8C00", -- color of the seekbar progress
144-
seekbarbg_color = "#94754F", -- color of the remaining seekbar
145143
seekbar_cache_color = "#918F8E", -- color of the cache ranges on the seekbar
146-
seek_handle_color = "#94754F", -- color of the seekbar handle
144+
seekbarfg_color = "#FB8C00", -- color of the seekbar progress
145+
seekbarbg_color = "#6E573C", -- color of the remaining seekbar
146+
seek_handle_color = "#6E573C", -- color of the seekbar handle
147147
seek_handle_border_color = "#FB8C00", -- inner border color drawn inside the seekbar handle (set to "" to disable)
148148
volumebar_match_seek_color = false, -- match volume bar color with seekbar color (ignores side_buttons_color)
149149
time_color = "#FFFFFF", -- color of the timestamps (below seekbar)
@@ -1424,7 +1424,7 @@ local function draw_seekbar_nibbles(element, elem_ass)
14241424

14251425
if slider_lo.nibbles_style == "gap" and element.name == "seekbar" then
14261426
local radius = slider_lo.radius
1427-
local bg_alpha = 0
1427+
local bg_alpha = 64
14281428
elem_ass:draw_stop()
14291429
elem_ass:merge(element.style_ass)
14301430
ass_append_alpha(elem_ass, element.layout.alpha, bg_alpha)
@@ -2187,7 +2187,7 @@ layouts["modern"] = function ()
21872187
lo.layer = 15
21882188
lo.style = osc_styles.seekbar_bg
21892189
lo.box.radius = user_opts.slider_rounded_corners and seekbar_height_style.radius or 0
2190-
lo.alpha[1] = 0
2190+
lo.alpha[1] = 64
21912191

21922192
lo = add_layout("seekbar")
21932193
local seekbar_h = 18
@@ -2319,7 +2319,7 @@ layouts["modern"] = function ()
23192319
lo = add_layout("volumebarbg")
23202320
lo.geometry = {x = start_x, y = refY - (user_opts.osc_height / 2), an = 4, w = 55, h = 4}
23212321
lo.layer = 15
2322-
lo.alpha[1] = 0
2322+
lo.alpha[1] = 64
23232323
lo.style = user_opts.volumebar_match_seek_color and osc_styles.seekbar_bg or osc_styles.volumebar_bg
23242324
lo.box.radius = user_opts.slider_rounded_corners and 2 or 0
23252325

@@ -2455,7 +2455,7 @@ layouts["modern-compact"] = function ()
24552455
lo.layer = 15
24562456
lo.style = osc_styles.seekbar_bg
24572457
lo.box.radius = user_opts.slider_rounded_corners and seekbar_height_style.radius or 0
2458-
lo.alpha[1] = 0
2458+
lo.alpha[1] = 64
24592459

24602460
lo = add_layout("seekbar")
24612461
local seekbar_h = 18
@@ -2585,7 +2585,7 @@ layouts["modern-compact"] = function ()
25852585
lo = add_layout("volumebarbg")
25862586
lo.geometry = {x = start_x, y = refY - (user_opts.osc_height / 2), an = 4, w = 55, h = 4}
25872587
lo.layer = 15
2588-
lo.alpha[1] = 0
2588+
lo.alpha[1] = 64
25892589
lo.style = user_opts.volumebar_match_seek_color and osc_styles.seekbar_bg or osc_styles.volumebar_bg
25902590
lo.box.radius = user_opts.slider_rounded_corners and 2 or 0
25912591

@@ -2709,7 +2709,7 @@ layouts["modern-image"] = function ()
27092709
lo = add_layout("zoom_control_bg")
27102710
lo.geometry = {x = zx + 25, y = refY - (user_opts.osc_height / 2), an = 4, w = 80, h = 4}
27112711
lo.layer = 15
2712-
lo.alpha[1] = 0
2712+
lo.alpha[1] = 64
27132713
lo.style = osc_styles.volumebar_bg
27142714
lo.box.radius = user_opts.slider_rounded_corners and 2 or 0
27152715

0 commit comments

Comments
 (0)