From 142bf3bbc0161be1b7d909c8c6c19c6ad079ec8e Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Wed, 15 Mar 2017 13:50:28 +0100 Subject: [PATCH] Add appearance names --- Cargo.toml | 2 +- src/appkit.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1f57bc8..63bdf3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "cocoa" description = "Bindings to Cocoa for OS X" homepage = "https://github.com/servo/cocoa-rs" repository = "https://github.com/servo/cocoa-rs" -version = "0.8.0" +version = "0.8.1" authors = ["The Servo Project Developers"] license = "MIT / Apache-2.0" diff --git a/src/appkit.rs b/src/appkit.rs index 3996612..8b82aa4 100644 --- a/src/appkit.rs +++ b/src/appkit.rs @@ -81,6 +81,10 @@ extern { // Pasteboard reading options - OS X v10.6 and later. (NSString *) pub static NSPasteboardURLReadingFileURLsOnlyKey: id; pub static NSPasteboardURLReadingContentsConformToTypesKey: id; + + // NSAppearance names. (NSString *) + pub static NSAppearanceNameVibrantDark: id; + pub static NSAppearanceNameVibrantLight: id; } pub const NSAppKitVersionNumber10_0: f64 = 577.0;