Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

feat!: remove title from Popup::new #31

Merged
merged 1 commit into from
Jul 7, 2024
Merged

feat!: remove title from Popup::new #31

merged 1 commit into from
Jul 7, 2024

Conversation

joshka
Copy link
Owner

@joshka joshka commented Jul 7, 2024

BREAKING CHANGE: The Popup::new method no longer accepts a title
parameter. Instead, the title can be set using the title method on the
Popup instance.

- let popup = Popup::new("tui-popup demo", "Press any key to exit")
+ let popup = Popup::new("Press any key to exit")
+     .title("tui-popup demo")
      .style(Style::new().white().on_blue());

BREAKING CHANGE: The `Popup::new` method no longer accepts a title
parameter. Instead, the title can be set using the `title` method on the
`Popup` instance.

```diff
- let popup = Popup::new("tui-popup demo", "Press any key to exit")
+ let popup = Popup::new("Press any key to exit")
+     .title("tui-popup demo")
      .style(Style::new().white().on_blue());
```
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 51 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (eeeb8b1) to head (7dae240).
Report is 1 commits behind head on main.

Files Patch % Lines
src/popup.rs 0.00% 51 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main     #31   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       2    -1     
  Lines        133     130    -3     
=====================================
+ Misses       133     130    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joshka joshka merged commit 1c79c1c into main Jul 7, 2024
11 checks passed
@joshka joshka deleted the jm/constructor branch July 7, 2024 11:25
@github-actions github-actions bot mentioned this pull request Jul 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants