Skip to content

Windows Client

Introduction

The Windows platform client was introduced starting from Xdows Security 4.0 Beta-7.

The client is built using the ACF Browser Framework.

About the ACF Browser Framework

Original Author: Admenri

Note: Please pay attention to the relevant licenses when using this project.

Related Link: Here (Chinese Page)

Developer Tools

In normal mode, the client disables the context menu and does not allow shortcuts such as F12 or Ctrl Shift J to open the Developer Tools.

You can click the button next to the title bar icon (as shown below). After clicking, it may take a few seconds for the Developer Tools to open.

Developer Tools Open Button

Can't find this button?

If your color mode is set to Dark Mode

This button will be hidden. Please switch to Light Mode to continue.

Client Communication

In the browser environment of the client, you can communicate with it through the Client class.

You can use postMessage to execute client interfaces. The usage is as follows:

js
if (top.getBrowserType() == 'Client'){
    Client.postMessage(
        "FunctionName",
        "Parameter1",
        "Parameter2",
        "Parameter3",
        "..."
    );
};

ChangeTheme

This function is used to change the client window theme (related colors). Example:

js
if (top.getBrowserType() == 'Client'){
    Client.postMessage(
        "ChangeTheme",
        "Parameter1", // --Background-color variable value
        "Parameter2", // --Text-color variable value
        "Parameter3", // --Theme-color variable value
        "Parameter4", // --Theme-Background-color variable value
        "Parameter5"  // light or dark
    );
};

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.