Skip to content

Commit

Permalink
Merge branch 'main' into vNext
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Aug 31, 2023
2 parents 38558c4 + d75d285 commit 1668ec5
Show file tree
Hide file tree
Showing 306 changed files with 5,900 additions and 3,001 deletions.
8 changes: 8 additions & 0 deletions Documentation/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,14 @@ function uiHelpersSidebar() {
text: "WinForms",
link: "/ui-helpers/winforms",
},
{
text: "WindowHelpers",
link: "/ui-helpers/windowhelpers",
},
{
text: "WindowInfo",
link: "/ui-helpers/windowinfo",
},
{
text: "WPF",
link: "/ui-helpers/wpf",
Expand Down
38 changes: 21 additions & 17 deletions Documentation/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
:root {
/* brand colors */
--vp-c-brand: #00E0FF;
--vp-c-brand-light: #00E0FF;
--vp-c-brand-lighter: #00FF57;
--vp-c-brand-dark: #00E0FF;
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(135deg, #00E0FF 0%, #00FF57 100%);
/* brand colors */
--vp-c-brand: #00e0ff;
--vp-c-brand-1: #6aebfc;
--vp-c-brand-2: #00e0ff;
--vp-c-brand-3: #00b9d1;
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
135deg,
#00e0ff 0%,
#00ff57 100%
);
}

html.dark {
/* brand colors */
/* brand colors */

/* background colors */
--vp-c-bg: #0a0a1e;
--vp-c-bg-light: #141428;
--vp-c-bg-lighter: #1e1e32;
--vp-code-bg-color: #1e1e32;
--vp-c-black-mute: #1e1e32;
--vp-c-black: #1e1e32;
--vp-c-bg-soft: #1e1e32;
}
/* background colors */
--vp-c-bg: #0a0a1e;
--vp-c-bg-light: #141428;
--vp-c-bg-lighter: #1e1e32;
--vp-code-bg-color: #1e1e32;
--vp-c-black-mute: #1e1e32;
--vp-c-black: #1e1e32;
--vp-c-bg-soft: #1e1e32;
}
58 changes: 58 additions & 0 deletions Documentation/env/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,29 @@ using PeyrSharp.Env;
Sys.LaunchUWPApp("Microsoft.MinecraftUWP_8wekyb3d8bbwe", "App"); // Launch Minecraft UWP
```

### LaunchUWPApp(uwpApp)

#### Definition

Launches a UWP application using information from a [`UwpApp`](uwpapp.md) object.

::: warning
This method only works on Windows.
:::

#### Arguments

| Type | Name | Meaning |
| -------- | -------- | ------------------------------ |
| `UwpApp` | `uwpApp` | The UWP application to launch. |

#### Usage

```c#
using PeyrSharp.Env;
Sys.LaunchUWPApp(myApp);
```

### IsProcessRunning(processName)

#### Definition
Expand Down Expand Up @@ -279,6 +302,41 @@ if (Sys.IsDarkThemeSupported)
}
```

### CurrentTheme

#### Definition

```c#
[SupportedOSPlatform("windows")]
public static SystemThemes CurrentTheme { get; }
```

Gets the current theme. Returns a [`SystemThemes`](/enumerations.md#systemthemes) value. You can only `get` this property.

::: warning
This property only works on Windows 10/11.
:::

#### Usage

```c#
using Microsoft.Win32;
using PeyrSharp.Env;

if (Sys.CurrentTheme == SystemThemes.Light)
{
Console.WriteLine("The current theme is light.");
}
else if (Sys.CurrentTheme == SystemThemes.Dark)
{
Console.WriteLine("The current theme is dark.");
}
else
{
Console.WriteLine("The current theme is unknown."); // Might happen on other versions than Windows 10/11
}
```

### RunningProcesses

#### Definition
Expand Down
Loading

0 comments on commit 1668ec5

Please sign in to comment.