Add theme: Custom uiFont

This commit is contained in:
lindongbin 2025-05-03 13:32:53 +00:00 committed by GitHub
parent 2e27bdad86
commit f1a5ad2fb4
5 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,7 @@
:root:has(#theme-Custom-uiFont[theme-custom_uifont-default="Serif"]) {
* {font-family: serif !important;}
}
:root:has(#theme-Custom-uiFont[theme-custom_uifont-default="Custom"]) {
* {font-family: var(--theme-custom_uifont-custom) !important; text-shadow: var(--theme-custom_uifont-shadow) !important;}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

View file

@ -0,0 +1,32 @@
[
{
"property": "theme.custom_uifont.default",
"label": "Select Font:",
"type": "dropdown",
"defaultValue": "Serif",
"options": [
{
"label": "Serif",
"value": "Serif"
},
{
"label": "Custom",
"value": "Custom"
}
]
},
{
"property": "theme.custom_uifont.custom",
"label": "font-family:",
"type": "string",
"placeholder": "sans-serif",
"defaultValue": "sans-serif"
},
{
"property": "theme.custom_uifont.shadow",
"label": "text-shadow:",
"type": "string",
"placeholder": "0.01em 0.01em 0.05em #7C7C7C70",
"defaultValue": "none"
}
]

View file

@ -0,0 +1,2 @@
Customize the interface font, the default is consistent with the serif font in the settings.

View file

@ -0,0 +1,15 @@
{
"id": "e74cb40a-f3b8-445a-9826-1b1b6e41b846",
"name": "Custom uiFont",
"description": "Customize the interface font, the default is consistent with the serif font in the settings.",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e74cb40a-f3b8-445a-9826-1b1b6e41b846/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e74cb40a-f3b8-445a-9826-1b1b6e41b846/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e74cb40a-f3b8-445a-9826-1b1b6e41b846/image.png",
"author": "lindongbin",
"version": "1.0.0",
"tags": [],
"createdAt": "2025-05-03",
"updatedAt": "2025-05-03",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/e74cb40a-f3b8-445a-9826-1b1b6e41b846/preferences.json"
}