Move string to variable
This commit is contained in:
parent
83f9d51dee
commit
a9c2f42f70
1 changed files with 2 additions and 1 deletions
|
@ -533,9 +533,10 @@ 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.";
|
||||||
Label::new(
|
Label::new(
|
||||||
"We read whatever you submit here. For issues and discussions, visit the community repo on GitHub.".to_string(),
|
|
||||||
theme.workspace.titlebar.outdated_warning.text.clone(),
|
theme.workspace.titlebar.outdated_warning.text.clone(),
|
||||||
|
text.to_string(),
|
||||||
)
|
)
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(theme.workspace.titlebar.outdated_warning.container)
|
.with_style(theme.workspace.titlebar.outdated_warning.container)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue