Skip to content

Commit

Permalink
Bump ratatui to v0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
phire22 committed Jun 27, 2024
1 parent 3cd4f24 commit 35ca355
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 35 deletions.
73 changes: 47 additions & 26 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 wireman-theme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ license = "MIT"
cssparser = "0.33.0"
logger = { package = "wireman-logger", path = "../wireman-logger", version = "0.1.0" }
once_cell = "1.19"
ratatui = "0.26.1"
ratatui = "0.27.0"
serde = { version = "1.0", features = ["derive"] }
shellexpand = "3.1.0"
toml = "0.8.10"
6 changes: 3 additions & 3 deletions wireman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ core = { package = "wireman-core", path = "../wireman-core", version = "0.1.0" }
config = { package = "wireman-config", path = "../wireman-config", version = "0.1.0" }
logger = { package = "wireman-logger", path = "../wireman-logger", version = "0.1.0" }
theme = { package = "wireman-theme", path = "../wireman-theme", version = "0.1.0" }
tui-widget-list = { version = "0.9.0" }
tui-widget-list = { version = "0.10.0" }
# tui-widget-list = { git = "https://github.com/preiter93/tui-widget-list.git", branch = "v0.9" }
# tui-widget-list = { path = "../../tui-widget-list", version = "0.9.0"}
tui-key-event-handler = { package = "tui-key-event-handler", path = "../tui-key-event-handler", version = "0.1.0" }
edtui = "0.3.4"
edtui = "0.4.0"
# edtui = { version = "0.3.3", path = "../../edtui" }
crossterm = { version = "0.27", features = ["events", "event-stream"] }
ratatui = "0.26"
ratatui = "0.27"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
unicode-width = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/view/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl Widget for Authentication {
.highlight_style(theme.headers.tabs.1)
.select(self.selected_tag)
.divider("")
.render(title.inner(&Margin::new(0, 0)), buf);
.render(title.inner(Margin::new(0, 0)), buf);

if self.selected {
view_single_selected(&mut self.state, self.title).render(content, buf);
Expand Down
8 changes: 4 additions & 4 deletions wireman/src/view/history_tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ impl Widget for HistoryTabs<'_> {
fn render(self, area: Rect, buf: &mut Buffer) {
let theme = theme::Theme::global();
if !self.model.enabled {
let [_, title, right] = layout(area, Direction::Horizontal, &[0, 3, 25]);
ActivatableTabs::new(vec!["H"])
.style(theme.history.inactive.0)
.render(title, buf);
let [_, _, right] = layout(area, Direction::Horizontal, &[0, 3, 25]);
// ActivatableTabs::new(vec!["H"])
// .style(theme.history.inactive.0)
// .render(title, buf);

let titles = vec![" 1 ", " 2 ", " 3 ", " 4 ", " 5 "];
let mut tabs = ActivatableTabs::new(titles)
Expand Down

0 comments on commit 35ca355

Please sign in to comment.