Skip to content

Commit

Permalink
restore code
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinaboos committed Apr 17, 2024
1 parent 99f4b0a commit 2fd48db
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
60 changes: 30 additions & 30 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions src/shared/html_or_plaintext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ impl LiveHook for MatrixHtmlSpan {
// Set the Label's foreground text color and background color
if let Some(fg_color) = self.fg_color {
self.ll.apply_over(cx, live!{ draw_text: { color: (fg_color) } });
};
if let Some(bg_color) = self.bg_color {
self.ll.apply_over(cx, live!{ draw_bg: { color: (bg_color) } });
};

}
if let Some(_bg_color) = self.bg_color {
log!("TODO: Html span/font background color is not yet implemented.")
// self.apply_over(cx, live!{ draw_bg: { color: (bg_color) } });
}
// TODO: need to handle label events to handle the spoiler, so we can toggle it upon click.
}
} else {
Expand Down

0 comments on commit 2fd48db

Please sign in to comment.