几年前我也遇到过同样的问题,到这里就成功解决了
但现在我已经从 Thunderbird 68 升级到 102,解决方案不再有效。Thunderbird 102 自 68 版以来发生了很大变化,文件messenger.xul
不再messageWindow.xul
存在。
我怎样才能将其移动Quick Filter Bar
到主面板,如图所示?
目标是:
- 将文本输入字段向上移动
Quick Filter Bar
到主面板 - 将附件图标移到
Quick Filter Bar
- 删除其余无用的按钮/图标(固定、未读、加星标、联系人、标签)
- 删除默认文本:“过滤这些消息<Ctr+Shift+K>”
因此,最后它看起来应该是这样的:
奖金:如果可以删除左下角的两个无用的图标(显示空间工具栏、离线工作),那就太棒了!
答案1
这是适用于 102 的修改后的补丁:
diff --git a/omni/chrome/classic/skin/classic/messenger/shared/quickFilterBar.css b/omni/chrome/classic/skin/classic/messenger/shared/quickFilterBar.css
index 48d17a0..6c19572 100644
--- a/omni/chrome/classic/skin/classic/messenger/shared/quickFilterBar.css
+++ b/omni/chrome/classic/skin/classic/messenger/shared/quickFilterBar.css
@@ -55,7 +55,7 @@
}
#qfb-results-label {
- color: GrayText;
+ color: #fff200;
text-align: end;
visibility: hidden;
}
diff --git a/omni/chrome/en-US/locale/en-US/messenger/quickFilterBar.dtd b/omni/chrome/en-US/locale/en-US/messenger/quickFilterBar.dtd
index 39ef1ad..104b8e4 100644
--- a/omni/chrome/en-US/locale/en-US/messenger/quickFilterBar.dtd
+++ b/omni/chrome/en-US/locale/en-US/messenger/quickFilterBar.dtd
@@ -152,7 +152,7 @@
box faster.
-->
<!ENTITY quickFilterBar.textbox.emptyText.base1
- "Filter these messages #1">
+ "">
<!-- LOCALIZATION NOTE (quickFilterBar.show.key2):
This is the key used to show the quick filter bar. -->
diff --git a/omni/chrome/messenger/content/messenger/folderDisplay.js b/omni/chrome/messenger/content/messenger/folderDisplay.js
index fa1a6a5..3d97e8a 100644
--- a/omni/chrome/messenger/content/messenger/folderDisplay.js
+++ b/omni/chrome/messenger/content/messenger/folderDisplay.js
@@ -454,14 +454,12 @@ FolderDisplayWidget.prototype = {
DEFAULT_COLUMNS: [
"threadCol",
"attachmentCol",
- "flaggedCol",
"subjectCol",
- "unreadButtonColHeader",
"senderCol", // news folders or incoming folders when correspondents not in use
"recipientCol", // outgoing folders when correspondents not in use
"correspondentCol", // mail folders
- "junkStatusCol",
"dateCol",
+ "sizeCol",
"locationCol", // multiple-folder backed folders
],
diff --git a/omni/chrome/messenger/content/messenger/messageWindow.xhtml b/omni/chrome/messenger/content/messenger/messageWindow.xhtml
index 2f7f3d4..3ea2886 100644
--- a/omni/chrome/messenger/content/messenger/messageWindow.xhtml
+++ b/omni/chrome/messenger/content/messenger/messageWindow.xhtml
@@ -4651,7 +4651,7 @@
fullscreentoolbar="true" mode="full"
customizable="true"
context="toolbar-context-menu"
- defaultset="button-getmsg,button-newmsg,separator,button-tag,qfb-show-filter-bar,spring,gloda-search,button-appmenu">
+ defaultset="button-getmsg,button-newmsg,separator,button-tag,separator,qfb-sticky,qfb-results-label,qfb-qs-textbox,qfb-attachment,qfb-show-filter-bar,spring,gloda-search,button-appmenu">
</toolbar>
</toolbox>
diff --git a/omni/chrome/messenger/content/messenger/messenger.xhtml b/omni/chrome/messenger/content/messenger/messenger.xhtml
index 68bd1e6..bc7b503 100644
--- a/omni/chrome/messenger/content/messenger/messenger.xhtml
+++ b/omni/chrome/messenger/content/messenger/messenger.xhtml
@@ -7099,6 +7099,33 @@
<menuseparator id="button-afterTagRemoveAllSeparator"/>
</menupopup>
</toolbarbutton>
+ <toolbarbutton id="qfb-sticky" type="checkbox"
+ class="toolbarbutton-1 icon-only" orient="horizontal"
+ crop="none" style="min-width:16px;"
+ tooltiptext="&quickFilterBar.sticky.tooltip;"
+ />
+ <label id="qfb-results-label"
+ style="min-width:&quickFilterBar.resultsLabel.minWidth;"
+ value=""
+ somefmtstring="&quickFilterBar.resultsLabel.some.formatString;"
+ noresultsstring="&quickFilterBar.resultsLabel.none;"
+ />
+ <search-textbox id="qfb-qs-textbox"
+ flex="3"
+ class="themeableSearchBox"
+ placeholder=""
+ emptytextbase="&quickFilterBar.textbox.emptyText.base1;"
+ keyLabelNonMac="&quickFilterBar.textbox.emptyText.keyLabel2.nonmac;"
+ keyLabelMac="&quickFilterBar.textbox.emptyText.keyLabel2.mac;"
+ timeout="500"
+ maxlength="192"
+ width="320"
+ style="min-width:280px;"/>
+ <toolbarbutton id="qfb-attachment" type="checkbox"
+ class="toolbarbutton-1" orient="horizontal"
+ crop="none" style="min-width:16px;"
+ label="&quickFilterBar.attachment.label;"
+ tooltiptext="&quickFilterBar.attachment.tooltip;"/>
<toolbarbutton id="qfb-show-filter-bar"
class="toolbarbutton-1"
type="checkbox"
@@ -7281,7 +7308,7 @@
fullscreentoolbar="true" mode="full"
customizable="true"
context="toolbar-context-menu"
- defaultset="button-getmsg,button-newmsg,separator,button-tag,qfb-show-filter-bar,spring,gloda-search,button-appmenu">
+ defaultset="button-getmsg,button-newmsg,separator,button-tag,separator,qfb-sticky,qfb-results-label,qfb-qs-textbox,qfb-attachment,qfb-show-filter-bar,spring,gloda-search,button-appmenu">
</toolbar>
</toolbox>
@@ -7363,12 +7390,13 @@
<vbox flex="1">
<box orient="vertical" id="messagesBox" flex="1">
- <vbox id="quick-filter-bar" class="themeable-brighttext">
+ <vbox id="quick-filter-bar" class="themeable-brighttext" hidden="true">
<hbox id="quick-filter-bar-main-bar" align="center"
onoverflow="QuickFilterBarMuxer.onOverflow();"
>
<toolbarbutton id="qfb-sticky" type="checkbox"
class="toolbarbutton-1 icon-only" orient="horizontal"
+ hidden="true"
crop="none" style="min-width:16px;"
tooltiptext="&quickFilterBar.sticky.tooltip;"
/>
@@ -7377,30 +7405,36 @@
<toolbarseparator id="qfb-separator"/>
<toolbarbutton id="qfb-unread" type="checkbox"
class="toolbarbutton-1" orient="horizontal"
+ hidden="true"
crop="none" style="min-width:16px;"
label="&quickFilterBar.unread.label;"
tooltiptext="&quickFilterBar.unread.tooltip;"
/>
<toolbarbutton id="qfb-starred" type="checkbox"
class="toolbarbutton-1" orient="horizontal"
+ hidden="true"
crop="none" style="min-width:16px;"
label="&quickFilterBar.starred.label;"
tooltiptext="&quickFilterBar.starred.tooltip;"
/>
<toolbarbutton id="qfb-inaddrbook" type="checkbox"
class="toolbarbutton-1" orient="horizontal"
+ hidden="true"
crop="none" style="min-width:16px;"
label="&quickFilterBar.inaddrbook.label;"
tooltiptext="&quickFilterBar.inaddrbook.tooltip;"
/>
<toolbarbutton id="qfb-tags" type="checkbox"
class="toolbarbutton-1" orient="horizontal"
+ hidden="true"
crop="none" style="min-width:16px;"
label="&quickFilterBar.tags.label;"
tooltiptext="&quickFilterBar.tags.tooltip;"
/>
+
<toolbarbutton id="qfb-attachment" type="checkbox"
class="toolbarbutton-1" orient="horizontal"
+ hidden="true"
crop="none" style="min-width:16px;"
label="&quickFilterBar.attachment.label;"
tooltiptext="&quickFilterBar.attachment.tooltip;"/>
@@ -7410,6 +7444,7 @@
in dimensions causes ugly flex rearrangement of the textbox. -->
<label id="qfb-results-label"
style="min-width:&quickFilterBar.resultsLabel.minWidth;"
+ hidden="true"
value=""
somefmtstring="&quickFilterBar.resultsLabel.some.formatString;"
noresultsstring="&quickFilterBar.resultsLabel.none;"
@@ -7417,6 +7452,7 @@
<search-textbox id="qfb-qs-textbox"
flex="3"
class="themeableSearchBox"
+ hidden="true"
placeholder=""
emptytextbase="&quickFilterBar.textbox.emptyText.base1;"
keyLabelNonMac="&quickFilterBar.textbox.emptyText.keyLabel2.nonmac;"