mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 00:11:01 +00:00
cargo fmt
This commit is contained in:
parent
8b143847f2
commit
d3aec9556f
@ -111,8 +111,7 @@ impl<'a> Notification<'a> for ConnRequest {
|
||||
for (i, job) in jobstrs.iter().enumerate() {
|
||||
if i + 1 < jobstrs.len() {
|
||||
ui.label(
|
||||
RichText::new(format!("{},", job))
|
||||
.color(reasons_color(theme)),
|
||||
RichText::new(format!("{},", job)).color(reasons_color(theme)),
|
||||
);
|
||||
} else {
|
||||
ui.label(RichText::new(job).color(reasons_color(theme)));
|
||||
|
@ -117,7 +117,11 @@ pub fn truncated_label(ui: &mut Ui, text: impl Into<WidgetText>, max_width: f32)
|
||||
/// Display a relay-URL
|
||||
pub fn relay_url(ui: &mut Ui, theme: &Theme, url: &RelayUrl) -> Response {
|
||||
let (symbol, color, spacer) = if url.as_url_crate_url().scheme() != "wss" {
|
||||
("\u{00A0}\u{00A0}\u{1F513}", theme.red_500(), "\u{00A0}\u{00A0}\u{00A0}")
|
||||
(
|
||||
"\u{00A0}\u{00A0}\u{1F513}",
|
||||
theme.red_500(),
|
||||
"\u{00A0}\u{00A0}\u{00A0}",
|
||||
)
|
||||
} else {
|
||||
("", theme.accent_color(), "")
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user