mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 09:04:21 +01:00
refactor(assets): rename like icon -> filled version
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -7,7 +7,7 @@ use notedeck::fonts::get_font_size;
|
||||
use notedeck::name::get_display_name;
|
||||
use notedeck::ui::is_narrow;
|
||||
use notedeck::{tr_plural, JobsCache, Muted, NotedeckTextStyle};
|
||||
use notedeck_ui::app_images::{like_image, repost_image};
|
||||
use notedeck_ui::app_images::{like_image_filled, repost_image};
|
||||
use notedeck_ui::{ProfilePic, ProfilePreview};
|
||||
use std::f32::consts::PI;
|
||||
use tracing::{error, warn};
|
||||
@@ -514,7 +514,7 @@ enum ReferencedNoteType {
|
||||
impl CompositeType {
|
||||
fn image(&self, darkmode: bool) -> egui::Image<'static> {
|
||||
match self {
|
||||
CompositeType::Reaction => like_image(),
|
||||
CompositeType::Reaction => like_image_filled(),
|
||||
CompositeType::Repost => {
|
||||
repost_image(darkmode).tint(Color32::from_rgb(0x68, 0xC3, 0x51))
|
||||
}
|
||||
|
||||
@@ -249,8 +249,10 @@ pub fn zap_light_image() -> Image<'static> {
|
||||
zap_dark_image().tint(Color32::BLACK)
|
||||
}
|
||||
|
||||
pub fn like_image() -> Image<'static> {
|
||||
Image::new(include_image!("../../../assets/icons/like_icon_4x.png"))
|
||||
pub fn like_image_filled() -> Image<'static> {
|
||||
Image::new(include_image!(
|
||||
"../../../assets/icons/like_icon_filled_4x.png"
|
||||
))
|
||||
}
|
||||
|
||||
pub fn copy_to_clipboard_image() -> Image<'static> {
|
||||
|
||||
Reference in New Issue
Block a user