Skip to content

Commit

Permalink
fixed grammar, improved clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
n7itro committed Sep 16, 2024
1 parent 9dcaf43 commit 7cdd750
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions content/themes-store/themes-marketplace-preferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,28 +351,26 @@ This allows users to:
---


# Operating system specific settings
## Operating system specific settings

Some preferences may require to be available only for some operating systems. For example, imagine you want an extension that hides the window's apllication buttons (minimize, maximize, close) on Windows and linux but not on macOS, because macos doesn't provide a way to clear them individually. You can use a prefix to specify the operating system the preference is available for.
Some CSS modifications may not function properly on all operating systems. You can use a prefix to specify what operating system the preference should be available for.

The prefix is the operating system name in lowercase, followed by a `:`.
The prefix is the operating system name in lowercase, followed by a colon (`:`)

> [!info]
> If you want to use a negative condition, you can use the `!` character before the operating system name.
> If you want to use a negative condition, you can use the `!` operator before the operating system name.
Here's an example of a preference that is only available on Windows and Linux:
For example

```json
{
"!macos:uc.theme.hide-window-close.enabled": "Hide window close button",
"!macos:theme.mytheme.not-macos": "Apply for Linux and Windows",
...
}
```

or for another example:

```json
{
"windows:uc.theme.change-this-only-for-windows.enabled": "Change this only for Windows",
"windows:theme.mytheme.windows-only": "Apply for Windows",
}
```

0 comments on commit 7cdd750

Please sign in to comment.