mirror of
https://github.com/zen-browser/docs.git
synced 2025-07-07 17:05:34 +02:00
chore: Update callouts style for better readability
This commit is contained in:
parent
10cfd4284f
commit
904fd52db9
1 changed files with 27 additions and 1 deletions
|
@ -39,4 +39,30 @@ In the theme's CSS file, you can use the preference to change the background col
|
||||||
This settings will appear on the preferences page of the theme in the Zen Browser settings. Users can enable or disable the preference to change the background color of the browser.
|
This settings will appear on the preferences page of the theme in the Zen Browser settings. Users can enable or disable the preference to change the background color of the browser.
|
||||||
|
|
||||||
> [!info]
|
> [!info]
|
||||||
> Note: Other values such as strings or numbers may be supported in the future. For now, only booleans are supported.
|
> Note: Other values such as strings or numbers may be supported in the future. For now, only booleans are supported.
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
The prefix is the operating system name in lowercase, followed by a `:`.
|
||||||
|
|
||||||
|
> [!info]
|
||||||
|
> If you want to use a negative condition, you can use the `!` character before the operating system name.
|
||||||
|
|
||||||
|
Here's an example of a preference that is only available on Windows and Linux:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"!macos:uc.theme.hide-window-close.enabled": "Hide window close button",
|
||||||
|
...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
or for another example:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"windows:uc.theme.change-this-only-for-windows.enabled": "Change this only for Windows",
|
||||||
|
}
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue