This commit is contained in:
mr. m 2025-06-23 17:13:58 +05:00 committed by GitHub
commit 67720b70ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,34 @@
@media (-moz-bool-pref: "uc.web-panel-sidebar-tweaks.enable-pinning-web-panel-sidebar-to-right") {
/* Make the web panel side bar the right-most item */
#zen-sidebar-web-panel-wrapper:has(#zen-sidebar-web-panel:not([pinned="true"])) {
order: 1000 !important;
}
/* Enable the resize handle on the left of the web panel sidebar */
#zen-sidebar-web-panel:not([pinned="true"]) .zen-sidebar-web-panel-splitter[side="left"] {
display: inherit !important;;
margin: inherit !important;;
}
/* Disable the resize handle on the right of the web panel sidebar */
#zen-sidebar-web-panel:not([pinned="true"]) .zen-sidebar-web-panel-splitter[side="right"] {
display: none !important;;
margin: 0 !important;;
}
}
@media (-moz-bool-pref: "uc.web-panel-sidebar-tweaks.enable-tweaked-sidebar-toolbar-colors") {
/* Make the web panel sidebar toolbar colors fit in with zen better */
#zen-sidebar-web-panel:not([pinned="true"]) {
background: color-mix(in srgb, var(--toolbarbutton-hover-background) 50%, transparent 50%) !important;
}
}
@media (-moz-bool-pref: "uc.web-panel-sidebar-tweaks.enable-tweaked-searchbar-margin") {
/* Make searchbar margin the same as everything else */
#nav-bar {
margin-bottom: 2px !important;
margin-top: 3px !important;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View file

@ -0,0 +1,20 @@
[
{
"property": "uc.web-panel-sidebar-tweaks.enable-pinning-web-panel-sidebar-to-right",
"label": "Enable pinning the web panel sidebar to the right",
"type": "checkbox",
"defaultValue": true
},
{
"property": "uc.web-panel-sidebar-tweaks.enable-tweaked-sidebar-toolbar-colors",
"label": "Enable tweaked web panel sidebar toolbar colours",
"type": "checkbox",
"defaultValue": true
},
{
"property": "uc.web-panel-sidebar-tweaks.enable-tweaked-searchbar-margin",
"label": "Enable tweaked searchbar margin",
"type": "checkbox",
"defaultValue": true
}
]

View file

@ -0,0 +1,11 @@
# Zen Web Panel Sidebar Tweaks
This theme makes a few tweaks to the web panel sidebar.
This theme:
- Makes the web panel sidebar pin to the right
- Tweaks web panel sidebar toolbar colors to better fit in with zen
- Makes the margin around the search bar match spacing between main view and web panel sidebar
All of the features can be disabled in theme preferences.

View file

@ -0,0 +1,15 @@
{
"id": "ac140404-3877-4df2-a61f-7667210ba054",
"name": "Web Panel Sidebar Tweaks",
"description": "Pins web panel sidebar to the right and tweaks web panel sidebar toolbar color and search bar margin",
"homepage": "https://github.com/tywil04/zen-web-panel-sidebar-tweaks",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ac140404-3877-4df2-a61f-7667210ba054/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ac140404-3877-4df2-a61f-7667210ba054/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ac140404-3877-4df2-a61f-7667210ba054/image.png",
"author": "tywil04",
"version": "1.0.0",
"tags": [],
"createdAt": "2025-02-19",
"updatedAt": "2025-02-19",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ac140404-3877-4df2-a61f-7667210ba054/preferences.json"
}