Skip to content

Commit 5ec3a5e

Browse files
author
Johannes Deml
committed
Change implement changes suggested by wolfreak99
1 parent 6fb14c9 commit 5ec3a5e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Assets/UnityShell/Editor/Scripts/UnityShellEditorWindow.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ public class UnityShellEditorWindow : EditorWindow
1111
static class Styles
1212
{
1313
public static readonly GUIStyle textAreaStyle;
14+
1415
// Default background Color(0.76f, 0.76f, 0.76f)
15-
public static Color BgColorLightSkin = new Color(0.87f, 0.87f, 0.87f);
16+
private static readonly Color BgColorLightSkin = new Color(0.87f, 0.87f, 0.87f);
1617
// Default background Color(0.22f, 0.22f, 0.22f)
17-
public static Color BgColorDarkSkin = new Color(0.11f, 0.11f, 0.11f);
18+
private static readonly Color BgColorDarkSkin = new Color(0.11f, 0.11f, 0.11f);
1819
// Default text Color(0.0f, 0.0f, 0.0f)
19-
public static Color TextColorLightSkin = new Color(0.0f, 0.0f, 0.0f);
20+
private static readonly Color TextColorLightSkin = new Color(0.0f, 0.0f, 0.0f);
2021
// Default text Color(0.706f, 0.706f, 0.706f)
21-
public static Color TextColorDarkSkin = new Color(0.706f, 0.706f, 0.706f);
22+
private static readonly Color TextColorDarkSkin = new Color(0.706f, 0.706f, 0.706f);
2223

2324
static Texture2D _backgroundTexture;
2425
public static Texture2D backgroundTexture
@@ -28,7 +29,7 @@ public static Texture2D backgroundTexture
2829
if(_backgroundTexture == null)
2930
{
3031
_backgroundTexture = new Texture2D(1, 1, TextureFormat.RGBA32, false, true);
31-
_backgroundTexture.SetPixel(0, 0, EditorGUIUtility.isProSkin?BgColorDarkSkin:BgColorLightSkin);
32+
_backgroundTexture.SetPixel(0, 0, EditorGUIUtility.isProSkin ? BgColorDarkSkin : BgColorLightSkin);
3233
_backgroundTexture.Apply();
3334
}
3435
return _backgroundTexture;

0 commit comments

Comments
 (0)