From eb7c1aa409310192c15972ee43cdf0d0321082f9 Mon Sep 17 00:00:00 2001 From: Ksaper Date: Mon, 20 Feb 2023 02:28:03 +0200 Subject: [PATCH] It's the 1st widget in the layout, no need to search for it --- widget/app_launcher/init.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/widget/app_launcher/init.lua b/widget/app_launcher/init.lua index 3a07e94..e9a1ba5 100644 --- a/widget/app_launcher/init.lua +++ b/widget/app_launcher/init.lua @@ -122,7 +122,6 @@ local function app_widget(self, app) widget = wibox.widget { widget = wibox.container.background, - id = "background_role", forced_width = dpi(300), forced_height = dpi(120), bg = self.app_normal_color, @@ -152,9 +151,9 @@ local function app_widget(self, app) end if widget.selected then - widget:get_children_by_id("background_role")[1].bg = self.app_selected_hover_color + widget.bg = self.app_selected_hover_color else - widget:get_children_by_id("background_role")[1].bg = self.app_normal_hover_color + widget.bg = self.app_normal_hover_color end end) @@ -165,9 +164,9 @@ local function app_widget(self, app) end if widget.selected then - widget:get_children_by_id("background_role")[1].bg = self.app_selected_color + widget.bg = self.app_selected_color else - widget:get_children_by_id("background_role")[1].bg = self.app_normal_color + widget.bg = self.app_normal_color end end) else