forked from cyl0/ModernX
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
Function from mpv's osc.lua
https://github.com/mpv-player/mpv/blob/master/player/lua/osc.lua#L104-L106
So that in modernx.conf
it would allow hex:
seekbarfg_color="be4d25"
Usage in modernx.lua
:
local function osc_color_convert(color)
return color:sub(6,7) .. color:sub(4,5) .. color:sub(2,3)
end
In local osc_styles = {
, use the function:
SeekbarFg = "{\\blur1\\bord1\\1c&H" .. osc_color_convert(user_opts.seekbarfg_color) .. "&}",
The function should be used in all user_opts
color options, then adjusting the default values to hex.
Side note:
Excellent fork, thank you for all the work. Just discovered it yesterday and I'm enjoying it very much.
Keith94
Metadata
Metadata
Assignees
Labels
No labels