notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

app_images.rs (6379B)


      1 use eframe::icon_data::from_png_bytes;
      2 use egui::{include_image, Color32, IconData, Image};
      3 
      4 pub fn app_icon() -> IconData {
      5     from_png_bytes(include_bytes!("../../../assets/damus-app-icon.png")).expect("icon")
      6 }
      7 
      8 pub fn add_account_image() -> Image<'static> {
      9     Image::new(include_image!(
     10         "../../../assets/icons/add_account_icon_4x.png"
     11     ))
     12 }
     13 
     14 pub fn accounts_image() -> Image<'static> {
     15     Image::new(include_image!("../../../assets/icons/accounts.png"))
     16 }
     17 
     18 pub fn add_column_dark_image() -> Image<'static> {
     19     Image::new(include_image!(
     20         "../../../assets/icons/add_column_dark_4x.png"
     21     ))
     22 }
     23 
     24 pub fn add_column_light_image() -> Image<'static> {
     25     Image::new(include_image!(
     26         "../../../assets/icons/add_column_light_4x.png"
     27     ))
     28 }
     29 
     30 pub fn add_relay_image() -> Image<'static> {
     31     Image::new(include_image!(
     32         "../../../assets/icons/add_relay_icon_4x.png"
     33     ))
     34 }
     35 
     36 pub fn algo_image() -> Image<'static> {
     37     Image::new(include_image!("../../../assets/icons/algo.png"))
     38 }
     39 
     40 pub fn columns_image() -> Image<'static> {
     41     Image::new(include_image!("../../../assets/icons/columns_80.png"))
     42 }
     43 
     44 pub fn connected_image() -> Image<'static> {
     45     Image::new(include_image!(
     46         "../../../assets/icons/connected_icon_4x.png"
     47     ))
     48 }
     49 
     50 pub fn connecting_image() -> Image<'static> {
     51     Image::new(include_image!(
     52         "../../../assets/icons/connecting_icon_4x.png"
     53     ))
     54 }
     55 
     56 pub fn damus_image() -> Image<'static> {
     57     Image::new(include_image!("../../../assets/damus_rounded_80.png"))
     58 }
     59 
     60 pub fn delete_dark_image() -> Image<'static> {
     61     Image::new(include_image!(
     62         "../../../assets/icons/column_delete_icon_4x.png"
     63     ))
     64 }
     65 
     66 pub fn delete_light_image() -> Image<'static> {
     67     Image::new(include_image!(
     68         "../../../assets/icons/column_delete_icon_light_4x.png"
     69     ))
     70 }
     71 
     72 pub fn disconnected_image() -> Image<'static> {
     73     Image::new(include_image!(
     74         "../../../assets/icons/disconnected_icon_4x.png"
     75     ))
     76 }
     77 
     78 pub fn edit_dark_image() -> Image<'static> {
     79     Image::new(include_image!(
     80         "../../../assets/icons/edit_icon_4x_dark.png"
     81     ))
     82 }
     83 
     84 pub fn eye_dark_image() -> Image<'static> {
     85     Image::new(include_image!("../../../assets/icons/eye-dark.png"))
     86 }
     87 
     88 pub fn eye_light_image() -> Image<'static> {
     89     Image::new(include_image!("../../../assets/icons/eye-light.png"))
     90 }
     91 
     92 pub fn eye_slash_dark_image() -> Image<'static> {
     93     Image::new(include_image!("../../../assets/icons/eye-slash-dark.png"))
     94 }
     95 
     96 pub fn eye_slash_light_image() -> Image<'static> {
     97     Image::new(include_image!("../../../assets/icons/eye-slash-light.png"))
     98 }
     99 
    100 pub fn filled_zap_image() -> Image<'static> {
    101     Image::new(include_image!("../../../assets/icons/filled_zap_icon.svg"))
    102 }
    103 
    104 pub fn hashtag_image() -> Image<'static> {
    105     Image::new(include_image!("../../../assets/icons/hashtag_icon_4x.png"))
    106 }
    107 
    108 pub fn help_dark_image() -> Image<'static> {
    109     Image::new(include_image!(
    110         "../../../assets/icons/help_icon_dark_4x.png"
    111     ))
    112 }
    113 
    114 pub fn help_light_image() -> Image<'static> {
    115     Image::new(include_image!(
    116         "../../../assets/icons/help_icon_inverted_4x.png"
    117     ))
    118 }
    119 
    120 pub fn home_light_image() -> Image<'static> {
    121     home_dark_image().tint(Color32::BLACK)
    122 }
    123 
    124 pub fn home_dark_image() -> Image<'static> {
    125     Image::new(include_image!("../../../assets/icons/home-toolbar.png"))
    126 }
    127 
    128 pub fn home_image() -> Image<'static> {
    129     Image::new(include_image!(
    130         "../../../assets/icons/home_icon_dark_4x.png"
    131     ))
    132 }
    133 
    134 pub fn key_image() -> Image<'static> {
    135     Image::new(include_image!("../../../assets/icons/key_4x.png"))
    136 }
    137 
    138 pub fn link_dark_image() -> Image<'static> {
    139     Image::new(include_image!("../../../assets/icons/links_4x.png"))
    140 }
    141 
    142 pub fn link_light_image() -> Image<'static> {
    143     link_dark_image().tint(Color32::BLACK)
    144 }
    145 
    146 pub fn new_message_image() -> Image<'static> {
    147     Image::new(include_image!("../../../assets/icons/newmessage_64.png"))
    148 }
    149 
    150 pub fn new_deck_image() -> Image<'static> {
    151     Image::new(include_image!(
    152         "../../../assets/icons/new_deck_icon_4x_dark.png"
    153     ))
    154 }
    155 
    156 pub fn notifications_image(dark_mode: bool) -> Image<'static> {
    157     if dark_mode {
    158         crate::app_images::notifications_dark_image()
    159     } else {
    160         crate::app_images::notifications_light_image()
    161     }
    162 }
    163 
    164 pub fn notifications_light_image() -> Image<'static> {
    165     notifications_dark_image().tint(Color32::BLACK)
    166 }
    167 
    168 pub fn notifications_dark_image() -> Image<'static> {
    169     Image::new(include_image!(
    170         "../../../assets/icons/notifications_dark_4x.png"
    171     ))
    172 }
    173 
    174 pub fn repost_dark_image() -> Image<'static> {
    175     Image::new(include_image!("../../../assets/icons/repost_icon_4x.png"))
    176 }
    177 
    178 pub fn repost_light_image() -> Image<'static> {
    179     Image::new(include_image!("../../../assets/icons/repost_light_4x.png"))
    180 }
    181 
    182 pub fn reply_dark_image() -> Image<'static> {
    183     Image::new(include_image!("../../../assets/icons/reply.png"))
    184 }
    185 
    186 pub fn reply_light_image() -> Image<'static> {
    187     Image::new(include_image!("../../../assets/icons/reply-dark.png"))
    188 }
    189 
    190 pub fn profile_image() -> Image<'static> {
    191     Image::new(include_image!("../../../assets/icons/profile_icon_4x.png"))
    192 }
    193 
    194 pub fn settings_dark_image() -> Image<'static> {
    195     Image::new(include_image!("../../../assets/icons/settings_dark_4x.png"))
    196 }
    197 
    198 pub fn settings_light_image() -> Image<'static> {
    199     Image::new(include_image!(
    200         "../../../assets/icons/settings_light_4x.png"
    201     ))
    202 }
    203 
    204 pub fn universe_image() -> Image<'static> {
    205     Image::new(include_image!(
    206         "../../../assets/icons/universe_icon_dark_4x.png"
    207     ))
    208 }
    209 
    210 pub fn verified_image() -> Image<'static> {
    211     Image::new(include_image!("../../../assets/icons/verified_4x.png"))
    212 }
    213 
    214 pub fn media_upload_dark_image() -> Image<'static> {
    215     Image::new(include_image!(
    216         "../../../assets/icons/media_upload_dark_4x.png"
    217     ))
    218 }
    219 
    220 pub fn media_upload_light_image() -> Image<'static> {
    221     media_upload_dark_image().tint(Color32::BLACK)
    222 }
    223 
    224 pub fn wallet_dark_image() -> Image<'static> {
    225     Image::new(include_image!("../../../assets/icons/wallet-icon.svg"))
    226 }
    227 
    228 pub fn wallet_light_image() -> Image<'static> {
    229     wallet_dark_image().tint(Color32::BLACK)
    230 }
    231 
    232 pub fn zap_dark_image() -> Image<'static> {
    233     Image::new(include_image!("../../../assets/icons/zap_4x.png"))
    234 }
    235 
    236 pub fn zap_light_image() -> Image<'static> {
    237     zap_dark_image().tint(Color32::BLACK)
    238 }