@@ -20,8 +20,6 @@ local user_opts = {
20
20
showwindowed = true , -- show OSC when windowed?
21
21
showfullscreen = true , -- show OSC when fullscreen?
22
22
greenandgrumpy = false , -- disable santa hat in December
23
- icon_style = " fluent" , -- choose icon style. fluent, material
24
- -- Requires font files provided in repo in /fonts
25
23
26
24
-- Colors
27
25
osc_color = " #000000" , -- accent of the OSC and the title bar
@@ -172,80 +170,42 @@ local osc_param = { -- calculated by osc_init()
172
170
areas = {},
173
171
}
174
172
173
+
175
174
local icons = {
176
- fluent = {
177
- play = " \238\166\143 " ,
178
- pause = " \238\163\140 " ,
179
- replay = " \238\189\191 " ,
180
- previous = " \239\152\167 " ,
181
- next = " \239\149\168 " ,
182
- rewind = " \238\168\158 " ,
183
- forward = " \238\152\135 " ,
184
-
185
- audio = ' \238\175\139 ' ,
186
- subtitle = ' \238\175\141 ' ,
187
- playlist = " \238\161\159 " ,
188
- volume_mute = ' \238\173\138 ' ,
189
- volume_quiet = ' \238\172\184 ' ,
190
- volume_low = ' \238\172\189 ' ,
191
- volume_high = ' \238\173\130 ' ,
192
-
193
- download = " \239\133\144 " ,
194
- downloading = " \239\140\174 " ,
195
- screenshot = " \238\169\183 " ,
196
- ontop_on = " \238\165\190 " ,
197
- ontop_off = " \238\166\129 " ,
198
- loop_off = " \239\133\178 " ,
199
- loop_on = " \239\133\181 " ,
200
- info = " \239\146\164 " ,
201
- fullscreen = " \239\133\160 " ,
202
- fullscreen_exit = " \239\133\166 " ,
203
-
204
- jumpicons = {
205
- [5 ] = {" \238\171\186 " , " \238\171\187 " },
206
- [10 ] = {" \238\171\188 " , " \238\172\129 " },
207
- [30 ] = {" \238\172\133 " , " \238\172\134 " },
208
- default = {" \238\172\138 " , " \238\172\138 " }, -- second icon is mirrored in layout()
209
- }
210
- },
211
- material = {
212
- play = " \239\142\170 " ,
213
- pause = " \239\142\167 " ,
214
- replay = " \239\142\178 " ,
215
- previous = " \239\142\181 " ,
216
- next = " \239\142\180 " ,
217
- rewind = " \239\142\160 " ,
218
- forward = " \239\142\159 " ,
219
-
220
- audio = " \239\142\183 " ,
221
- subtitle = " \239\140\164 " ,
222
- playlist = " \239\137\135 " ,
223
- volume_mute = " \239\142\187 " ,
224
- volume_quiet = " \239\142\185 " ,
225
- volume_low = " \239\142\185 " ,
226
- volume_high = " \239\142\188 " ,
227
-
228
- download = " \239\136\160 " ,
229
- downloading = " \239\134\185 " ,
230
- screenshot = " \239\135\168 " ,
231
- ontop_on = " \239\142\150 " ,
232
- ontop_off = " \239\142\149 " ,
233
- loop_off = " \239\134\181 " ,
234
- loop_on = " \239\134\183 " ,
235
- info = " \239\135\183 " ,
236
- fullscreen = " \239\133\173 " ,
237
- fullscreen_exit = " \239\133\172 " ,
238
-
239
- jumpicons = {
240
- [5 ] = {" \239\142\177 " , " \239\142\163 " },
241
- [10 ] = {" \239\142\175 " , " \239\142\161 " },
242
- [30 ] = {" \239\142\176 " , " \239\142\162 " },
243
- default = {" \239\142\178 " , " \239\142\178 " }, -- second icon is mirrored in layout()
244
- }
175
+ play = " \238\166\143 " ,
176
+ pause = " \238\163\140 " ,
177
+ replay = " \238\189\191 " ,
178
+ previous = " \239\152\167 " ,
179
+ next = " \239\149\168 " ,
180
+ rewind = " \238\168\158 " ,
181
+ forward = " \238\152\135 " ,
182
+
183
+ audio = ' \238\175\139 ' ,
184
+ subtitle = ' \238\175\141 ' ,
185
+ playlist = " \238\161\159 " ,
186
+ volume_mute = ' \238\173\138 ' ,
187
+ volume_quiet = ' \238\172\184 ' ,
188
+ volume_low = ' \238\172\189 ' ,
189
+ volume_high = ' \238\173\130 ' ,
190
+
191
+ download = " \239\133\144 " ,
192
+ downloading = " \239\140\174 " ,
193
+ screenshot = " \238\156\153 " ,
194
+ ontop_on = " \238\165\190 " ,
195
+ ontop_off = " \238\166\129 " ,
196
+ loop_off = " \239\133\178 " ,
197
+ loop_on = " \239\133\181 " ,
198
+ info = " \239\146\164 " ,
199
+ fullscreen = " \239\133\160 " ,
200
+ fullscreen_exit = " \239\133\166 " ,
201
+
202
+ jumpicons = {
203
+ [5 ] = {" \238\171\186 " , " \238\171\187 " },
204
+ [10 ] = {" \238\171\188 " , " \238\172\129 " },
205
+ [30 ] = {" \238\172\133 " , " \238\172\134 " },
206
+ default = {" \238\172\138 " , " \238\172\138 " }, -- second icon is mirrored in layout()
245
207
}
246
-
247
208
}
248
- icons = user_opts .icon_style == " fluent" and icons .fluent or icons .material
249
209
250
210
--- Localization
251
211
local language = {
@@ -315,8 +275,7 @@ local sub_track_count = 0
315
275
local window_control_box_width = 138
316
276
local is_december = os.date (" *t" ).month == 12
317
277
local UNICODE_MINUS = string.char (0xe2 , 0x88 , 0x92 ) -- UTF-8 for U+2212 MINUS SIGN
318
- local iconfont = user_opts .icon_style == " fluent" and " fluent-system-icons" or " Material-Design-Iconic-Round"
319
- local iconfont_size = user_opts .icon_style == " fluent" and 30 or 36
278
+ local iconfont = " fluent-system-icons"
320
279
321
280
local function osc_color_convert (color )
322
281
return color :sub (6 ,7 ) .. color :sub (4 ,5 ) .. color :sub (2 ,3 )
@@ -331,7 +290,7 @@ local function set_osc_styles()
331
290
SeekbarFg = " {\\ blur1\\ bord1\\ 1c&H" .. osc_color_convert (user_opts .seekbarfg_color ) .. " &}" ,
332
291
VolumebarBg = " {\\ blur0\\ bord0\\ 1c&H999999&}" ,
333
292
VolumebarFg = " {\\ blur1\\ bord1\\ 1c&H" .. osc_color_convert (user_opts .side_buttons_color ) .. " &}" ,
334
- Ctrl1 = " {\\ blur0\\ bord0\\ 1c&H" .. osc_color_convert (user_opts .playpause_color ) .. " &\\ 3c&HFFFFFF&\\ fs " .. iconfont_size .. " \\ fn" .. iconfont .. " }" ,
293
+ Ctrl1 = " {\\ blur0\\ bord0\\ 1c&H" .. osc_color_convert (user_opts .playpause_color ) .. " &\\ 3c&HFFFFFF&\\ fs30 \\ fn" .. iconfont .. " }" ,
335
294
Ctrl2 = " {\\ blur0\\ bord0\\ 1c&H" .. osc_color_convert (user_opts .middle_buttons_color ) .. " &\\ 3c&HFFFFFF&\\ fs24\\ fn" .. iconfont .. " }" ,
336
295
Ctrl2Flip = " {\\ blur0\\ bord0\\ 1c&H" .. osc_color_convert (user_opts .middle_buttons_color ) .. " &\\ 3c&HFFFFFF&\\ fs24\\ fn" .. iconfont .. " \\ fry180}" ,
337
296
Ctrl3 = " {\\ blur0\\ bord0\\ 1c&H" .. osc_color_convert (user_opts .side_buttons_color ) .. " &\\ 3c&HFFFFFF&\\ fs24\\ fn" .. iconfont .. " }" ,
@@ -1551,7 +1510,7 @@ layouts = function ()
1551
1510
if showjump then
1552
1511
lo = add_layout (" jump_backward" )
1553
1512
lo .geometry = {x = refX - 60 , y = refY - 40 , an = 5 , w = 30 , h = 24 }
1554
- lo .style = user_opts . icon_style == " fluent " and (( user_opts .jumpiconnumber and icons .jumpicons [user_opts .jumpamount ] ~= nil ) and osc_styles .Ctrl2 or osc_styles .Ctrl2Flip ) or osc_styles . Ctrl2
1513
+ lo .style = ( user_opts .jumpiconnumber and icons .jumpicons [user_opts .jumpamount ] ~= nil ) and osc_styles .Ctrl2 or osc_styles .Ctrl2Flip
1555
1514
end
1556
1515
1557
1516
lo = add_layout (" play_pause" )
@@ -1561,7 +1520,7 @@ layouts = function ()
1561
1520
if showjump then
1562
1521
lo = add_layout (" jump_forward" )
1563
1522
lo .geometry = {x = refX + 60 , y = refY - 40 , an = 5 , w = 30 , h = 24 }
1564
- lo .style = user_opts . icon_style == " fluent " and osc_styles .Ctrl2 or (( user_opts . jumpiconnumber and icons . jumpicons [ user_opts . jumpamount ] ~= nil ) and osc_styles . Ctrl2 or osc_styles . Ctrl2Flip )
1523
+ lo .style = osc_styles .Ctrl2
1565
1524
end
1566
1525
1567
1526
if showskip then
0 commit comments