Skip to content

Commit 295c6b8

Browse files
committed
clear background based on skin
1 parent d70c1e7 commit 295c6b8

File tree

7 files changed

+189
-7
lines changed

7 files changed

+189
-7
lines changed

Editor/Scripts/MarkdownViewer.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,7 @@ public void Draw()
121121
// clear background
122122

123123
var rectFullScreen = new Rect( 0.0f, rectContainer.yMin - 4.0f, Screen.width, Screen.height );
124-
125-
if( mSkin.name != "MarkdownSkinQS" )
126-
{
127-
GUI.DrawTexture( rectFullScreen, EditorGUIUtility.whiteTexture, ScaleMode.StretchToFill, false );
128-
}
124+
GUI.DrawTexture( rectFullScreen, GUI.skin.window.normal.background, ScaleMode.StretchToFill, false );
129125

130126
// scroll window
131127

Editor/Skin/MarkdownSkinQS.guiskin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ MonoBehaviour:
418418
m_window:
419419
m_Name: window
420420
m_Normal:
421-
m_Background: {fileID: 0}
421+
m_Background: {fileID: 2800000, guid: 8ac65589526b93a48a776312c315c546, type: 3}
422422
m_ScaledBackgrounds: []
423423
m_TextColor: {r: 0.9245283, g: 0.9245283, b: 0.9245283, a: 1}
424424
m_Hover:

Editor/Skin/MarkdownViewerSkin.guiskin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ MonoBehaviour:
418418
m_window:
419419
m_Name: window
420420
m_Normal:
421-
m_Background: {fileID: 0}
421+
m_Background: {fileID: 2800000, guid: d3c262e12fc42f04c8ed40e9899aae8a, type: 3}
422422
m_ScaledBackgrounds: []
423423
m_TextColor: {r: 0, g: 0, b: 0, a: 1}
424424
m_Hover:

Editor/Skin/background_qs.png

150 Bytes
Loading

Editor/Skin/background_qs.png.meta

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Skin/white.png

119 Bytes
Loading

Editor/Skin/white.png.meta

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)