From fac8ebf2ccdf863c0d494fc3c18e180e4f3ecb30 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 8 Jan 2024 17:46:25 -0500 Subject: [PATCH] Fix error border color for email input in feedback dialog (#3959) This PR fixes the border color used when the email input in the feedback dialog is invalid. Previously this was hardcoded just to `red` instead of using the appropriate color from the theme. Screenshot 2024-01-08 at 5 40 07 PM Release Notes: - Fixed the border color used for the email input in the feedback dialog when an invalid email is entered. --- crates/feedback/src/feedback_modal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/feedback/src/feedback_modal.rs b/crates/feedback/src/feedback_modal.rs index 6c5308c1c64e3b6339dbdfff714c5a317dbe7842..566d34dadd20baf740eb8e3a2d2be1d87c655684 100644 --- a/crates/feedback/src/feedback_modal.rs +++ b/crates/feedback/src/feedback_modal.rs @@ -7,7 +7,7 @@ use db::kvp::KEY_VALUE_STORE; use editor::{Editor, EditorEvent}; use futures::AsyncReadExt; use gpui::{ - div, red, rems, AppContext, DismissEvent, EventEmitter, FocusHandle, FocusableView, Model, + div, rems, AppContext, DismissEvent, EventEmitter, FocusHandle, FocusableView, Model, PromptLevel, Render, Task, View, ViewContext, }; use isahc::Request; @@ -476,7 +476,7 @@ impl Render for FeedbackModal { .border_color(if self.valid_email_address() { cx.theme().colors().border } else { - red() + cx.theme().status().error_border }) .child(self.email_address_editor.clone()), )