Skip to content

Commit

Permalink
add EFF logo as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperq committed Jun 14, 2024
1 parent bf1bb37 commit aa730f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ async fn update_ui(task_tracker: &TaskTracker, config: &config::Config, mut ui_
let img;
if display_level == 2 {
img = IMAGE_DIR.get_file("orca.gif").unwrap().contents();
} else if display_level == 3{
img = IMAGE_DIR.get_file("eff.png").unwrap().contents();
} else {
img = &[];
}
Expand All @@ -156,6 +158,9 @@ async fn update_ui(task_tracker: &TaskTracker, config: &config::Config, mut ui_
2 => {
fb.draw_gif(img);
},
3 => {
fb.draw_img(img)
}
128 => {
fb.draw_line(framebuffer::Color565::Cyan, 128);
fb.draw_line(framebuffer::Color565::Pink, 102);
Expand Down
Binary file modified bin/static/images/eff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/static/images/orca.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ readonly_mode = false
# 0 = invisible mode, no indicator that rayhunter is running
# 1 = Subtle mode, display a green line at the top of the screen when rayhunter is running
# 2 = Demo Mode, display a fun orca gif
# 3 = display the EFF logo
ui_level = 1

0 comments on commit aa730f3

Please sign in to comment.