expand menu

This commit is contained in:
Yessiest 2023-05-20 20:31:42 +04:00
parent 3c835f3807
commit 932869df11
5 changed files with 45 additions and 62 deletions

View File

@ -1,16 +0,0 @@
loop=false
delay=10
-KP_Left
-Right
+Right
-Right
+BackSpace
-BackSpace
+p
-p
+space
-space
+-
--
+r
-r

View File

@ -1,5 +0,0 @@
loop=true
delay=10
-KP_Begin
+v
-v

View File

@ -1,5 +0,0 @@
loop=true
delay=10
-KP_Right
+c
-c

View File

@ -49,7 +49,7 @@ local function _preload(args)
widget = wibox.container.background
},
{
layout = wibox.layout.fixed.vertical,
layout = wibox.layout.flex.vertical,
id = "contents"
},
{

View File

@ -69,46 +69,51 @@ return function(args)
args.columns = args.columns or 6
local widget = wibox.widget({
{
t.center(t.container(
t.container({
widget = wibox.widget.textbox,
markup = "Search",
id = "searchtext"
},{
id = "searchbox",
bg = style.container.bg_highlight,
forced_width = 240
})
)),
t.center(
t.container({
t.button(
t.textbox({
markup = "Most used"
}),{
id = "usage"
}
),
t.button(
t.textbox({
markup = "Recent"
}),{
id = "recent"
}
),
layout = wibox.layout.flex.horizontal,
spacing = style.base.spacing,
forced_width = 240
},{
bg = "#00000000"
})
),
{
t.center(t.container(
t.container({
widget = wibox.widget.textbox,
markup = "Search",
id = "searchtext"
},{
id = "searchbox",
bg = style.container.bg_highlight,
forced_width = 240
})
)),
t.center(
t.container({
t.button(
t.textbox({
markup = "Most used"
}),{
id = "usage"
}
),
t.button(
t.textbox({
markup = "Recent"
}),{
id = "recent"
}
),
layout = wibox.layout.flex.horizontal,
spacing = style.base.spacing,
forced_width = 240
},{
bg = "#00000000"
})
),
layout = wibox.layout.fixed.vertical,
spacing = style.base.spacing,
},
{
{
layout = wibox.layout.grid,
forced_num_cols = args.columns,
homogenous = true,
expand = true,
vertical_expand = true,
orientation = "veritcal",
spacing = style.base.spacing,
id = "appgrid"
@ -116,8 +121,12 @@ return function(args)
margins = 20,
widget = wibox.container.margin
},
layout = wibox.layout.fixed.vertical,
{
widget = wibox.container.background
},
layout = wibox.layout.align.vertical,
spacing = style.base.spacing,
expand = "inside",
id = "root_ratio"
},
widget = wibox.container.margin,