зеркало из https://github.com/mozilla/snowl.git
work in progress preview item (for new sources view) that lets you select another feed reader to use
--HG-- extra : rebase_source : d36a0fefc69c8a63302a3def2856e8506bda8d3f
This commit is contained in:
Родитель
67fa832d53
Коммит
44dba06598
|
@ -226,6 +226,10 @@ richlistitem.source:hover {
|
|||
background-color: #cccccc;
|
||||
}
|
||||
|
||||
richlistitem.source[preview="true"][selected="true"] {
|
||||
-moz-binding: url("chrome://snowl/content/sources.xml#source-preview");
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* Dogmark */
|
||||
|
|
|
@ -919,6 +919,7 @@ let Sources = {
|
|||
let item = this._list.appendItem(feedToPreview.title);
|
||||
item.source = feed;
|
||||
item.className = "source";
|
||||
item.setAttribute("preview", "true");
|
||||
this._list.selectItem(item);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,11 +36,11 @@
|
|||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!DOCTYPE overlay [
|
||||
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
|
||||
<!ENTITY % applicationsDTD SYSTEM "chrome://browser/locale/preferences/applications.dtd">
|
||||
%brandDTD;
|
||||
%applicationsDTD;
|
||||
<!DOCTYPE bindings [
|
||||
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
|
||||
%globalDTD;
|
||||
<!ENTITY % feedDTD SYSTEM "chrome://browser/locale/feeds/subscribe.dtd">
|
||||
%feedDTD;
|
||||
]>
|
||||
|
||||
<bindings id="sourceBindings"
|
||||
|
@ -105,4 +105,36 @@
|
|||
|
||||
</binding>
|
||||
|
||||
<binding id="source-preview" extends="chrome://snowl/content/sources.xml#source-base">
|
||||
<resources>
|
||||
<stylesheet src="chrome://snowl/skin/sources.css"/>
|
||||
</resources>
|
||||
<content>
|
||||
<xul:vbox>
|
||||
<xul:hbox flex="1" align="center">
|
||||
<xul:image src="moz-icon://goat?size=16"
|
||||
xbl:inherits="src=icon" height="16" width="16"/>
|
||||
<children/>
|
||||
<xul:image class="star-button" xbl:inherits="starred=subscription"/>
|
||||
</xul:hbox>
|
||||
<!-- FIXME: localize it -->
|
||||
<xul:label id="subscribeUsingDescription" value="Subscribe using:"/>
|
||||
<xul:menulist id="handlersMenuList" aria-labelledby="subscribeUsingDescription">
|
||||
<xul:menupopup menugenerated="true" id="handlersMenuPopup">
|
||||
<xul:menuitem id="liveBookmarksMenuItem" label="&feedLiveBookmarks;" class="menuitem-iconic" image="chrome://browser/skin/page-livemarks.png" selected="true"/>
|
||||
<xul:menuseparator/>
|
||||
</xul:menupopup>
|
||||
</xul:menulist>
|
||||
<xul:button label="&feedSubscribeNow;" id="subscribeButton"/>
|
||||
</xul:vbox>
|
||||
</content>
|
||||
|
||||
<implementation>
|
||||
<constructor>
|
||||
// build the list of possible feed readers
|
||||
</constructor>
|
||||
</implementation>
|
||||
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
|
|
Загрузка…
Ссылка в новой задаче