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.

<img width="653" alt="Screenshot 2024-01-08 at 5 40 07 PM"
src="https://github.com/zed-industries/zed/assets/1486634/ea01cd76-d661-4512-b668-c82b8d00d84e">

Release Notes:

- Fixed the border color used for the email input in the feedback dialog
when an invalid email is entered.
This commit is contained in:
Marshall Bowers 2024-01-08 17:46:25 -05:00 committed by GitHub
parent 475d91ace0
commit fac8ebf2cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()),
)