chore: Fix typos (#45825)

This commit is contained in:
co63oc 2025-02-27 21:31:21 +08:00 committed by GitHub
parent ff05d4a96c
commit 96c2022483
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View file

@ -45,7 +45,7 @@ def windows_profile():
win_sdk_dir = SetEnvironmentAndGetSDKDir() win_sdk_dir = SetEnvironmentAndGetSDKDir()
path = NormalizePath(os.environ['GYP_MSVS_OVERRIDE_PATH']) path = NormalizePath(os.environ['GYP_MSVS_OVERRIDE_PATH'])
# since current windows executable are symbols path dependant, # since current windows executable are symbols path dependent,
# profile the current directory too # profile the current directory too
return { return {
'pwd': os.getcwd(), 'pwd': os.getcwd(),

View file

@ -4,7 +4,7 @@ function createWindow () {
const win = new BrowserWindow({ const win = new BrowserWindow({
// remove the default titlebar // remove the default titlebar
titleBarStyle: 'hidden', titleBarStyle: 'hidden',
// expose window controlls in Windows/Linux // expose window controls in Windows/Linux
...(process.platform !== 'darwin' ? { titleBarOverlay: true } : {}) ...(process.platform !== 'darwin' ? { titleBarOverlay: true } : {})
}) })

View file

@ -4,7 +4,7 @@ function createWindow () {
const win = new BrowserWindow({ const win = new BrowserWindow({
// remove the default titlebar // remove the default titlebar
titleBarStyle: 'hidden', titleBarStyle: 'hidden',
// expose window controlls in Windows/Linux // expose window controls in Windows/Linux
...(process.platform !== 'darwin' ? { titleBarOverlay: true } : {}) ...(process.platform !== 'darwin' ? { titleBarOverlay: true } : {})
}) })

View file

@ -4,7 +4,7 @@ function createWindow () {
const win = new BrowserWindow({ const win = new BrowserWindow({
// remove the default titlebar // remove the default titlebar
titleBarStyle: 'hidden', titleBarStyle: 'hidden',
// expose window controlls in Windows/Linux // expose window controls in Windows/Linux
...(process.platform !== 'darwin' ? { titleBarOverlay: true } : {}) ...(process.platform !== 'darwin' ? { titleBarOverlay: true } : {})
}) })
win.loadURL('https://example.com') win.loadURL('https://example.com')

View file

@ -5,7 +5,7 @@
Application windows have a default [chrome][] applied by the OS. Not to be confused Application windows have a default [chrome][] applied by the OS. Not to be confused
with the Google Chrome browser, window _chrome_ refers to the parts of the window (e.g. with the Google Chrome browser, window _chrome_ refers to the parts of the window (e.g.
title bar, toolbars, controls) that are not a part of the main web content. While the title bar, toolbars, controls) that are not a part of the main web content. While the
default title bar provided by the OS chrome is sufficent for simple use cases, many default title bar provided by the OS chrome is sufficient for simple use cases, many
applications opt to remove it. Implementing a custom title bar can help your application applications opt to remove it. Implementing a custom title bar can help your application
feel more modern and consistent across platforms. feel more modern and consistent across platforms.

View file

@ -19,7 +19,7 @@ To create a frameless window, set the [`BaseWindowContructorOptions`][] `frame`
To create a fully transparent window, set the [`BaseWindowContructorOptions`][] `transparent` param in the `BrowserWindow` constructor to `true`. To create a fully transparent window, set the [`BaseWindowContructorOptions`][] `transparent` param in the `BrowserWindow` constructor to `true`.
The following fiddle takes advantage of a tranparent window and CSS styling to create The following fiddle takes advantage of a transparent window and CSS styling to create
the illusion of a circular window. the illusion of a circular window.
```fiddle docs/fiddles/features/window-customization/custom-window-styles/transparent-windows ```fiddle docs/fiddles/features/window-customization/custom-window-styles/transparent-windows