-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eba5a8d
commit 41deb8d
Showing
17 changed files
with
130 additions
and
119 deletions.
There are no files selected for viewing
21 changes: 19 additions & 2 deletions
21
Dark Detector Unity/Assets/Plugins/Dark Detector/DarkDetectorMacOS.bundle.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+16 Bytes
(100%)
...ty/Assets/Plugins/Dark Detector/DarkDetectorMacOS.bundle/Contents/MacOS/DarkDetectorMacOS
Binary file not shown.
24 changes: 0 additions & 24 deletions
24
...Unity/Assets/Plugins/Dark Detector/DarkDetectorMacOS.bundle/Contents/Resources/Info.plist
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
.../Assets/Plugins/Dark Detector/DarkDetectorMacOS.bundle/Contents/Resources/Info.plist.meta
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ectorMacOS.bundle/Contents/Resources.meta → .../Assets/Plugins/Dark Detector/Editor.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
Dark Detector Unity/Assets/Plugins/Dark Detector/Editor/EditorThemeSwitcher.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#if UNITY_EDITOR_OSX | ||
using UnityEditor; | ||
|
||
[InitializeOnLoad] | ||
public class EditorThemeSwitcher | ||
{ | ||
static EditorThemeSwitcher() | ||
{ | ||
EditorApplication.playModeStateChanged += CheckAndSwitchSkin; | ||
CheckAndSwitchSkin(PlayModeStateChange.EnteredEditMode); | ||
} | ||
|
||
static void CheckAndSwitchSkin(PlayModeStateChange state) | ||
{ | ||
if (state == PlayModeStateChange.EnteredEditMode) | ||
{ | ||
if (DarkDetector.IsDarkModeEnabled() ^ EditorGUIUtility.isProSkin) | ||
{ | ||
System.Reflection.Assembly.GetAssembly(typeof(UnityEditorInternal.AssetStore)).GetType("UnityEditorInternal.InternalEditorUtility", true).GetMethod("SwitchSkinAndRepaintAllViews").Invoke(null, null); | ||
} | ||
} | ||
} | ||
} | ||
#endif |
11 changes: 11 additions & 0 deletions
11
Dark Detector Unity/Assets/Plugins/Dark Detector/Editor/EditorThemeSwitcher.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
{ | ||
"dependencies": { | ||
"com.unity.2d.sprite": "1.0.0", | ||
"com.unity.burst": "1.4.0-preview.4", | ||
"com.unity.editorcoroutines": "1.0.0", | ||
"com.unity.ide.visualstudio": "2.0.2", | ||
"com.unity.ide.vscode": "1.2.1", | ||
"com.unity.inputsystem": "1.0.0", | ||
"com.unity.nuget.newtonsoft-json": "2.0.0", | ||
"com.unity.properties.ui": "1.5.0-preview", | ||
"com.unity.render-pipelines.universal": "10.0.0-preview.26", | ||
"com.unity.searcher": "4.3.1", | ||
"com.unity.test-framework": "1.1.16", | ||
"com.unity.test-framework.performance": "2.3.1-preview", | ||
"com.unity.textmeshpro": "3.0.1", | ||
"com.unity.ugui": "1.0.0", | ||
"nuget.mono-cecil": "0.1.6-preview", | ||
"com.unity.modules.ai": "1.0.0", | ||
"com.unity.modules.androidjni": "1.0.0", | ||
"com.unity.modules.animation": "1.0.0", | ||
"com.unity.modules.assetbundle": "1.0.0", | ||
"com.unity.modules.audio": "1.0.0", | ||
"com.unity.modules.director": "1.0.0", | ||
"com.unity.modules.imageconversion": "1.0.0", | ||
"com.unity.modules.imgui": "1.0.0", | ||
"com.unity.modules.jsonserialize": "1.0.0", | ||
"com.unity.modules.particlesystem": "1.0.0", | ||
"com.unity.modules.physics": "1.0.0", | ||
"com.unity.modules.physics2d": "1.0.0", | ||
"com.unity.modules.screencapture": "1.0.0", | ||
"com.unity.modules.ui": "1.0.0", | ||
"com.unity.modules.uielements": "1.0.0", | ||
"com.unity.modules.umbra": "1.0.0", | ||
"com.unity.modules.unityanalytics": "1.0.0", | ||
"com.unity.modules.unitywebrequest": "1.0.0", | ||
"com.unity.modules.unitywebrequestassetbundle": "1.0.0", | ||
"com.unity.modules.unitywebrequestaudio": "1.0.0", | ||
"com.unity.modules.unitywebrequesttexture": "1.0.0", | ||
"com.unity.modules.unitywebrequestwww": "1.0.0", | ||
"com.unity.modules.vr": "1.0.0", | ||
"com.unity.modules.wind": "1.0.0", | ||
"com.unity.modules.xr": "1.0.0" | ||
} | ||
} | ||
"dependencies": { | ||
"com.unity.2d.sprite": "1.0.0", | ||
"com.unity.burst": "1.4.0-preview.4", | ||
"com.unity.editorcoroutines": "1.0.0", | ||
"com.unity.ide.visualstudio": "2.0.5", | ||
"com.unity.ide.vscode": "1.2.3", | ||
"com.unity.inputsystem": "1.0.2", | ||
"com.unity.nuget.newtonsoft-json": "2.0.0", | ||
"com.unity.properties.ui": "1.5.0-preview", | ||
"com.unity.render-pipelines.universal": "10.3.1", | ||
"com.unity.searcher": "4.3.1", | ||
"com.unity.test-framework": "1.1.22", | ||
"com.unity.test-framework.performance": "2.3.1-preview", | ||
"com.unity.textmeshpro": "3.0.1", | ||
"com.unity.ugui": "1.0.0", | ||
"nuget.mono-cecil": "0.1.6-preview", | ||
"com.unity.modules.ai": "1.0.0", | ||
"com.unity.modules.androidjni": "1.0.0", | ||
"com.unity.modules.animation": "1.0.0", | ||
"com.unity.modules.assetbundle": "1.0.0", | ||
"com.unity.modules.audio": "1.0.0", | ||
"com.unity.modules.director": "1.0.0", | ||
"com.unity.modules.imageconversion": "1.0.0", | ||
"com.unity.modules.imgui": "1.0.0", | ||
"com.unity.modules.jsonserialize": "1.0.0", | ||
"com.unity.modules.particlesystem": "1.0.0", | ||
"com.unity.modules.physics": "1.0.0", | ||
"com.unity.modules.physics2d": "1.0.0", | ||
"com.unity.modules.screencapture": "1.0.0", | ||
"com.unity.modules.ui": "1.0.0", | ||
"com.unity.modules.uielements": "1.0.0", | ||
"com.unity.modules.umbra": "1.0.0", | ||
"com.unity.modules.unityanalytics": "1.0.0", | ||
"com.unity.modules.unitywebrequest": "1.0.0", | ||
"com.unity.modules.unitywebrequestassetbundle": "1.0.0", | ||
"com.unity.modules.unitywebrequestaudio": "1.0.0", | ||
"com.unity.modules.unitywebrequesttexture": "1.0.0", | ||
"com.unity.modules.unitywebrequestwww": "1.0.0", | ||
"com.unity.modules.vr": "1.0.0", | ||
"com.unity.modules.wind": "1.0.0", | ||
"com.unity.modules.xr": "1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
m_EditorVersion: 2020.2.0a21 | ||
m_EditorVersionWithRevision: 2020.2.0a21 (3e0d5f775006) | ||
m_EditorVersion: 2020.2.6f1 | ||
m_EditorVersionWithRevision: 2020.2.6f1 (8a2143876886) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.