@@ -11,14 +11,15 @@ public class UnityShellEditorWindow : EditorWindow
1111static class Styles
1212{
1313public 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
2324static Texture2D _backgroundTexture ;
2425public static Texture2D backgroundTexture
@@ -28,7 +29,7 @@ public static Texture2D backgroundTexture
2829if ( _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}
3435return _backgroundTexture ;
0 commit comments