Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronErhardt committed Nov 4, 2024
1 parent f6bea51 commit 3261be3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions book/stable/efficient_ui/tracker.html
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ <h2 id="the-main-function"><a class="header" href="#the-main-function">The main
Later, we just need to assign the "identical" class name to a widget to make it match the CSS selector.</p>
<pre><code class="language-rust no_run noplayground">fn main() {
let app = RelmApp::new("relm4.test.simple");
app.set_global_css(".identical { background: #00ad5c; }");
relm4::set_global_css(".identical { background: #00ad5c; }");
app.run::&lt;AppModel&gt;(());
}</code></pre>
<h3 id="the-track-attribute"><a class="header" href="#the-track-attribute">The <code>#[track]</code> attribute</a></h3>
Expand Down Expand Up @@ -503,7 +503,7 @@ <h2 id="the-complete-code"><a class="header" href="#the-complete-code">The compl

fn main() {
let app = RelmApp::new("relm4.test.simple");
app.set_global_css(".identical { background: #00ad5c; }");
relm4::set_global_css(".identical { background: #00ad5c; }");
app.run::&lt;AppModel&gt;(());
}</code></pre>

Expand Down
8 changes: 4 additions & 4 deletions book/stable/first_app.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,15 @@ <h3 id="implement-a-component-with-simplecomponent"><a class="header" href="#imp
#[strong]
sender,
move |_| {
sender.input(Msg::Increment);
sender.input(AppMsg::Increment);
}
));

dec_button.connect_clicked(clone!(
#[strong]
sender,
move |_| {
sender.input(Msg::Decrement);
sender.input(AppMsg::Decrement);
}
));

Expand Down Expand Up @@ -419,15 +419,15 @@ <h2 id="the-complete-code"><a class="header" href="#the-complete-code">The compl
#[strong]
sender,
move |_| {
sender.input(Msg::Increment);
sender.input(AppMsg::Increment);
}
));

dec_button.connect_clicked(clone!(
#[strong]
sender,
move |_| {
sender.input(Msg::Decrement);
sender.input(AppMsg::Decrement);
}
));

Expand Down
12 changes: 6 additions & 6 deletions book/stable/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -403,15 +403,15 @@ <h3 id="implement-a-component-with-simplecomponent"><a class="header" href="#imp
#[strong]
sender,
move |_| {
sender.input(Msg::Increment);
sender.input(AppMsg::Increment);
}
));

dec_button.connect_clicked(clone!(
#[strong]
sender,
move |_| {
sender.input(Msg::Decrement);
sender.input(AppMsg::Decrement);
}
));

Expand Down Expand Up @@ -547,15 +547,15 @@ <h2 id="the-complete-code"><a class="header" href="#the-complete-code">The compl
#[strong]
sender,
move |_| {
sender.input(Msg::Increment);
sender.input(AppMsg::Increment);
}
));

dec_button.connect_clicked(clone!(
#[strong]
sender,
move |_| {
sender.input(Msg::Decrement);
sender.input(AppMsg::Decrement);
}
));

Expand Down Expand Up @@ -1058,7 +1058,7 @@ <h2 id="the-main-function"><a class="header" href="#the-main-function">The main
Later, we just need to assign the "identical" class name to a widget to make it match the CSS selector.</p>
<pre><code class="language-rust no_run noplayground">fn main() {
let app = RelmApp::new("relm4.test.simple");
app.set_global_css(".identical { background: #00ad5c; }");
relm4::set_global_css(".identical { background: #00ad5c; }");
app.run::&lt;AppModel&gt;(());
}</code></pre>
<h3 id="the-track-attribute"><a class="header" href="#the-track-attribute">The <code>#[track]</code> attribute</a></h3>
Expand Down Expand Up @@ -1216,7 +1216,7 @@ <h2 id="the-complete-code-2"><a class="header" href="#the-complete-code-2">The c

fn main() {
let app = RelmApp::new("relm4.test.simple");
app.set_global_css(".identical { background: #00ad5c; }");
relm4::set_global_css(".identical { background: #00ad5c; }");
app.run::&lt;AppModel&gt;(());
}</code></pre>
<div style="break-before: page; page-break-before: always;"></div><h1 id="factory"><a class="header" href="#factory">Factory</a></h1>
Expand Down
2 changes: 1 addition & 1 deletion book/stable/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion book/stable/searchindex.json

Large diffs are not rendered by default.

0 comments on commit 3261be3

Please sign in to comment.