Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Unify text style names

Joseph Lyonsf8f1a3f86ea3
diff --git a/crates/feedback/src/feedback_info_text.rs b/crates/feedback/src/feedback_info_text.rs
index 5e0378b95ee..0ba5ef49f71 100644
--- a/crates/feedback/src/feedback_info_text.rs
+++ b/crates/feedback/src/feedback_info_text.rs
@@ -36,7 +36,7 @@ impl View for FeedbackInfoText {
.with_child(
Text::new(
"We read whatever you submit here. For issues and discussions, visit the ",
- theme.feedback.info_text.text.clone(),
+ theme.feedback.info_text_default.text.clone(),
)
.with_soft_wrap(false)
.aligned()
@@ -45,9 +45,9 @@ impl View for FeedbackInfoText {
.with_child(
MouseEventHandler::<OpenZedCommunityRepo>::new(0, cx, |state, _| {
let text = if state.hovered() {
- theme.feedback.link_hover_text.clone()
+ theme.feedback.link_text_hover.clone()
} else {
- theme.feedback.link_text.clone()
+ theme.feedback.link_text_default.clone()
};
Label::new("community repo", text.text)
@@ -64,7 +64,7 @@ impl View for FeedbackInfoText {
.boxed(),
)
.with_child(
- Text::new(" on GitHub.", theme.feedback.info_text.text.clone())
+ Text::new(" on GitHub.", theme.feedback.info_text_default.text.clone())
.with_soft_wrap(false)
.aligned()
.boxed(),
diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rs
index bc3b048010b..ba66ea2d86c 100644
--- a/crates/theme/src/theme.rs
+++ b/crates/theme/src/theme.rs
@@ -811,9 +811,9 @@ pub struct TerminalStyle {
pub struct FeedbackStyle {
pub submit_button: Interactive<ContainedText>,
pub button_margin: f32,
- pub info_text: ContainedText,
- pub link_text: ContainedText,
- pub link_hover_text: ContainedText,
+ pub info_text_default: ContainedText,
+ pub link_text_default: ContainedText,
+ pub link_text_hover: ContainedText,
}
#[derive(Clone, Deserialize, Default)]
diff --git a/styles/src/styleTree/feedback.ts b/styles/src/styleTree/feedback.ts
index 34922b4d00b..8e3c6cda975 100644
--- a/styles/src/styleTree/feedback.ts
+++ b/styles/src/styleTree/feedback.ts
@@ -32,8 +32,8 @@ export default function feedback(colorScheme: ColorScheme) {
},
},
button_margin: 8,
- info_text: text(layer, "sans", "default", { size: "xs" }),
- link_text: text(layer, "sans", "default", { size: "xs", underline: true }),
- link_hover_text: text(layer, "sans", "hovered", { size: "xs", underline: true })
+ info_text_default: text(layer, "sans", "default", { size: "xs" }),
+ link_text_default: text(layer, "sans", "default", { size: "xs", underline: true }),
+ link_text_hover: text(layer, "sans", "hovered", { size: "xs", underline: true })
};
}