Merge branch 'master' into datetime

This commit is contained in:
David Zeuthen 2011-01-19 12:46:00 -05:00
commit c3c34890ce
3 changed files with 33 additions and 21 deletions

View File

@ -17,6 +17,10 @@
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
stage {
font-family: cantarell, sans-serif;
}
.shell-link { .shell-link {
color: #0000ff; color: #0000ff;
text-decoration: underline; text-decoration: underline;
@ -101,7 +105,7 @@ StTooltip StLabel {
.popup-menu { .popup-menu {
color: #ffffff; color: #ffffff;
font-size: 16px; font-size: 14px;
min-width: 200px; min-width: 200px;
} }
@ -151,7 +155,7 @@ StTooltip StLabel {
} }
.popup-menu-icon { .popup-menu-icon {
icon-size: 1em; icon-size: 1.14em;
} }
/* Switches (to be used in menus) */ /* Switches (to be used in menus) */
@ -178,7 +182,6 @@ StTooltip StLabel {
#panel { #panel {
color: #ffffff; color: #ffffff;
font-size: 16px;
background-color: black; background-color: black;
} }
@ -209,7 +212,7 @@ StTooltip StLabel {
border-radius: 5px; border-radius: 5px;
border-radius-bottomleft: 0px; border-radius-bottomleft: 0px;
border-radius-bottomright: 0px; border-radius-bottomright: 0px;
font: 16px sans-serif; font-size: 14px;
font-weight: bold; font-weight: bold;
transition-duration: 100; transition-duration: 100;
} }
@ -242,7 +245,7 @@ StTooltip StLabel {
} }
.system-status-icon { .system-status-icon {
icon-size: 1em; icon-size: 1.14em;
} }
/* Overview */ /* Overview */
@ -464,7 +467,7 @@ StTooltip StLabel {
.dash-search-button-label { .dash-search-button-label {
color: #cccccc; color: #cccccc;
font: 16px sans-serif; font-size: 16px;
} }
/* Apps */ /* Apps */
@ -1036,7 +1039,7 @@ StTooltip StLabel {
} }
.source-title { .source-title {
font: 12px sans-serif; font-size: 12px;
font-weight: bold; font-weight: bold;
padding-left: 4px; padding-left: 4px;
} }
@ -1053,7 +1056,7 @@ StTooltip StLabel {
border-radius: 24px; border-radius: 24px;
padding: 20px; padding: 20px;
font: 12px sans-serif; font-size: 12px;
color: white; color: white;
} }
@ -1170,7 +1173,7 @@ StTooltip StLabel {
/* Modal Dialogs */ /* Modal Dialogs */
.modal-dialog { .modal-dialog {
font: 12pt sans-serif; font-size: 12pt;
border-radius: 24px; border-radius: 24px;
background-color: rgba(0.0, 0.0, 0.0, 0.9); background-color: rgba(0.0, 0.0, 0.0, 0.9);
border: 2px solid #868686; border: 2px solid #868686;
@ -1185,7 +1188,7 @@ StTooltip StLabel {
.modal-dialog-button { .modal-dialog-button {
border: 1px solid #8b8b8b; border: 1px solid #8b8b8b;
border-radius: 18px; border-radius: 18px;
font: 14px sans-serif; font-size: 14px;
margin-left: 10px; margin-left: 10px;
margin-right: 10px; margin-right: 10px;
@ -1218,7 +1221,7 @@ StTooltip StLabel {
/* Run Dialog */ /* Run Dialog */
.run-dialog-label { .run-dialog-label {
font: 12px sans-serif; font-size: 12px;
color: white; color: white;
} }
@ -1229,12 +1232,12 @@ StTooltip StLabel {
} }
.run-dialog-error-label { .run-dialog-error-label {
font: 16px sans-serif; font-size: 16px;
color: white; color: white;
} }
.run-dialog-entry { .run-dialog-entry {
font: 14px sans-serif; font-size: 14px;
font-weight: bold; font-weight: bold;
width: 320px; width: 320px;
color: white; color: white;
@ -1255,7 +1258,7 @@ StTooltip StLabel {
/* End Session Dialog */ /* End Session Dialog */
.end-session-dialog-subject { .end-session-dialog-subject {
font: 12pt sans-serif; font-size: 12pt;
font-weight: bold; font-weight: bold;
color: #666666; color: #666666;
padding-top: 10px; padding-top: 10px;
@ -1264,7 +1267,7 @@ StTooltip StLabel {
} }
.end-session-dialog-description { .end-session-dialog-description {
font: 10pt sans-serif; font-size: 10pt;
color: white; color: white;
padding-left: 17px; padding-left: 17px;
padding-right: 40px; padding-right: 40px;
@ -1284,7 +1287,7 @@ StTooltip StLabel {
} }
.end-session-dialog-app-list { .end-session-dialog-app-list {
font: 10pt sans-serif; font-size: 10pt;
max-height: 200px; max-height: 200px;
padding-top: 42px; padding-top: 42px;
padding-bottom: 42px; padding-bottom: 42px;
@ -1301,11 +1304,11 @@ StTooltip StLabel {
} }
.end-session-dialog-app-list-item-name { .end-session-dialog-app-list-item-name {
font: 10pt sans-serif; font-size: 10pt;
} }
.end-session-dialog-app-list-item-description { .end-session-dialog-app-list-item-description {
font: 8pt sans-serif; font-size: 8pt;
color: #444444; color: #444444;
} }

View File

@ -146,9 +146,9 @@ NotificationDaemon.prototype = {
return new St.Icon({ icon_name: icon, return new St.Icon({ icon_name: icon,
icon_type: St.IconType.FULLCOLOR, icon_type: St.IconType.FULLCOLOR,
icon_size: size }); icon_size: size });
} else if (hints.icon_data) { } else if (hints['image-data']) {
let [width, height, rowStride, hasAlpha, let [width, height, rowStride, hasAlpha,
bitsPerSample, nChannels, data] = hints.icon_data; bitsPerSample, nChannels, data] = hints['image-data'];
return textureCache.load_from_raw(data, data.length, hasAlpha, return textureCache.load_from_raw(data, data.length, hasAlpha,
width, height, rowStride, size); width, height, rowStride, size);
} else { } else {
@ -238,6 +238,15 @@ NotificationDaemon.prototype = {
hints = Params.parse(hints, { urgency: Urgency.NORMAL }, true); hints = Params.parse(hints, { urgency: Urgency.NORMAL }, true);
// Be compatible with the various hints for image data
// 'image-data' is the latest name of this hint, introduced in 1.2
if (!hints['image-data']) {
if (hints['image_data'])
hints['image-data'] = hints['image_data']; // version 1.1 of the spec
else if (hints['icon_data'])
hints['image-data'] = hints['icon_data']; // previous versions of the spec
}
let ndata = { appName: appName, let ndata = { appName: appName,
icon: icon, icon: icon,
summary: summary, summary: summary,

View File

@ -279,7 +279,7 @@ st_icon_style_changed (StWidget *widget)
StThemeNode *theme_node = st_widget_get_theme_node (widget); StThemeNode *theme_node = st_widget_get_theme_node (widget);
StIconPrivate *priv = self->priv; StIconPrivate *priv = self->priv;
priv->theme_icon_size = st_theme_node_get_length (theme_node, "icon-size"); priv->theme_icon_size = (int)(0.5 + st_theme_node_get_length (theme_node, "icon-size"));
st_icon_update_icon_size (self); st_icon_update_icon_size (self);
st_icon_update (self); st_icon_update (self);
} }