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,67 +46,76 @@ 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 {
layout = wibox.layout.fixed.vertical, widget = wibox.container.margin,
forced_width = dpi(1000), margins = dpi(15),
forced_height = dpi(1000),
spacing = dpi(15),
{ {
widget = text_input_widget, layout = wibox.layout.fixed.vertical,
id = "text_input_role", spacing = dpi(15),
reset_on_stop = self.reset_on_hide, {
placeholder = self.text_input_placeholder, widget = text_input_widget,
unfocus_keys = { }, id = "text_input_role",
unfocus_on_clicked_inside = false, forced_width = dpi(650),
unfocus_on_clicked_outside = false, forced_height = dpi(60),
unfocus_on_mouse_leave = false, reset_on_stop = self.reset_on_hide,
unfocus_on_tag_change = false, placeholder = self.text_input_placeholder,
unfocus_on_other_text_input_focus = false, unfocus_keys = { },
focus_on_subject_mouse_enter = nil, unfocus_on_clicked_inside = false,
unfocus_on_subject_mouse_leave = nil, unfocus_on_clicked_outside = false,
widget_template = wibox.widget { unfocus_on_mouse_leave = false,
widget = wibox.container.background, unfocus_on_tag_change = false,
forced_height = dpi(120), unfocus_on_other_text_input_focus = false,
bg = self.text_input_bg_color, focus_on_subject_mouse_enter = nil,
{ unfocus_on_subject_mouse_leave = nil,
widget = wibox.container.margin, widget_template = wibox.widget {
margins = dpi(30), widget = wibox.container.background,
bg = self.text_input_bg_color,
{ {
widget = wibox.widget.textbox, widget = wibox.container.margin,
text_color = self.text_input_color, margins = dpi(15),
id = "text_role" {
layout = wibox.layout.stack,
{
widget = wibox.widget.textbox,
id = "placeholder_role",
text = "Search: "
},
{
widget = wibox.widget.textbox,
id = "text_role"
},
}
} }
} }
}
},
{
layout = wibox.layout.fixed.horizontal,
spacing = dpi(10),
{
layout = wibox.layout.grid,
id = "grid_role",
orientation = "horizontal",
homogeneous = true,
spacing = dpi(30),
forced_num_cols = self.apps_per_column,
forced_num_rows = self.apps_per_row,
}, },
{ {
layout = wibox.container.rotate, layout = wibox.layout.fixed.horizontal,
direction = 'west', spacing = dpi(10),
{ {
widget = wibox.widget.slider, layout = wibox.layout.grid,
id = "scrollbar_role", id = "grid_role",
forced_width = dpi(5), orientation = "horizontal",
minimum = 1, homogeneous = true,
value = 1, spacing = dpi(30),
-- bar_shape = helpers.ui.rrect(), forced_num_cols = self.apps_per_column,
bar_height= 3, forced_num_rows = self.apps_per_row,
bar_color = beautiful.colors.transparent, },
bar_active_color = beautiful.colors.transparent, {
handle_width = dpi(50), layout = wibox.container.rotate,
handle_color = beautiful.bg_normal, direction = 'west',
-- handle_shape = helpers.ui.rrect(), {
handle_color = beautiful.colors.on_background widget = wibox.widget.slider,
id = "scrollbar_role",
forced_width = dpi(5),
forced_height = dpi(10),
minimum = 1,
value = 1,
bar_height= 3,
bar_color = "#00000000",
bar_active_color = "#00000000",
handle_width = dpi(50),
handle_color = beautiful.bg_normal,
handle_color = beautiful.fg_normal
}
} }
} }
} }