From 3596fda96dd1b850a1ac68c3e60675f730000fda Mon Sep 17 00:00:00 2001 From: benthecarman Date: Thu, 16 May 2024 13:17:55 -0500 Subject: [PATCH] Try to add icon --- assets/harbor_logo.rgba | Bin 0 -> 40748 bytes src/main.rs | 16 +++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 assets/harbor_logo.rgba diff --git a/assets/harbor_logo.rgba b/assets/harbor_logo.rgba new file mode 100644 index 0000000000000000000000000000000000000000..bbfc875fe68d541d448d0126cda35d01e6b430e0 GIT binary patch literal 40748 zcmeI3U#L`76vmHcS!$)3q#<@Og^Dai1S^pqqVT~xGe*{f;SH&mAfYlXeK82^rMFVb z7o&$V1W8HJ=pT`kqL;EP3altK(lqL-bMMXRx6Yh3th?`=oN><7opEjW+N{ZW2_U?|Vg z=XP;2&>Q8>2rka6_p2Vt4D?3%lHk9dW2scS6Rb3tlr{%^rWrqpnUUt3wVkn+nX#8< z-M{x2MWtxbBsBO~UzA&Eq1v=IDT}YfG>bd#_Znc+oV2lUT4)_9Ka%E~wVkoPGGp(} zy8ny4zusuk9JF>)by!FKyTmqwKkm0{vl+y;Sf6O|Q_*8F%55)3g>@EvQDL*d+REkJ z_Oga^pETogU7O8dwe|W$V@1(fDOxbH*4c}1S)2J{tugiZHA|cHI~CjoW`eP4bE0hw z7?p@==^jpS74h9 zP%J~(P@gJLwcmGU%=m7)hO z>x=R)3ZxufQ(9c;cOi8+&P1E^GYrUmKVMpF=ZSNu&5wc((zF@sQp5hH&}GMvGPWG( zQKyt##vWs1satJsqW)VD+m_laMGLRxjJdiP<&UWTq%1aRQ;xJv>sjXT9BT7%Z1^;6gkUINmGO|NR4ilHR@y8^_uteT6*i!`9@Sly{IvL#eVh00 z6K+GjVX8Sj$IG^Xa^-A6`Eu}?X+KA~!^B!`ikti`jF)!u$~CHgtL8?3{Ym*8`R=n(ZlSiZ zX3k@8-%Q>5#P8)fsAhidhTlxInRZX;U!H5^y}3;*)E}eOrs$%gOZAZ)yVYiq`naHd zGB%0V^j;D-41?W=58AlICwy;f=V!Gk>wnG9vEevFv3@q{>_ltbsz36|nyB;DHm#?u zt=-a>`ec#Ab*N3*<7DlshVQW3R9QE5E;P!s>uT^OkoCykTdHw-#`s%p9#?yq6J@oz zFKm}OK6ZZJB(`hHLstIX5XRCX&*C<1R3D6X{yWv)E;+i3_ion16YSHQ>{(K;G41zs z@s*fzY`nLh)|f1ExDU0N`i>vpaDAz0lQwy0WcNm@m1Ng5F{WwrXxcRqW3?HtiJ>n( zpG)USIwtLu<=v7^>#D@b+A3#UOwFzCEgOMIFS_pV`W(#Orfrf2PVG|aG#lpED%AAMXGj4>@3 zBi?_ph38ENf*ru7d&9FdAi zCn!(Q>!#cRPMLPmpJ@3ta2VJ$V9%$at+mPX%qX-KpE>)Y&iTSwDJqO-EnHgu4z94Y z+Vhe6@y*8z$(q@N-xTFMiyZD7)@D46 z2Alky{8h!@nm(X1+Qw3ETW!iS4%*7GpRY;uwV%8T@ZDSaoqCeXw{s6$UZf5N`N=wL z{TeC5eOB5WMPILgGeDE*QP#~dKs2K%3vFIaXYwB0YF_r{d(-%!P0qbrfc~yTF-|}5 z?I0MdrGvEw31I~am;0!ne&VV!E3^)VMfHU9>I0MdrGvEw3 o1I~am;0!ne&VV!E3^)VMfHU9>I0MdrGvEw31I~amP(K6z05G!jw*UYD literal 0 HcmV?d00001 diff --git a/src/main.rs b/src/main.rs index 239a5be..b0c2465 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,8 +11,9 @@ use std::sync::Arc; use bridge::{CoreUIMsg, ReceiveSuccessMsg, SendSuccessMsg}; use iced::subscription::Subscription; use iced::widget::row; -use iced::Element; +use iced::window::icon::from_rgba; use iced::{clipboard, program, Color}; +use iced::{window, Element, Settings}; use iced::{Command, Font}; use log::{error, info}; @@ -31,6 +32,12 @@ pub mod routes; // We can also run logic during load if we need to. pub fn main() -> iced::Result { pretty_env_logger::init(); + let icon = from_rgba( + include_bytes!("../assets/harbor_logo.rgba").to_vec(), + 167, + 61, + ) + .unwrap(); program("Harbor", HarborWallet::update, HarborWallet::view) // .load(HarborWallet::load) .font(include_bytes!("../assets/fonts/Inter-Regular.ttf").as_slice()) @@ -43,6 +50,13 @@ pub fn main() -> iced::Result { style: iced::font::Style::Normal, }) .subscription(HarborWallet::subscription) + .settings(Settings { + window: window::Settings { + icon: Some(icon), + ..Default::default() + }, + ..Default::default() + }) .run() }