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 widget = wibox.container.background
}, },
{ {
layout = wibox.layout.fixed.vertical, layout = wibox.layout.flex.vertical,
id = "contents" id = "contents"
}, },
{ {

View File

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