@Paenglab » Posted 26 Aug 2009 12:12 am Good progress!!
I like the stacking of the [other actions] and [Tag] ... but how to get it aligned as with your other posting
http://mozilla.paenglab.ch/temp/CH-Header.png ?
And does that setup also scrolls all of the buttons with more header lines?
I have made two additions to support the [View Header]:
- first disable the [All] headers together with choosing the compact header display:
Code: Select all
<hbox id="expandedHeaderView">
<vbox id="hideDetailsButtonID" insertbefore="expandedHeaders">
<button id="hideDetailsButton" tooltiptext="&hideDetailsButton.label;"
onclick="coheToggleHeaderView(); MsgViewNormalHeaders();" class="msgHeaderView-button msgHeaderView-flat-button" />
</vbox>
and second to include the [View Header] menu with the [other actions] :
Code: Select all
key="key_toggleFlagged" />
<menu id="all_ov1" label="View Headers..">
<menupopup id="all_ov1popup" onpopupshowing="InitViewHeadersMenu();">
<menuitem id="viewallheaders" label="All" type="radio"
name="viewheadergroup" oncommand="MsgViewAllHeaders();" />
<menuitem id="viewnormalheaders" label="Normal" type="radio"
name="viewheadergroup" oncommand="MsgViewNormalHeaders();" />
</menupopup>
</menu>
<menuseparator id="otherActionPopupAfterViewSource" />
<menuitem id="hideDetailsMenu" label="&hideDetailsButton.label;"
oncommand="coheToggleHeaderView(); MsgViewNormalHeaders();" />
<menuitem id="hidecohePreferencesButton" label="&dialog.title;"
oncommand="openDialog('chrome://CompactHeader/content/preferences.xul', 'prefs', 'chrome,resizable=no');" />
</menupopup>
..also here the [Hide details] menuitem changes the header back to 'Normal' so toggling the twisty in any case will go back to 'Normal' headers.
Another cosmetic to the preferences.xul to get back the dialog at the last opened position:
Code: Select all
<dialog id="cohePreferences" title="&dialog.title;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="onLoad()" ondialogaccept="return onDialogAccept()"
persist="screenX screenY" >
Last not least I would like to see the whole buttons/ menus sit at the top (with the first or first+second header line(s)) while scrolling thru the header lines. That may cost some horizontal space, but with icons for the [other actions] and [Tag] buttons that could be reduced to a minimum.