Skip to content

Commit

Permalink
build(deps): Update rofi-mode dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
fuljo committed May 6, 2023
1 parent 343e513 commit 39d5363
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 30 deletions.
130 changes: 104 additions & 26 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ serde_json = "1.0"
url = { version = "2.3", features = ["serde"]}
which = "4.4"
# Rofi-only
pangocairo = { version = "0.15", optional = true } # should be consistent with the dependency from rofi-mode
rofi-mode = { version = "0.2", optional = true }
pangocairo = { version = "0.17", optional = true } # should be consistent with the dependency from rofi-mode
rofi-mode = { version = "0.3", optional = true }

# Configuration for cargo-release
[package.metadata.release]
Expand Down
3 changes: 1 addition & 2 deletions src/rofi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ fn draw_nerd_icon(
let cr = cairo::Context::new(&surface)?;

// Set text layout
let layout =
pangocairo::create_layout(&cr).ok_or_else(|| anyhow!("Could not create Pango layout"))?;
let layout = pangocairo::create_layout(&cr);
let font_size = f64::from(size) * 0.75;
let desc = pango::FontDescription::from_string(&format!("{} {}", font, font_size));
layout.set_font_description(Some(&desc));
Expand Down

0 comments on commit 39d5363

Please sign in to comment.