fixes for image loading and incorrect variables, default value fixes

This commit is contained in:
sameerasw 2025-05-03 20:46:57 +05:30
parent fce878aec8
commit 99323d3382
2 changed files with 22 additions and 26 deletions

View file

@ -6,10 +6,6 @@
#00000000 #00000000
) !important; ) !important;
} }
@media (-moz-bool-pref: "mod.sameerasw.zen_notab_img_enabled") {
--notab_bg_img: image-set(var(--mod_sameerasw_zen_notab_img)) !important;
}
} }
/* Remove new tab background color added in 1.8b */ /* Remove new tab background color added in 1.8b */
@ -121,14 +117,14 @@ tabpanels .browserStack browser {
#browser:has([zen-empty-tab="true"][selected="true"]) .browserStack { #browser:has([zen-empty-tab="true"][selected="true"]) .browserStack {
@media (-moz-bool-pref: "mod.sameerasw.zen_notab_img_enabled") { @media (-moz-bool-pref: "mod.sameerasw.zen_notab_img_enabled") {
background-image: var( background-image: var(
--notab_bg_img, --mod-sameerasw-zen_notab_img,
url("https://raw.githubusercontent.com/zen-browser/branding/refs/heads/main/Official/Word%20Marks/SVG/zen_logo_icon_white.svg") url("https://raw.githubusercontent.com/zen-browser/branding/refs/heads/main/Official/Word%20Marks/SVG/zen_logo_icon_white.svg")
) !important; ) !important;
background-position: center !important; background-position: center !important;
background-repeat: no-repeat !important; background-repeat: no-repeat !important;
background-size: var(--mod_sameerasw_zen_notab_img_size, 50px) !important; background-size: var(--mod-sameerasw-zen_notab_img_size, 150px) !important;
@media (-moz-bool-pref: "mod.sameerasw.zen_notab_img_saturate") { @media (-moz-bool-pref: "mod.sameerasw.zen_notab_img_saturate") {
filter: saturate(0) !important; filter: saturate(0) !important;

View file

@ -1,15 +1,15 @@
[ [
{ {
"property": "browser.tabs.allow_transparent_browser", "property": "browser.tabs.allow_transparent_browser",
"label": "Allow zen browser to be transparent (Turn off before uninstall)", "label": "Allow zen browser to be transparent (TURN OFF BEFORE UNINSTALL)",
"type": "checkbox", "type": "checkbox",
"defaultvalue": true "defaultValue": false
}, },
{ {
"property": "zen.widget.linux.transparency", "property": "zen.widget.linux.transparency",
"label": "Allow zen browser on linux to be transparent (Turn off before uninstall)", "label": "Allow zen browser on linux to be transparent (TURN OFF BEFORE UNINSTALL)",
"type": "checkbox", "type": "checkbox",
"defaultvalue": true, "defaultValue": true,
"disabledOn": [ "disabledOn": [
"windows", "windows",
"macos" "macos"
@ -19,87 +19,87 @@
"property": "mod.sameerasw.zen_bg_color_enabled", "property": "mod.sameerasw.zen_bg_color_enabled",
"label": "Enable custom background color for Zen", "label": "Enable custom background color for Zen",
"type": "checkbox", "type": "checkbox",
"defaultvalue": false "defaultValue": false
}, },
{ {
"property": "mod.sameerasw.zen_transparency_color", "property": "mod.sameerasw.zen_transparency_color",
"label": "Set custom background color (Overrides default theme colors)", "label": "Set custom background color (Overrides default theme colors)",
"type": "string", "type": "string",
"defaultvalue": "#00000000", "defaultValue": "#00000000",
"placeholder": "light-dark(#fff, #222) or RGBA or hex" "placeholder": "light-dark(#fff, #222) or RGBA or hex"
}, },
{ {
"property": "mod.sameerasw.zen_light_tint_flip", "property": "mod.sameerasw.zen_light_tint_flip",
"label": "Flip the light website tint to dark", "label": "Flip the light website tint to dark",
"type": "checkbox", "type": "checkbox",
"defaultvalue": false "defaultValue": false
}, },
{ {
"property": "mod.sameerasw.zen_light_tint_disabled", "property": "mod.sameerasw.zen_light_tint_disabled",
"label": "Disable the light website tint", "label": "Disable the light website tint",
"type": "checkbox", "type": "checkbox",
"defaultvalue": true "defaultValue": true
}, },
{ {
"property": "mod.sameerasw.zen_empty_page_transparency", "property": "mod.sameerasw.zen_empty_page_transparency",
"label": "Transparent empty no tabs page", "label": "Transparent empty no tabs page",
"type": "checkbox", "type": "checkbox",
"defaultvalue": true "defaultValue": true
}, },
{ {
"property": "mod.sameerasw.zen_no_shadow", "property": "mod.sameerasw.zen_no_shadow",
"label": "Remove the shadow around the web page", "label": "Remove the shadow around the web page",
"type": "checkbox", "type": "checkbox",
"defaultvalue": false "defaultValue": false
}, },
{ {
"property": "mod.sameerasw.zen_tab_switch_anim", "property": "mod.sameerasw.zen_tab_switch_anim",
"label": "Tab switch animation", "label": "Tab switch animation",
"type": "checkbox", "type": "checkbox",
"defaultvalue": true "defaultValue": true
}, },
{ {
"property": "mod.sameerasw.zen_urlbar_zoom_anim", "property": "mod.sameerasw.zen_urlbar_zoom_anim",
"label": "URL bar zoom animation", "label": "URL bar zoom animation",
"type": "checkbox", "type": "checkbox",
"defaultvalue": false "defaultValue": false
}, },
{ {
"property": "mod.sameerasw.zen_trackpad_anim", "property": "mod.sameerasw.zen_trackpad_anim",
"label": "Trackpad swipe animations", "label": "Trackpad swipe animations",
"type": "checkbox", "type": "checkbox",
"defaultvalue": false "defaultValue": false
}, },
{ {
"property": "mod.sameerasw.zen_notab_img_enabled", "property": "mod.sameerasw.zen_notab_img_enabled",
"label": "Add no tab screen background image", "label": "Add no tab screen background image",
"type": "checkbox", "type": "checkbox",
"defaultvalue": false "defaultValue": false
}, },
{ {
"property": "mod.sameerasw.zen_notab_img", "property": "mod.sameerasw.zen_notab_img",
"label": "Set no tab scren image URL (updating the image may need a new url)", "label": "Image URL, match the format: url('example.com/image.png')",
"type": "string", "type": "string",
"defaultvalue": "https://github.com/sameerasw/my-internet/blob/main/wave-light.png?raw=true", "defaultValue": "url('https://github.com/sameerasw/my-internet/blob/main/wave-light.png?raw=true')",
"placeholder": "https://example.com/image.png" "placeholder": "url('link_to_image.png')"
}, },
{ {
"property": "mod.sameerasw.zen_notab_img_size", "property": "mod.sameerasw.zen_notab_img_size",
"label": "Set no tab scren image size with unit", "label": "Set no tab scren image size with unit",
"type": "string", "type": "string",
"defaultvalue": "50px", "defaultValue": "150px",
"placeholder": "50px (include units px, % ...)" "placeholder": "50px (include units px, % ...)"
}, },
{ {
"property": "mod.sameerasw.zen_notab_img_saturate", "property": "mod.sameerasw.zen_notab_img_saturate",
"label": "Grayscale the no tab screen image", "label": "Grayscale the no tab screen image",
"type": "checkbox", "type": "checkbox",
"defaultvalue": false "defaultValue": false
}, },
{ {
"property": "mod.sameerasw.zen_notab_img_invert", "property": "mod.sameerasw.zen_notab_img_invert",
"label": "Invert the grayscaled no tab screen image in light theme (white → black)", "label": "Invert the grayscaled no tab screen image in light theme (white → black)",
"type": "checkbox", "type": "checkbox",
"defaultvalue": true "defaultValue": true
} }
] ]