Skip to content

Commit

Permalink
chore(deps): bump tui-big-text from 0.4.5 to 0.5.2 (#60)
Browse files Browse the repository at this point in the history
Bumps [tui-big-text](https://github.com/joshka/tui-widgets) from 0.4.5
to 0.5.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/joshka/tui-widgets/releases">tui-big-text's
releases</a>.</em></p>
<blockquote>
<h2>tui-big-text-v0.5.2</h2>
<h3>⚙️ Miscellaneous Tasks</h3>
<ul>
<li>Update tui-big-text images</li>
</ul>
<!-- raw HTML omitted -->
<h2>tui-big-text-v0.5.1</h2>
<h3>⚙️ Miscellaneous Tasks</h3>
<ul>
<li>
<p>Remove anyhow dependency</p>
<blockquote>
<p>Replaced with color_eyre generally</p>
</blockquote>
</li>
<li>
<p>Update READMEs and licensing info</p>
</li>
</ul>
<!-- raw HTML omitted -->
<h2>tui-big-text-v0.5.0</h2>
<h3>🚀 Features</h3>
<ul>
<li>
<p><em>(tui-big-text)</em> Add alignment helper methods</p>
<blockquote>
<p>Adds helper methods to the <code>BigTextBuilder</code> struct to set
the alignment
of the text. This makes it simpler to set the alignment of the text.</p>
<pre lang="rust"><code>let left = BigText::builder()
    .left_aligned()
    .lines(vec![&quot;Left&quot;.white().into()])
    .build()?;
<p>let right = BigText::builder()
.right_aligned()
.lines(vec![&quot;Right&quot;.green().into()])
.build()?;</p>
<p>let centered = BigText::builder()
.centered()
.lines(vec![&quot;Centered&quot;.red().into()])
.build()?;
</code></pre></p>
</blockquote>
</li>
<li>
<p><em>(tui-big-text)</em> [<strong>breaking</strong>] Make
<code>BigText</code> builder infallible (<a
href="https://redirect.github.com/joshka/tui-widgets/pull/14">#14</a>)</p>
<blockquote>
<p>BigTextBuilder.build() no longer returns a Result. Instead it returns
the BigText widget directly. This change is made to simplify rendering
code which often otherwise doesn't have any error conditions.</p>
<p>This also makes the fields on BigText public (marked as
non-exhaustive)</p>
<p>BREAKING CHANGE:BigTextBuilder.build() no longer returns a
Result.</p>
</blockquote>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/joshka/tui-widgets/commits/tui-big-text-v0.5.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tui-big-text&package-manager=cargo&previous-version=0.4.5&new-version=0.5.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Aug 1, 2024
1 parent 94b6da7 commit aadc795
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tokio = { version = "1.39.2", features = [
tracing = "0.1.40"
tracing-error = "0.2.0"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
tui-big-text = "0.4.5"
tui-big-text = "0.5.2"
ureq = { version = "2.10.0", features = ["json"] }


Expand Down
11 changes: 2 additions & 9 deletions src/components/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,12 @@ impl Header {

impl Component for Header {
fn draw(&mut self, f: &mut Frame<'_>, area: Rect) {
let big_text = match BigText::builder()
let big_text = BigText::builder()
.pixel_size(PixelSize::HalfHeight)
.style(Style::default().fg(self.config.theme.title()))
.lines(vec!["Ducker".into()])
.alignment(layout::Alignment::Center)
.build()
{
Ok(b) => b,
_ => {
tracing::error!("failed to build title text");
panic!("Failed to build title text; panicking...")
}
};
.build();

let area = area.inner(Margin {
vertical: 0,
Expand Down

0 comments on commit aadc795

Please sign in to comment.