Skip to content

Commit

Permalink
Merge pull request #938 from xZetsubou/add_direction_option_to_bookma…
Browse files Browse the repository at this point in the history
…rk_toolbar_tweaks

Update Theme: add direction option to bookmark toolbar tweaks
  • Loading branch information
mauro-balades authored Jan 7, 2025
2 parents 77aea8c + 6a33664 commit eabe32b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
13 changes: 13 additions & 0 deletions themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
}
}

/* Positioning bookmarks toolbar direction */
:root:has(#theme-Bookmark-Toolbar-Tweaks[uc-bookmarks-position-toolbar="left"]) {
#PlacesToolbarItems {
direction: ltr;
}
}

:root:has(#theme-Bookmark-Toolbar-Tweaks[uc-bookmarks-position-toolbar="right"]) {
#PlacesToolbarItems {
direction: rtl;
}
}

/* Hide folder icons in the bookmarks toolbar */
@media (-moz-bool-pref: "uc.bookmarks.hide-folder-icons") {
.bookmark-item[container="true"] .toolbarbutton-icon {
Expand Down
16 changes: 16 additions & 0 deletions themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/preferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
"type": "checkbox",
"disabledOn": []
},
{
"property": "uc.bookmarks.position-toolbar",
"label": "Bookmarks toolbar direction",
"type": "dropdown",
"disabledOn": [],
"options": [
{
"label": "Left to right",
"value": "left"
},
{
"label": "Right to left",
"value": "right"
}
]
},
{
"property": "uc.bookmarks.hide-folder-icons",
"label": "Hide folder icons",
Expand Down
4 changes: 2 additions & 2 deletions themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/image.png",
"author": "n7itro",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/ea1a5ace-f698-4b45-ab88-6e8bd3a563f0/preferences.json",
"version": "1.2.1",
"version": "1.2.2",
"tags": [],
"createdAt": "2024-08-19",
"updatedAt": "2024-10-31"
"updatedAt": "2024-1-5"
}

0 comments on commit eabe32b

Please sign in to comment.