Style info text
This commit is contained in:
parent
a9c2f42f70
commit
57e10ce7c6
3 changed files with 9 additions and 12 deletions
|
@ -534,12 +534,8 @@ impl View for FeedbackInfoText {
|
||||||
fn render(&mut self, cx: &mut RenderContext<Self>) -> ElementBox {
|
fn render(&mut self, cx: &mut RenderContext<Self>) -> ElementBox {
|
||||||
let theme = cx.global::<Settings>().theme.clone();
|
let theme = cx.global::<Settings>().theme.clone();
|
||||||
let text = "We read whatever you submit here. For issues and discussions, visit the community repo on GitHub.";
|
let text = "We read whatever you submit here. For issues and discussions, visit the community repo on GitHub.";
|
||||||
Label::new(
|
Label::new(text.to_string(), theme.feedback.info_text.text.clone())
|
||||||
theme.workspace.titlebar.outdated_warning.text.clone(),
|
|
||||||
text.to_string(),
|
|
||||||
)
|
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(theme.workspace.titlebar.outdated_warning.container)
|
|
||||||
.aligned()
|
.aligned()
|
||||||
.left()
|
.left()
|
||||||
.clipped()
|
.clipped()
|
||||||
|
|
|
@ -811,6 +811,7 @@ pub struct TerminalStyle {
|
||||||
pub struct FeedbackStyle {
|
pub struct FeedbackStyle {
|
||||||
pub submit_button: Interactive<ContainedText>,
|
pub submit_button: Interactive<ContainedText>,
|
||||||
pub button_margin: f32,
|
pub button_margin: f32,
|
||||||
|
pub info_text: ContainedText,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Deserialize, Default)]
|
#[derive(Clone, Deserialize, Default)]
|
||||||
|
|
|
@ -5,7 +5,6 @@ import { background, border, text } from "./components";
|
||||||
export default function feedback(colorScheme: ColorScheme) {
|
export default function feedback(colorScheme: ColorScheme) {
|
||||||
let layer = colorScheme.highest;
|
let layer = colorScheme.highest;
|
||||||
|
|
||||||
// Currently feedback only needs style for the submit feedback button
|
|
||||||
return {
|
return {
|
||||||
submit_button: {
|
submit_button: {
|
||||||
...text(layer, "mono", "on"),
|
...text(layer, "mono", "on"),
|
||||||
|
@ -32,6 +31,7 @@ export default function feedback(colorScheme: ColorScheme) {
|
||||||
border: border(layer, "on", "hovered"),
|
border: border(layer, "on", "hovered"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
button_margin: 8
|
button_margin: 8,
|
||||||
|
info_text: text(layer, "sans", "default", { size: "xs" }),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue