Unbork the default template + fixes some beautiful.colors refs

This commit is contained in:
Ksaper 2023-03-12 12:24:33 +02:00
parent ba8071b13f
commit c6e87c11d0
1 changed files with 63 additions and 54 deletions

View File

@ -46,13 +46,16 @@ local function build_widget(self)
layout = rofi_grid_widget, layout = rofi_grid_widget,
lazy_load_widgets = false, lazy_load_widgets = false,
widget_template = wibox.widget { widget_template = wibox.widget {
widget = wibox.container.margin,
margins = dpi(15),
{
layout = wibox.layout.fixed.vertical, layout = wibox.layout.fixed.vertical,
forced_width = dpi(1000),
forced_height = dpi(1000),
spacing = dpi(15), spacing = dpi(15),
{ {
widget = text_input_widget, widget = text_input_widget,
id = "text_input_role", id = "text_input_role",
forced_width = dpi(650),
forced_height = dpi(60),
reset_on_stop = self.reset_on_hide, reset_on_stop = self.reset_on_hide,
placeholder = self.text_input_placeholder, placeholder = self.text_input_placeholder,
unfocus_keys = { }, unfocus_keys = { },
@ -65,15 +68,21 @@ local function build_widget(self)
unfocus_on_subject_mouse_leave = nil, unfocus_on_subject_mouse_leave = nil,
widget_template = wibox.widget { widget_template = wibox.widget {
widget = wibox.container.background, widget = wibox.container.background,
forced_height = dpi(120),
bg = self.text_input_bg_color, bg = self.text_input_bg_color,
{ {
widget = wibox.container.margin, widget = wibox.container.margin,
margins = dpi(30), margins = dpi(15),
{
layout = wibox.layout.stack,
{
widget = wibox.widget.textbox,
id = "placeholder_role",
text = "Search: "
},
{ {
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
text_color = self.text_input_color,
id = "text_role" id = "text_role"
},
} }
} }
} }
@ -97,16 +106,16 @@ local function build_widget(self)
widget = wibox.widget.slider, widget = wibox.widget.slider,
id = "scrollbar_role", id = "scrollbar_role",
forced_width = dpi(5), forced_width = dpi(5),
forced_height = dpi(10),
minimum = 1, minimum = 1,
value = 1, value = 1,
-- bar_shape = helpers.ui.rrect(),
bar_height= 3, bar_height= 3,
bar_color = beautiful.colors.transparent, bar_color = "#00000000",
bar_active_color = beautiful.colors.transparent, bar_active_color = "#00000000",
handle_width = dpi(50), handle_width = dpi(50),
handle_color = beautiful.bg_normal, handle_color = beautiful.bg_normal,
-- handle_shape = helpers.ui.rrect(), handle_color = beautiful.fg_normal
handle_color = beautiful.colors.on_background }
} }
} }
} }