diff --git a/website/docs/reference/options.mdx b/website/docs/reference/options.mdx index d2d018c28..72cc5f358 100644 --- a/website/docs/reference/options.mdx +++ b/website/docs/reference/options.mdx @@ -64,6 +64,10 @@ func main() { }, // User messages that can be customised Messages *windows.Messages + // OnSuspend is called when Windows enters low power mode + OnSuspend func() + // OnResume is called when Windows resumes from low power mode + OnResume func() }, Mac: &mac.Options{ TitleBar: &mac.TitleBar{ @@ -402,10 +406,10 @@ Requires Windows 11 build 22621 or later. Sets the translucency type of the window. This is only applicable if [WindowIsTranslucent](#WindowIsTranslucent) is set to `true`. -Name: BackdropType +Name: BackdropType
Type `windows.BackdropType` -The Type can be one of the following: +The value can be one of the following: | Value | Description | |---------|-------------------------------------------------------------------------------------------| @@ -544,14 +548,14 @@ Type: `uint16` #### OnSuspend -If set, this function will be called when windows initiates a switch to low power mode (suspend/hibernate) +If set, this function will be called when Windows initiates a switch to low power mode (suspend/hibernate) Name: OnSuspend
Type: `func()` #### OnResume -If set, this function will be called when windows resumes from low power mode (suspend/hibernate) +If set, this function will be called when Windows resumes from low power mode (suspend/hibernate) Name: OnResume
Type: `func()` diff --git a/website/src/css/custom.css b/website/src/css/custom.css index a0d87d212..968bd8324 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -218,4 +218,12 @@ cite { font-size: 12px; margin: 0; padding: 0; +} + +.docMainContainer_node_modules-\@docusaurus-theme-classic-lib-theme-DocPage-Layout-Main-styles-module .container .row .col { + display: inline-flex; + width: 50%; + align-content: flex-end; + flex-direction: column; + justify-content: flex-start; } \ No newline at end of file