mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 20:22:30 +00:00
Unify text style names
This commit is contained in:
parent
37f910949d
commit
f8f1a3f86e
3 changed files with 10 additions and 10 deletions
|
@ -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(),
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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 })
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue