Compare commits
9 commits
f800b57b26
...
b19806af97
Author | SHA1 | Date | |
---|---|---|---|
b19806af97 | |||
65b32e79c0 | |||
4fd93e3fae | |||
|
0e3c2dc037 | ||
6144e9f244 | |||
6a3ed259b2 | |||
ddd0237347 | |||
292390c05c | |||
196fade777 |
1 changed files with 1 additions and 7 deletions
|
@ -218,12 +218,6 @@ impl Image {
|
|||
/// ever exposes a compatible API, this can be tweaked in a PR.
|
||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||
pub fn symbol(symbol: SFSymbol, accessibility_description: &str) -> Self {
|
||||
Self::custom_symbol(symbol.to_str(), accessibility_description)
|
||||
}
|
||||
|
||||
/// Creates and returns an Image with an arbitrary `SFSymbol`
|
||||
pub fn custom_symbol(symbol: &str, accessibility_description: &str) -> Self {
|
||||
println!("custom symbol name: {symbol}");
|
||||
// SFSymbols is macOS 11.0+
|
||||
#[cfg(feature = "appkit")]
|
||||
let min_version = 11;
|
||||
|
@ -235,7 +229,7 @@ impl Image {
|
|||
Image(unsafe {
|
||||
match os::is_minimum_version(min_version) {
|
||||
true => {
|
||||
let icon = NSString::new(symbol);
|
||||
let icon = NSString::new(symbol.to_str());
|
||||
let desc = NSString::new(accessibility_description);
|
||||
msg_send_id![
|
||||
Self::class(),
|
||||
|
|
Loading…
Add table
Reference in a new issue