[gnome-shell-sass] messageTray: Add NotificationBanner actor
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] messageTray: Add NotificationBanner actor
- Date: Fri, 20 Feb 2015 16:31:22 +0000 (UTC)
commit de2baea3f921a28160a9be154683776338c1b5c2
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Feb 20 16:42:13 2015 +0100
messageTray: Add NotificationBanner actor
We no longer have a single notification actor that is either displayed
as banner or reparented to the summary depending on state - both the
lock screen and the notification section of the message list create
their own UI based on the information attached to the notification
object. Adding to this that different representations of a notification
may now exist simultaneously (as they are included in the message list
immediately rather than after the banner has been displayed), it no
longer makes sense to keep the banner actor in the notification itself.
Add a new NotificationBanner class that provides a separate banner
implementation based on the message list's NotificationMessage that will
soon replace the existing notification banners.
_common.scss | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/_common.scss b/_common.scss
index 76e725c..217c1df 100644
--- a/_common.scss
+++ b/_common.scss
@@ -1318,6 +1318,34 @@ StScrollBar {
.url-highlighter { link-color: $selected_bg_color; }
// Banners
+ .notification-banner {
+ font-size: 11pt;
+ width: 34em;
+ margin: 5px;
+ border-radius: 6px;
+ color: $_bubble_fg_color;
+ background-color: $_bubble_bg_color;
+ border: 1px solid $borders_color;
+ //box-shadow: 0 1px 4px black;
+ &:hover { background-color: $_bubble_bg_color; }
+ &:focus { background-color: $_bubble_bg_color; }
+
+ .notification-icon { padding: 5px; }
+ .notification-content { padding: 5px; spacing: 5px; }
+ .secondary-icon { icon-size: 1.09em; }
+ .notification-actions {
+ background-color: $borders_color;
+ padding-top: 2px;
+ spacing: 1px;
+ }
+ .notification-button {
+ padding: 4px 4px 5px;
+ background-color: darken($_bubble_bg_color,5%);
+ &:first-child { border-radius: 0 0 0 6px; }
+ &:last-child { border-radius: 0 0 6px 0; }
+ &:hover, &focus { background-color: darken($_bubble_bg_color,2%); }
+ }
+ }
.notification {
font-size: 11pt;
width: 34em;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]