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:
@@ -7,7 +7,7 @@ use db::kvp::KEY_VALUE_STORE;
|
|||||||
use editor::{Editor, EditorEvent};
|
use editor::{Editor, EditorEvent};
|
||||||
use futures::AsyncReadExt;
|
use futures::AsyncReadExt;
|
||||||
use gpui::{
|
use gpui::{
|
||||||
div, red, rems, AppContext, DismissEvent, EventEmitter, FocusHandle, FocusableView, Model,
|
div, rems, AppContext, DismissEvent, EventEmitter, FocusHandle, FocusableView, Model,
|
||||||
PromptLevel, Render, Task, View, ViewContext,
|
PromptLevel, Render, Task, View, ViewContext,
|
||||||
};
|
};
|
||||||
use isahc::Request;
|
use isahc::Request;
|
||||||
@@ -476,7 +476,7 @@ impl Render for FeedbackModal {
|
|||||||
.border_color(if self.valid_email_address() {
|
.border_color(if self.valid_email_address() {
|
||||||
cx.theme().colors().border
|
cx.theme().colors().border
|
||||||
} else {
|
} else {
|
||||||
red()
|
cx.theme().status().error_border
|
||||||
})
|
})
|
||||||
.child(self.email_address_editor.clone()),
|
.child(self.email_address_editor.clone()),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user