Update Theme: Better Find Bar

This commit is contained in:
RobotoSkunk 2025-05-22 01:59:16 -06:00
parent 4f9e8473d1
commit 00ac44a7e5
No known key found for this signature in database
GPG key ID: 2C1CF08728E58C45
4 changed files with 185 additions and 11 deletions

View file

@ -18,7 +18,7 @@ findbar {
margin: 0px !important; margin: 0px !important;
width: 90% !important; width: 90% !important;
max-width: 800px; max-width: calc(var(--theme-better_find_bar-textbox_width) * 1px);
height: auto !important; height: auto !important;
@ -82,6 +82,7 @@ body:has(
--better-findbar-position-right: 15px; --better-findbar-position-right: 15px;
} }
/* Vertical Position */
body:has( body:has(
#theme-Better-Find-Bar[theme-better_find_bar-vertical_position="top"] #theme-Better-Find-Bar[theme-better_find_bar-vertical_position="top"]
) { ) {
@ -102,4 +103,86 @@ body:has(
findbar .findbar-textbox:not([status="notfound"]) { findbar .findbar-textbox:not([status="notfound"]) {
background: color-mix(in hsl, var(--zen-colors-tertiary), transparent 10%) !important; background: color-mix(in hsl, var(--zen-colors-tertiary), transparent 10%) !important;
} }
} }
/* Hide highlight checkbox */
body:has(
#theme-Better-Find-Bar[theme-better_find_bar-hide_highlight="hide_immediately"]
) {
findbar .findbar-highlight {
display: none !important;
}
}
body:has(
#theme-Better-Find-Bar[theme-better_find_bar-hide_highlight="hide_on_disable"]
) {
findbar checkbox.findbar-highlight:not([checked]) {
display: none !important;
}
}
/* Hide match case checkbox */
body:has(
#theme-Better-Find-Bar[theme-better_find_bar-hide_match_case="hide_immediately"]
) {
findbar .findbar-case-sensitive {
display: none !important;
}
}
body:has(
#theme-Better-Find-Bar[theme-better_find_bar-hide_match_case="hide_on_disable"]
) {
findbar checkbox.findbar-case-sensitive:not([checked]) {
display: none !important;
}
}
/* Hide match diacritics checkbox */
body:has(
#theme-Better-Find-Bar[theme-better_find_bar-hide_match_diacritics="hide_immediately"]
) {
findbar .findbar-match-diacritics {
display: none !important;
}
}
body:has(
#theme-Better-Find-Bar[theme-better_find_bar-hide_match_diacritics="hide_on_disable"]
) {
findbar checkbox.findbar-match-diacritics:not([checked]) {
display: none !important;
}
}
/* Hide whole words checkbox */
body:has(
#theme-Better-Find-Bar[theme-better_find_bar-hide_whole_words="hide_immediately"]
) {
findbar .findbar-entire-word {
display: none !important;
}
}
body:has(
#theme-Better-Find-Bar[theme-better_find_bar-hide_whole_words="hide_on_disable"]
) {
findbar .findbar-entire-word:not([checked]) {
display: none !important;
}
}
/* Hide find status label */
@media (-moz-bool-pref: "theme.better_find_bar.hide_find_status") {
findbar .findbar-find-status {
display: none !important;
}
}
/* Hide found matches label */
@media (-moz-bool-pref: "theme.better_find_bar.hide_found_matches") {
findbar .findbar-label.found-matches {
display: none !important;
}
}

View file

@ -2,14 +2,15 @@
{ {
"property": "theme.better_find_bar.transparent_background", "property": "theme.better_find_bar.transparent_background",
"label": "Transparent background", "label": "Transparent background",
"type": "checkbox" "type": "checkbox",
"defaultValue": true
}, },
{ {
"property": "theme.better_find_bar.horizontal_position", "property": "theme.better_find_bar.horizontal_position",
"label": "Horizontal position", "label": "Horizontal position",
"type": "dropdown", "type": "dropdown",
"disabledOn": [], "disabledOn": [],
"placeholder": "Select horizontal position", "placeholder": "Use default",
"defaultValue": "default", "defaultValue": "default",
"options": [ "options": [
{ {
@ -31,7 +32,7 @@
"label": "Vertical position", "label": "Vertical position",
"type": "dropdown", "type": "dropdown",
"disabledOn": [], "disabledOn": [],
"placeholder": "Select vertical position", "placeholder": "Use default",
"defaultValue": "default", "defaultValue": "default",
"options": [ "options": [
{ {
@ -43,5 +44,95 @@
"value": "default" "value": "default"
} }
] ]
},
{
"property": "theme.better_find_bar.textbox_width",
"label": "Textbox width (px)",
"type": "string",
"defaultValue": "800"
},
{
"property": "theme.better_find_bar.hide_highlight",
"label": "Hide \"highlight\" checkbox",
"type": "dropdown",
"disabledOn": [],
"placeholder": "Show",
"defaultValue": "not_hide",
"options": [
{
"label": "Hide",
"value": "hide_immediately"
},
{
"label": "Show only when checked",
"value": "hide_on_disable"
}
]
},
{
"property": "theme.better_find_bar.hide_match_case",
"label": "Hide \"match case\" checkbox",
"type": "dropdown",
"disabledOn": [],
"placeholder": "Show",
"defaultValue": "not_hide",
"options": [
{
"label": "Hide",
"value": "hide_immediately"
},
{
"label": "Show only when checked",
"value": "hide_on_disable"
}
]
},
{
"property": "theme.better_find_bar.hide_match_diacritics",
"label": "Hide \"match diacritics\" checkbox",
"type": "dropdown",
"disabledOn": [],
"placeholder": "Show",
"defaultValue": "not_hide",
"options": [
{
"label": "Hide",
"value": "hide_immediately"
},
{
"label": "Show only when checked",
"value": "hide_on_disable"
}
]
},
{
"property": "theme.better_find_bar.hide_whole_words",
"label": "Hide \"whole words\" checkbox",
"type": "dropdown",
"disabledOn": [],
"placeholder": "Show",
"defaultValue": "not_hide",
"options": [
{
"label": "Hide",
"value": "hide_immediately"
},
{
"label": "Show only when checked",
"value": "hide_on_disable"
}
]
},
{
"property": "theme.better_find_bar.hide_find_status",
"label": "Hide find status label",
"type": "checkbox",
"defaultValue": false
},
{
"property": "theme.better_find_bar.hide_found_matches",
"label": "Hide found matches label",
"type": "checkbox",
"defaultValue": false
} }
] ]

View file

@ -1,3 +1,3 @@
# Better Find Bar # Better Find Bar
Improves the find bar by matching the browser theme, making it floating and more responsive. Improves the find bar, making it floating with theme match and customization.

View file

@ -1,15 +1,15 @@
{ {
"id": "a6335949-4465-4b71-926c-4a52d34bc9c0", "id": "a6335949-4465-4b71-926c-4a52d34bc9c0",
"name": "Better Find Bar", "name": "Better Find Bar",
"description": "Improves the find bar, making it floating, more responsive, and moving it to the top of the page.", "description": "Improves the find bar, making it floating with theme match and customization.",
"homepage": "https://github.com/RobotoSkunk/zen-better-findbar", "homepage": "https://github.com/RobotoSkunk/zen-better-findbar",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/a6335949-4465-4b71-926c-4a52d34bc9c0/chrome.css", "style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/a6335949-4465-4b71-926c-4a52d34bc9c0/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/a6335949-4465-4b71-926c-4a52d34bc9c0/readme.md", "readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/a6335949-4465-4b71-926c-4a52d34bc9c0/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/a6335949-4465-4b71-926c-4a52d34bc9c0/image.png", "image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/a6335949-4465-4b71-926c-4a52d34bc9c0/image.png",
"author": "RobotoSkunk", "author": "RobotoSkunk",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/a6335949-4465-4b71-926c-4a52d34bc9c0/preferences.json", "preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/a6335949-4465-4b71-926c-4a52d34bc9c0/preferences.json",
"version": "1.2.0", "version": "1.3.0",
"tags": [], "tags": [ "find", "bar", "search", "searchbar", "find-bar" ],
"createdAt": "2024-11-24", "createdAt": "2024-11-24",
"updatedAt": "2025-05-10" "updatedAt": "2025-05-22"
} }