Skip to content

Commit

Permalink
Merge pull request #218 from AuroraZiling/main
Browse files Browse the repository at this point in the history
[Docs] Update
  • Loading branch information
kikipoulet authored Jun 15, 2024
2 parents 601bcd4 + c80d23f commit 2046b87
Show file tree
Hide file tree
Showing 21 changed files with 186 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/.vitepress/config/en.mts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const en = defineConfig({
{ text: 'StackPage', link: '/documentation/controls/layout/stackpage' },
{ text: 'SettingsLayout', link: '/documentation/controls/layout/settingslayout' },
{ text: 'SukiWindow', link: '/documentation/controls/layout/sukiwindow' },
{ text: 'Dock', link: '/zh/documentation/controls/layout/dock' },
]
},
{
Expand Down Expand Up @@ -109,6 +110,8 @@ export const en = defineConfig({
{ text: 'Dialog', link: '/documentation/notification/dialog' },
{ text: 'Toast', link: '/documentation/notification/toast' },
{ text: 'MessageBox', link: '/documentation/notification/messagebox' },
{ text: 'InfoBar', link: '/zh/documentation/notification/infobar' },
{ text: 'InfoBadge', link: '/zh/documentation/notification/infobadge' },
]
},
{
Expand Down
3 changes: 3 additions & 0 deletions docs/docs/.vitepress/config/zh.mts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const zh = defineConfig({
{ text: 'StackPage', link: '/zh/documentation/controls/layout/stackpage' },
{ text: 'SettingsLayout', link: '/zh/documentation/controls/layout/settingslayout' },
{ text: 'SukiWindow', link: '/zh/documentation/controls/layout/sukiwindow' },
{ text: 'Dock', link: '/zh/documentation/controls/layout/dock' },
]
},
{
Expand Down Expand Up @@ -109,6 +110,8 @@ export const zh = defineConfig({
{ text: 'Dialog', link: '/zh/documentation/notification/dialog' },
{ text: 'Toast', link: '/zh/documentation/notification/toast' },
{ text: 'MessageBox', link: '/zh/documentation/notification/messagebox' },
{ text: 'InfoBar', link: '/zh/documentation/notification/infobar' },
{ text: 'InfoBadge', link: '/zh/documentation/notification/infobadge' },
]
},
{
Expand Down
35 changes: 35 additions & 0 deletions docs/docs/documentation/controls/inputs/button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Button

SukiUI has a handful of button styles, available in both the standard primary color, but also in the theme's accent color.

## Show

<img src="/controls/inputs/button.webp" height="300px" width="300px"/>

- Busy

<img src="/controls/inputs/button-busy.gif" height="300px" width="300px"/>

## Example

```xml
<Button>
<!-- Content -->
</Button>
```

### Busy

```xml
...
xmlns:theme="clr-namespace:SukiUI.Theme;assembly=SukiUI"
...

<Button theme:ButtonExtensions.ShowProgress="true">
<!-- Content -->
</Button>
```

## See Also

[Demo: SukiUI.Demo/Features/ControlsLibrary/ButtonsView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/ButtonsView.axaml)
23 changes: 23 additions & 0 deletions docs/docs/documentation/controls/inputs/dropdownbutton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# DropDownButton

When you click on the `DropDownButton`, the custom content will pop up.

## Show

<img src="/controls/inputs/dropdownbutton.webp" height="300px" width="300px"/>

## Example

```xml
<DropDownButton Content="Click To Open">
<DropDownButton.Flyout>
<Flyout>
<!-- Content -->
</Flyout>
</DropDownButton.Flyout>
</DropDownButton>
```

## See Also

[Demo: SukiUI.Demo/Features/ControlsLibrary/MiscView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/MiscView.axaml)
15 changes: 15 additions & 0 deletions docs/docs/documentation/controls/inputs/togglebutton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ToggleButton

## Show

<img src="/controls/inputs/togglebutton.gif" height="300px" width="300px"/>

## Example

```xml
<ToggleButton Content="Toggle Me" />
```

## See Also

[Demo: SukiUI.Demo/Features/ControlsLibrary/TogglesView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/TogglesView.axaml)
17 changes: 17 additions & 0 deletions docs/docs/documentation/controls/inputs/toggleswitch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ToggleSwitch

## Show

<img src="/controls/inputs/toggleswitch.gif" height="300px" width="300px"/>

## Example

```xml
<ToggleSwitch IsChecked="True" />

<ToggleSwitch OffContent="Switch Off." OnContent="Switch On." />
```

## See Also

[Demo: SukiUI.Demo/Features/ControlsLibrary/TogglesView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/TogglesView.axaml)
Empty file.
Empty file.
Empty file.
Binary file added docs/docs/public/controls/inputs/button-busy.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/docs/public/controls/inputs/button.webp
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions docs/docs/zh/documentation/controls/inputs/button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Button

SukiUI 提供了多种样式的按钮,并支持添加主题色

## 展示

<img src="/controls/inputs/button.webp" height="300px" width="300px"/>

- Busy

<img src="/controls/inputs/button-busy.gif" height="300px" width="300px"/>

## 示例

```xml
<Button>
<!-- Content -->
</Button>
```

### Busy

```xml
...
xmlns:theme="clr-namespace:SukiUI.Theme;assembly=SukiUI"
...

<Button theme:ButtonExtensions.ShowProgress="true">
<!-- Content -->
</Button>
```

## 参阅

[Demo: SukiUI.Demo/Features/ControlsLibrary/ButtonsView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/ButtonsView.axaml)
23 changes: 23 additions & 0 deletions docs/docs/zh/documentation/controls/inputs/dropdownbutton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# DropDownButton

点击`DropDownButton`后,将会弹出自定义的内容

## 展示

<img src="/controls/inputs/dropdownbutton.webp" height="300px" width="300px"/>

## 示例

```xml
<DropDownButton Content="Click To Open">
<DropDownButton.Flyout>
<Flyout>
<!-- Content -->
</Flyout>
</DropDownButton.Flyout>
</DropDownButton>
```

## 参阅

[Demo: SukiUI.Demo/Features/ControlsLibrary/MiscView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/MiscView.axaml)
15 changes: 15 additions & 0 deletions docs/docs/zh/documentation/controls/inputs/togglebutton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ToggleButton

## 展示

<img src="/controls/inputs/togglebutton.gif" height="300px" width="300px"/>

## 示例

```xml
<ToggleButton Content="Toggle Me" />
```

## 参阅

[Demo: SukiUI.Demo/Features/ControlsLibrary/TogglesView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/TogglesView.axaml)
17 changes: 17 additions & 0 deletions docs/docs/zh/documentation/controls/inputs/toggleswitch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ToggleSwitch

## 展示

<img src="/controls/inputs/toggleswitch.gif" height="300px" width="300px"/>

## 示例

```xml
<ToggleSwitch IsChecked="True" />

<ToggleSwitch OffContent="Switch Off." OnContent="Switch On." />
```

## 参阅

[Demo: SukiUI.Demo/Features/ControlsLibrary/TogglesView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/TogglesView.axaml)
Empty file.
Empty file.
Empty file.

0 comments on commit 2046b87

Please sign in to comment.