@@ -13,8 +13,8 @@ use crate::{
1313 app:: { Message , Page , RUSTCAST_DESC_NAME } ,
1414 clipboard:: ClipBoardContentType ,
1515 commands:: Function ,
16+ cross_platform:: get_img_handle,
1617 styles:: { result_button_style, result_row_container_style} ,
17- utils:: handle_from_icns,
1818} ;
1919
2020/// This tells each "App" what to do when it is clicked, whether it is a function, a message, or a display
@@ -73,7 +73,7 @@ impl App {
7373 App {
7474 open_command: AppCommand :: Function ( Function :: Quit ) ,
7575 desc: RUSTCAST_DESC_NAME . to_string( ) ,
76- icons: handle_from_icns ( Path :: new(
76+ icons: get_img_handle ( Path :: new(
7777 "/Applications/Rustcast.app/Contents/Resources/icon.icns" ,
7878 ) ) ,
7979 name: "Quit RustCast" . to_string( ) ,
@@ -82,7 +82,7 @@ impl App {
8282 App {
8383 open_command: AppCommand :: Function ( Function :: OpenPrefPane ) ,
8484 desc: RUSTCAST_DESC_NAME . to_string( ) ,
85- icons: handle_from_icns ( Path :: new(
85+ icons: get_img_handle ( Path :: new(
8686 "/Applications/Rustcast.app/Contents/Resources/icon.icns" ,
8787 ) ) ,
8888 name: "Open RustCast Preferences" . to_string( ) ,
@@ -91,7 +91,7 @@ impl App {
9191 App {
9292 open_command: AppCommand :: Message ( Message :: SwitchToPage ( Page :: EmojiSearch ) ) ,
9393 desc: RUSTCAST_DESC_NAME . to_string( ) ,
94- icons: handle_from_icns ( Path :: new(
94+ icons: get_img_handle ( Path :: new(
9595 "/Applications/Rustcast.app/Contents/Resources/icon.icns" ,
9696 ) ) ,
9797 name: "Search for an Emoji" . to_string( ) ,
@@ -100,7 +100,7 @@ impl App {
100100 App {
101101 open_command: AppCommand :: Message ( Message :: SwitchToPage ( Page :: ClipboardHistory ) ) ,
102102 desc: RUSTCAST_DESC_NAME . to_string( ) ,
103- icons: handle_from_icns ( Path :: new(
103+ icons: get_img_handle ( Path :: new(
104104 "/Applications/Rustcast.app/Contents/Resources/icon.icns" ,
105105 ) ) ,
106106 name: "Clipboard History" . to_string( ) ,
@@ -109,7 +109,7 @@ impl App {
109109 App {
110110 open_command: AppCommand :: Message ( Message :: ReloadConfig ) ,
111111 desc: RUSTCAST_DESC_NAME . to_string( ) ,
112- icons: handle_from_icns ( Path :: new(
112+ icons: get_img_handle ( Path :: new(
113113 "/Applications/Rustcast.app/Contents/Resources/icon.icns" ,
114114 ) ) ,
115115 name: "Reload RustCast" . to_string( ) ,
@@ -118,7 +118,7 @@ impl App {
118118 App {
119119 open_command: AppCommand :: Display ,
120120 desc: RUSTCAST_DESC_NAME . to_string( ) ,
121- icons: handle_from_icns ( Path :: new(
121+ icons: get_img_handle ( Path :: new(
122122 "/Applications/Rustcast.app/Contents/Resources/icon.icns" ,
123123 ) ) ,
124124 name: format!( "Current RustCast Version: {app_version}" ) ,
@@ -129,7 +129,7 @@ impl App {
129129 "/System/Library/CoreServices/Finder.app" . to_string( ) ,
130130 ) ) ,
131131 desc: "Application" . to_string( ) ,
132- icons: handle_from_icns ( Path :: new(
132+ icons: get_img_handle ( Path :: new(
133133 "/System/Library/CoreServices/Finder.app/Contents/Resources/Finder.icns" ,
134134 ) ) ,
135135 name: "Finder" . to_string( ) ,
0 commit comments