-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# macOS System Files | ||
*.DS_Store | ||
|
||
# Folders and contents | ||
[Ll]ibrary/ | ||
[Tt]emp/ | ||
[Oo]bj/ | ||
[Bb]uild/ | ||
[Bb]uilds/ | ||
[Uu]IElementsSchema/ | ||
[Xx]code/ | ||
[Ll]ogs/ | ||
|
||
# Folders, contents, and metadata | ||
Assets/EntityCache* | ||
|
||
# Visual Studio and VS Code cache directory | ||
.vs/ | ||
.vscode/ | ||
|
||
# Autogenerated VS/MD/Consulo solution and project files | ||
ExportedObj/ | ||
.consulo/ | ||
*.csproj | ||
*.unityproj | ||
*.sln | ||
*.suo | ||
*.tmp | ||
*.user | ||
*.userprefs | ||
*.pidb | ||
*.booproj | ||
*.svd | ||
*.pdb | ||
*.opendb | ||
|
||
# Unity3D generated meta files | ||
*.pidb.meta | ||
*.pdb.meta | ||
|
||
# Unity3D Generated File On Crash Reports | ||
sysinfo.txt | ||
|
||
# Builds | ||
*.apk | ||
*.unitypackage | ||
|
||
# FMOD Stuff | ||
# =============== | ||
*.fmod_editor.log | ||
*.fmod.log | ||
fmod\.log | ||
fmod_editor\.log | ||
Assets/StreamingAssets/*.bank | ||
Assets/StreamingAssets/*.bank.meta | ||
Assets/Plugins/FMOD/Resources/FMODStudioCache.asset | ||
Assets/Plugins/FMOD/Resources/FMODStudioCache.asset.meta | ||
Assets/FMODStudioCache\.asset |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_IOS | ||
using System.Runtime.InteropServices; | ||
#endif | ||
|
||
public static class DarkDetector | ||
{ | ||
#if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX | ||
[DllImport("DarkDetectorMacOS")] | ||
#elif UNITY_IOS | ||
/// Instead of "DarkDetectorIOS" like I would have preferred, it seems that "__Internal" is required | ||
[DllImport("__Internal")] | ||
#endif | ||
private static extern bool _IsDarkModeEnabled(); | ||
|
||
public static bool IsDarkModeEnabled() | ||
{ | ||
#if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_IOS | ||
/// Return the value retrieved from the native plugin | ||
return _IsDarkModeEnabled(); | ||
#else | ||
/// Return dark theme = false (light theme) if the plugin is not supported on a platform | ||
return false; | ||
#endif | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>20A5354i</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>DarkDetectorMacOS</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>ifelse.DarkDetectorMacOS</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>DarkDetectorMacOS</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSupportedPlatforms</key> | ||
<array> | ||
<string>MacOSX</string> | ||
</array> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTPlatformBuild</key> | ||
<string>12A8189n</string> | ||
<key>DTPlatformName</key> | ||
<string>macosx</string> | ||
<key>DTPlatformVersion</key> | ||
<string>11.0</string> | ||
<key>DTSDKBuild</key> | ||
<string>20A5354g</string> | ||
<key>DTSDKName</key> | ||
<string>macosx11.0</string> | ||
<key>DTXcode</key> | ||
<string>1200</string> | ||
<key>DTXcodeBuild</key> | ||
<string>12A8189n</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>11.0</string> | ||
</dict> | ||
</plist> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>NSPrincipalClass</key> | ||
<string></string> | ||
</dict> | ||
</plist> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.