Compare commits

..

9 commits

Author SHA1 Message Date
b19806af97 content view pointer 2024-02-08 15:16:43 +11:00
65b32e79c0 add checkmark for menu items 2023-11-28 16:20:28 +11:00
4fd93e3fae event: get current modifier flags 2023-11-27 12:23:41 +11:00
Alex Janka
0e3c2dc037
Merge branch 'ryanmcgrath:trunk' into trunk 2023-11-23 12:11:34 +11:00
6144e9f244 add set enabled to textfield 2023-11-03 10:07:10 +11:00
6a3ed259b2 more stepper bits 2023-11-02 21:32:29 +11:00
ddd0237347 some more input bits 2023-11-02 21:32:18 +11:00
292390c05c add stepper 2023-11-02 10:59:31 +11:00
196fade777 bump objc beta 2023-11-02 10:42:53 +11:00

View file

@ -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(),