Skip to content

Commit

Permalink
Merge pull request #258 from zen-browser/create-theme-257
Browse files Browse the repository at this point in the history
Add theme: Uniform Url Bar
  • Loading branch information
mauro-balades authored Aug 31, 2024
2 parents 63fa92b + fc80a4a commit 94d7a11
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
32 changes: 32 additions & 0 deletions themes/d93e67f8-e5e1-401e-9b82-f9d5bab231e6/chrome.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

@media (-moz-bool-pref: "uc.urlbar.border-radius") {
#urlbar {
border-radius: 10px !important;
}

#notification-popup-box {
border-radius: 6px !important;
}

/* Border radius on hover */
#urlbar .urlbar-page-action, #urlbar #tracking-protection-icon-container, #urlbar:not([breakout-extend="true"]) #identity-box:is(:not(.chromeUI), [pageproxystate="invalid"]) #identity-icon-box {
border-radius: 6px !important;;
}

/* Border radius of boxes on the left */
#identity-box:has(#identity-permission-box:is([hasPermissions], [hasSharingIcon])):not([pageproxystate="invalid"]) #identity-icon-box {
border-top-left-radius: 6px !important;
border-bottom-left-radius: 6px !important;
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}

/* Extensions or similar */
#urlbar:not([breakout-extend="true"]) #identity-box.chromeUI:not([pageproxystate="invalid"]) #identity-icon-box {
border-radius: 6px 6px 6px 6px !important;
}
}

@media (-moz-bool-pref: "uc.urltext.center") {
#urlbar:not([focused]) .urlbar-input{ text-align: center !important; }
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions themes/d93e67f8-e5e1-401e-9b82-f9d5bab231e6/preferences.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"uc.urlbar.border-radius": "Adjusts the border radius of the url bar and its items",
"uc.urltext.center": "Centers the text inside the url bar"
}
6 changes: 6 additions & 0 deletions themes/d93e67f8-e5e1-401e-9b82-f9d5bab231e6/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# Uniform Url Bar

## This **Zen theme** gives you 2 optional toggles (in Zen's theme settings):
- Adjust border radius of url bar
- Center url text
1 change: 1 addition & 0 deletions themes/d93e67f8-e5e1-401e-9b82-f9d5bab231e6/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"id": "d93e67f8-e5e1-401e-9b82-f9d5bab231e6", "name": "Uniform Url Bar", "description": "Get simple rounded corners consistent with other buttons or centered text for your url bar.", "homepage": "https://github.com/JLBlk/Zen-Themes/tree/main/UniformUrlBar", "style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/d93e67f8-e5e1-401e-9b82-f9d5bab231e6/chrome.css", "readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/d93e67f8-e5e1-401e-9b82-f9d5bab231e6/readme.md", "image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/d93e67f8-e5e1-401e-9b82-f9d5bab231e6/image.png", "author": "JLBlk", "version": "1.0.0", "preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/d93e67f8-e5e1-401e-9b82-f9d5bab231e6/preferences.json"}

0 comments on commit 94d7a11

Please sign in to comment.