From 904fd52db9b234ba7aebb832cf8078a5b650fa21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mauro=20=F0=9F=A4=99?= Date: Mon, 19 Aug 2024 09:38:01 +0000 Subject: [PATCH] chore: Update callouts style for better readability --- .../themes-marketplace-preferences.md | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/content/themes-store/themes-marketplace-preferences.md b/content/themes-store/themes-marketplace-preferences.md index 8bd1c28..6220ab2 100644 --- a/content/themes-store/themes-marketplace-preferences.md +++ b/content/themes-store/themes-marketplace-preferences.md @@ -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. > [!info] -> Note: Other values such as strings or numbers may be supported in the future. For now, only booleans are supported. \ No newline at end of file +> 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", +} +``` \ No newline at end of file