From cc19f66ee175ebd1f366feeb714ed17d10f58bf6 Mon Sep 17 00:00:00 2001 From: Alvaro Parker <64918109+AlvaroParker@users.noreply.github.com> Date: Thu, 2 Oct 2025 00:40:14 -0300 Subject: [PATCH] Fix background on rules library panel (#39319) Closes #39318 The rules panel on the rules library window was rendering a black background when the `panel.background` property on the active theme had some level of transparency (for example `1917264D` on `nightfox` theme). image Left is before, right is after. The bug can be replicated by using `theme_overrides` on settings: ```json "experimental.theme_overrides": { "panel.background": "#00000000", "background": "#ffffff" }, ``` Release Notes: - Fix "secondary" background on rules panel --- crates/rules_library/src/rules_library.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/rules_library/src/rules_library.rs b/crates/rules_library/src/rules_library.rs index b346e979579f8b566a5a923ad8399592eddd7825..8357eb13857a642c56894263f676fca2bff30100 100644 --- a/crates/rules_library/src/rules_library.rs +++ b/crates/rules_library/src/rules_library.rs @@ -1354,6 +1354,7 @@ impl Render for RulesLibrary { client_side_decorations( v_flex() + .bg(theme.colors().background) .id("rules-library") .key_context("PromptLibrary") .on_action(cx.listener(|this, &NewRule, window, cx| this.new_rule(window, cx)))