Skip to content

Commit

Permalink
chore: central-panel widget update
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Jun 25, 2022
1 parent 50f9349 commit 689889d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 25 deletions.
39 changes: 17 additions & 22 deletions config/awesome/ui/panels/central-panel/music-player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,13 @@ local music_art_filter = wibox.widget({
})

local music_title = wibox.widget({
font = beautiful.font_name .. "Regular 14",
align = "center",
font = beautiful.font_name .. "Regular 13",
valign = "center",
widget = wibox.widget.textbox,
})

local music_artist = wibox.widget({
font = beautiful.font_name .. "Bold 16",
align = "center",
valign = "center",
widget = wibox.widget.textbox,
})
Expand All @@ -73,28 +71,25 @@ local music = wibox.widget({
{
{
music_text,
helpers.ui.vertical_pad(dpi(20)),
helpers.ui.vertical_pad(dpi(15)),
{

{
widget = wibox.container.scroll.horizontal,
step_function = wibox.container.scroll.step_functions.waiting_nonlinear_back_and_forth,
fps = 60,
speed = 75,
music_artist,
},
{
{
widget = wibox.container.scroll.horizontal,
step_function = wibox.container.scroll.step_functions.waiting_nonlinear_back_and_forth,
fps = 60,
speed = 75,
music_artist,
},
{
widget = wibox.container.scroll.horizontal,
step_function = wibox.container.scroll.step_functions.waiting_nonlinear_back_and_forth,
fps = 60,
speed = 75,
music_title,
},
layout = wibox.layout.fixed.vertical,
widget = wibox.container.scroll.horizontal,
step_function = wibox.container.scroll.step_functions.waiting_nonlinear_back_and_forth,
fps = 60,
speed = 75,
music_title,
},
halign = "center",
valign = "center",
widget = wibox.container.place,
forced_width = dpi(170),
layout = wibox.layout.fixed.vertical,
},
layout = wibox.layout.fixed.vertical,
},
Expand Down
5 changes: 2 additions & 3 deletions config/awesome/ui/panels/central-panel/user-profile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ local function widget()
widget = wibox.widget.textbox,
markup = "Rayhan Kafi Pratama",
font = beautiful.font_name .. "Bold 13",
align = "left",
valign = "center",
})

Expand All @@ -125,8 +124,7 @@ local function widget()
local uptime_time = wibox.widget({
widget = wibox.widget.textbox,
markup = "up 3 hours, 33 minutes",
font = beautiful.font_name .. "Regular 11",
align = "left",
font = beautiful.font_name .. "Regular 10",
valign = "center",
})

Expand Down Expand Up @@ -166,6 +164,7 @@ local function widget()
speed = 75,
uptime_time,
},
forced_width = dpi(180),
layout = wibox.layout.fixed.vertical,
spacing = dpi(2),
},
Expand Down

0 comments on commit 689889d

Please sign in to comment.