integrate icons from Alex Faaborg for feed sources, feed items, and people; split windows style into aero/luna-specific skins
--HG-- rename : skin/windows/toolbarbutton.css => skin/aero/toolbarbutton.css rename : skin/windows/twistbox.css => skin/aero/twistbox.css rename : skin/windows/toolbarbutton.css => skin/luna/toolbarbutton.css rename : skin/windows/twistbox.css => skin/luna/twistbox.css
|
@ -37,7 +37,8 @@ content snowl content/
|
|||
|
||||
# Register separate skins for each primary platform so we can fit personas
|
||||
# into each one's very different skin.
|
||||
skin snowl classic/1.0 skin/windows/ os=WINNT
|
||||
skin snowl classic/1.0 skin/luna/ os=WINNT osversion<6
|
||||
skin snowl classic/1.0 skin/aero/ os=WINNT osversion>=6
|
||||
skin snowl classic/1.0 skin/mac/ os=Darwin
|
||||
skin snowl classic/1.0 skin/linux/ os=Linux
|
||||
|
||||
|
|
Двоичные данные
content/icons/user.png
До Ширина: | Высота: | Размер: 741 B |
|
@ -76,12 +76,6 @@ let SnowlMessageView = {
|
|||
return this._log = Log4Moz.repository.getLogger("Snowl.Stream");
|
||||
},
|
||||
|
||||
get _faviconSvc() {
|
||||
delete this._faviconSvc;
|
||||
return this._faviconSvc = Cc["@mozilla.org/browser/favicon-service;1"].
|
||||
getService(Ci.nsIFaviconService);
|
||||
},
|
||||
|
||||
get _writeButton() {
|
||||
delete this._writeButton;
|
||||
return this._writeButton = document.getElementById("snowlWriteButton");
|
||||
|
@ -316,13 +310,13 @@ let SnowlMessageView = {
|
|||
leftColumn.className = "leftColumn";
|
||||
let icon = document.createElementNS(XUL_NS, "image");
|
||||
icon.className = "icon";
|
||||
if (message.authorIcon) {
|
||||
if (message.authorIcon)
|
||||
icon.setAttribute("src", message.authorIcon);
|
||||
}
|
||||
else {
|
||||
let sourceFaviconURI = message.source.humanURI || URI.get("urn:use-default-icon");
|
||||
icon.setAttribute("src", this._faviconSvc.getFaviconImageForPage(sourceFaviconURI).spec);
|
||||
}
|
||||
else if (message.source.faviconURI)
|
||||
icon.setAttribute("src", message.source.faviconURI.spec)
|
||||
else
|
||||
icon.setAttribute("src", "chrome://snowl/skin/livemarkItem-16.png");
|
||||
|
||||
leftColumn.appendChild(icon);
|
||||
messageBox.appendChild(leftColumn);
|
||||
|
||||
|
|
|
@ -274,7 +274,7 @@ let SnowlDatastore = {
|
|||
grouped: false },
|
||||
|
||||
{ name: strings.get("sourcesCollectionName"),
|
||||
iconURL: "chrome://browser/skin/feeds/feedIcon16.png",
|
||||
iconURL: "chrome://snowl/skin/livemarkFolder-16.png",
|
||||
orderKey: 2,
|
||||
grouped: true,
|
||||
groupIDColumn: "sources.id",
|
||||
|
@ -282,7 +282,7 @@ let SnowlDatastore = {
|
|||
groupHomeURLColumn: "sources.humanURI" },
|
||||
|
||||
{ name: strings.get("authorsCollectionName"),
|
||||
iconURL: "chrome://snowl/content/icons/user.png",
|
||||
iconURL: "chrome://snowl/skin/person-16.png",
|
||||
orderKey: 3,
|
||||
grouped: true,
|
||||
groupIDColumn: "authors.id",
|
||||
|
|
|
@ -206,13 +206,15 @@ let SnowlSource = {
|
|||
try {
|
||||
return this.faviconSvc.getFaviconForPage(this.humanURI);
|
||||
}
|
||||
catch(ex) { /* no known favicon; use the default */ }
|
||||
catch(ex) { /* no known favicon */ }
|
||||
}
|
||||
|
||||
// The default favicon for feed sources.
|
||||
// FIXME: once we support other types of sources, override this
|
||||
// with a type-specific icon.
|
||||
return URI.get("chrome://browser/skin/feeds/feedIcon16.png");
|
||||
//return URI.get("chrome://snowl/skin/livemarkFolder-16.png");
|
||||
|
||||
return null;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
После Ширина: | Высота: | Размер: 690 B |
После Ширина: | Высота: | Размер: 572 B |
После Ширина: | Высота: | Размер: 846 B |
После Ширина: | Высота: | Размер: 632 B |
После Ширина: | Высота: | Размер: 732 B |
После Ширина: | Высота: | Размер: 736 B |
После Ширина: | Высота: | Размер: 632 B |
После Ширина: | Высота: | Размер: 640 B |
После Ширина: | Высота: | Размер: 826 B |
|
@ -0,0 +1,2 @@
|
|||
/* Toolbar buttons on Windows and Linux use -moz-appearance: toolbarbutton,
|
||||
* which styles them just fine, so they don't need anything special here. */
|
|
@ -0,0 +1,55 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Snowl.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Mozilla.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2008
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Myk Melez <myk@mozilla.org>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
|
||||
/* Style for a twisty with a label. Used by the river view to put titles
|
||||
* on groups of messages that can be hidden en masse (by pressing the twisty).
|
||||
* Modifies a <checkbox> element to achieve the effect. */
|
||||
|
||||
.twistbox {
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
||||
.twistbox > .checkbox-check {
|
||||
-moz-appearance: none;
|
||||
list-style-image: url("chrome://global/skin/tree/twisty-clsd.png");
|
||||
border: none;
|
||||
}
|
||||
|
||||
.twistbox[checked="true"] > .checkbox-check {
|
||||
-moz-appearance: none;
|
||||
list-style-image: url("chrome://global/skin/tree/twisty-open.png");
|
||||
}
|
После Ширина: | Высота: | Размер: 683 B |
После Ширина: | Высота: | Размер: 634 B |
После Ширина: | Высота: | Размер: 444 B |