panel: rasterize damus logo
Image is set to double the pixel size to reduce artifacts. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
BIN
assets/damus_rounded_80.png
Normal file
BIN
assets/damus_rounded_80.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
@@ -347,7 +347,7 @@ fn search_button() -> impl Widget {
|
|||||||
fn expand_side_panel_button() -> impl Widget {
|
fn expand_side_panel_button() -> impl Widget {
|
||||||
|ui: &mut egui::Ui| -> egui::Response {
|
|ui: &mut egui::Ui| -> egui::Response {
|
||||||
let img_size = 40.0;
|
let img_size = 40.0;
|
||||||
let img_data = egui::include_image!("../../assets/damus_rounded.svg");
|
let img_data = egui::include_image!("../../assets/damus_rounded_80.png");
|
||||||
let img = egui::Image::new(img_data).max_width(img_size);
|
let img = egui::Image::new(img_data).max_width(img_size);
|
||||||
|
|
||||||
ui.add(img)
|
ui.add(img)
|
||||||
|
|||||||
Reference in New Issue
Block a user