Skip to content

Commit

Permalink
rename namespace and add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
haoguo committed Nov 25, 2019
1 parent 221ad66 commit c4f25b8
Show file tree
Hide file tree
Showing 96 changed files with 346 additions and 161 deletions.
Binary file added Assets/Resources/Images/icon_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions Assets/Resources/Images/icon_black.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Resources/Images/icon_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions Assets/Resources/Images/icon_white.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Assets/Scripts/Components/Banner/Banner.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using DocCN.Utility;
using Unity.DocZh.Utility;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.rendering;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using TextStyle = Unity.UIWidgets.painting.TextStyle;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public class Banner : StatelessWidget
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Linq;
using DocCN.Models.Json;
using Unity.DocZh.Models.Json;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.widgets;
using TextStyle = Unity.UIWidgets.painting.TextStyle;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class Breadcrumbs
{
Expand Down
6 changes: 3 additions & 3 deletions Assets/Scripts/Components/Breadcrumbs/Breadcrumbs.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Linq;
using DocCN.Models.Json;
using DocCN.Utility;
using Unity.DocZh.Models.Json;
using Unity.DocZh.Utility;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.widgets;
using TextStyle = Unity.UIWidgets.painting.TextStyle;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class Breadcrumbs : StatelessWidget
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/Button/Button.State.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class Button
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/Button/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.widgets;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class Button : StatefulWidget
{
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/Components/Clickable/Clickable.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using DocCN.Utility;
using Unity.DocZh.Utility;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.widgets;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public class Clickable : StatelessWidget
{
Expand Down
6 changes: 3 additions & 3 deletions Assets/Scripts/Components/CopyIcon/CopyIcon.State.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Collections.Generic;
using DocCN.Style;
using DocCN.Utility;
using Unity.DocZh.Style;
using Unity.DocZh.Utility;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class CopyIcon
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/CopyIcon/CopyIcon.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.widgets;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class CopyIcon : StatefulWidget
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/DocApp/DocApp.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.widgets;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public class DocApp : StatefulWidget
{
Expand Down
14 changes: 7 additions & 7 deletions Assets/Scripts/Components/DocApp/DocAppState.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using DocCN.Pages;
using DocCN.Utility;
using Newtonsoft.Json;
using Unity.DocZh.Pages;
using Unity.DocZh.Utility;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.widgets;
using UnityEngine.Networking;
using Version = DocCN.Models.Json.Version;
using Version = Unity.DocZh.Models.Json.Version;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public class DocAppState : State<DocApp>
{
Expand All @@ -18,9 +18,9 @@ public class DocAppState : State<DocApp>
private string _currentPath = "/";
private ScrollController _controller;
private bool _overwriteUnknown;
private Version _version;
private Models.Json.Version _version;

public Version version => _version;
public Models.Json.Version version => _version;

static DocAppState()
{
Expand Down Expand Up @@ -80,7 +80,7 @@ public override void initState()
using (WindowProvider.of(context).getScope())
{
var content = DownloadHandlerBuffer.GetContent(request);
var model = JsonConvert.DeserializeObject<Version>(content);
var model = JsonConvert.DeserializeObject<Models.Json.Version>(content);
setState(() => _version = model);
}
};
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/DocApp/StringExtension.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
internal static partial class StringExtension
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/DropDown/DropDown.Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Unity.UIWidgets.widgets;
using Color = Unity.UIWidgets.ui.Color;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class DropDown<T>
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/DropDown/DropDown.State.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Unity.UIWidgets.widgets;
using UnityEngine;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class DropDown<T>
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/DropDown/DropDown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public enum DropDownDirection
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/Footer/Footer.Styles.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Unity.UIWidgets.painting;
using Unity.UIWidgets.ui;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class Footer
{
Expand Down
6 changes: 3 additions & 3 deletions Assets/Scripts/Components/Footer/Footer.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using System;
using System.Collections.Generic;
using DocCN.Style;
using DocCN.Utility;
using Unity.DocZh.Style;
using Unity.DocZh.Utility;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.rendering;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using Color = Unity.UIWidgets.ui.Color;

namespace DocCN.Components
namespace Unity.DocZh.Components
{
public partial class Footer : StatelessWidget
{
Expand Down
Loading

0 comments on commit c4f25b8

Please sign in to comment.