Skip to content

Commit

Permalink
chore!: rename remoteURL to syncURL
Browse files Browse the repository at this point in the history
  • Loading branch information
subframe7536 committed Jan 12, 2025
1 parent 7b04730 commit c8a1875
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,25 +202,25 @@ See in [#6](https://github.com/subframe7536/vscode-custom-ui-style/issues/6)

<!-- configs -->

| Key | Description | Type | Default |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | --------- | ----------- |
| `custom-ui-style.preferRestart` | Prefer to restart vscode after update instead of reload window only (ALWAYS true when VSCode version &gt;= 1.95.0) | `boolean` | `false` |
| `custom-ui-style.reloadWithoutPrompting` | Reload/restart immediately, instead of having to click 'Reload Window' in the notification | `boolean` | `false` |
| `custom-ui-style.watch` | Watch configuration changes and reload window automatically (ignore imports) | `boolean` | `true` |
| `custom-ui-style.electron` | Electron BrowserWindow options | `object` | `{}` |
| `custom-ui-style.font.monospace` | Global monospace font family that apply in both editor and webview, fallback to editor's font family | `string` | `` |
| `custom-ui-style.font.sansSerif` | Global sans-serif font family that apply in both editor and webview | `string` | `` |
| `custom-ui-style.background.url` | Full-screen background image url (will not sync), support protocol: 'https://', 'file://', 'data:' | `string` | `` |
| `custom-ui-style.background.remoteURL` | Full-screen background image remote url (will sync), has lower priority than 'Url', support protocol: 'https://', 'file://', 'data:' | `string` | `` |
| `custom-ui-style.background.opacity` | Background image opacity (0 ~ 1) | `number` | `0.9` |
| `custom-ui-style.background.size` | Background image size | `string` | `"cover"` |
| `custom-ui-style.background.position` | Background image position | `string` | `"center"` |
| `custom-ui-style.external.loadStrategy` | Load strategy for external CSS or JS resources | `string` | `"refetch"` |
| `custom-ui-style.external.imports` | External CSS or JS resources, support protocol: 'https://', 'file://' | `array` | `` |
| `custom-ui-style.stylesheet` | Custom css for editor, support nest selectors | `object` | `{}` |
| `custom-ui-style.webview.monospaceSelector` | Custom monospace selector in webview | `array` | `` |
| `custom-ui-style.webview.sansSerifSelector` | Custom sans-serif selector in webview | `array` | `` |
| `custom-ui-style.webview.stylesheet` | Custom css for webview, support nest selectors | `object` | `{}` |
| Key | Description | Type | Default |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | ----------- |
| `custom-ui-style.preferRestart` | Prefer to restart vscode after update instead of reload window only (ALWAYS true when VSCode version &gt;= 1.95.0) | `boolean` | `false` |
| `custom-ui-style.reloadWithoutPrompting` | Reload/restart immediately, instead of having to click 'Reload Window' in the notification | `boolean` | `false` |
| `custom-ui-style.watch` | Watch configuration changes and reload window automatically (ignore imports) | `boolean` | `true` |
| `custom-ui-style.electron` | Electron BrowserWindow options | `object` | `{}` |
| `custom-ui-style.font.monospace` | Global monospace font family that apply in both editor and webview, fallback to editor's font family | `string` | `` |
| `custom-ui-style.font.sansSerif` | Global sans-serif font family that apply in both editor and webview | `string` | `` |
| `custom-ui-style.background.url` | Full-screen background image url (will not sync), support protocol: 'https://', 'file://', 'data:' | `string` | `` |
| `custom-ui-style.background.syncURL` | Full-screen background image url (will sync), support variable: [${userHome}, ${env:your_env_name:optional_fallback_value}], has lower priority than 'Url', support protocol: 'https://', 'file://', 'data:' | `string` | `` |
| `custom-ui-style.background.opacity` | Background image opacity (0 ~ 1) | `number` | `0.9` |
| `custom-ui-style.background.size` | Background image size | `string` | `"cover"` |
| `custom-ui-style.background.position` | Background image position | `string` | `"center"` |
| `custom-ui-style.external.loadStrategy` | Load strategy for external CSS or JS resources | `string` | `"refetch"` |
| `custom-ui-style.external.imports` | External CSS or JS resources, support variable: [${userHome}, ${env:your_env_name:optional_fallback_value}], support protocol: 'https://', 'file://' | `array` | `` |
| `custom-ui-style.stylesheet` | Custom css for editor, support nest selectors | `object` | `{}` |
| `custom-ui-style.webview.monospaceSelector` | Custom monospace selector in webview | `array` | `` |
| `custom-ui-style.webview.sansSerifSelector` | Custom sans-serif selector in webview | `array` | `` |
| `custom-ui-style.webview.stylesheet` | Custom css for webview, support nest selectors | `object` | `{}` |

<!-- configs -->

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@
"type": "string",
"description": "Full-screen background image url (will not sync), support protocol: 'https://', 'file://', 'data:'"
},
"custom-ui-style.background.remoteURL": {
"custom-ui-style.background.syncURL": {
"scope": "application",
"type": "string",
"description": "Full-screen background image remote url (will sync), has lower priority than 'Url', support protocol: 'https://', 'file://', 'data:'"
"description": "Full-screen background image url (will sync), support variable: [${userHome}, ${env:your_env_name:optional_fallback_value}], has lower priority than 'Url', support protocol: 'https://', 'file://', 'data:'"
},
"custom-ui-style.background.opacity": {
"scope": "application",
Expand Down Expand Up @@ -130,7 +130,7 @@
"custom-ui-style.external.imports": {
"scope": "application",
"type": "array",
"description": "External CSS or JS resources, support protocol: 'https://', 'file://'",
"description": "External CSS or JS resources, support variable: [${userHome}, ${env:your_env_name:optional_fallback_value}], support protocol: 'https://', 'file://'",
"items": {
"oneOf": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/manager/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function normalizeUrl(url: string) {
}

function generateBackgroundCSS() {
const url = config['background.url'] || config['background.remoteURL']
const url = config['background.url'] || config['background.syncURL']
if (!url) {
return ''
}
Expand Down

0 comments on commit c8a1875

Please sign in to comment.