[Sugar-devel] [PATCH] Add the SugarTimeoutIcon to set the font and background color

Simon Schampijer simon at schampijer.de
Sat Aug 13 09:11:22 EDT 2011


Pushed as: 
http://git.sugarlabs.org/sugar-artwork/mainline/commit/94cf206d5d56f0775c6abf6fb9c04c71a8e6692a

Regards,
    Simon

On 08/12/2011 12:37 AM, Simon Schampijer wrote:
> Signed-off-by: Benjamin Berg<benzea at sugarlabs.org>
> Reviewed-by: Simon Schampijer<simon at laptop.org>
> ---
>   gtk/theme/gtkrc.em |   13 +++++++++++++
>   1 files changed, 13 insertions(+), 0 deletions(-)
>
> diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em
> index 69dccd9..7f180a7 100644
> --- a/gtk/theme/gtkrc.em
> +++ b/gtk/theme/gtkrc.em
> @@ -740,6 +740,16 @@ style "parent-bg"
>       }
>   }
>
> +style "sugartimeout"
> +{
> +    bg[NORMAL] = $white
> +    fg[NORMAL] = $button_grey
> +    bg[ACTIVE] = $toolbar_grey
> +    fg[ACTIVE] = $white
> +    bg[PRELIGHT] = $white
> +    fg[PRELIGHT] = $button_grey
> +}
> +
>   ####################################################################
>   # Default style, setting some generic options and style properties
>   ####################################################################
> @@ -853,6 +863,9 @@ widget_class "*<GtkToolbar>"              style "toolbar"
>   # Tray
>   widget_class "*<SugarTrayIcon>*" style "trayicon"
>
> +# Timeout Icon
> +widget_class "*<SugarTimeoutIcon>*" style "sugartimeout"
> +
>   # Widgets that should get the background color from the parent
>   widget_class "*<GtkEventBox>"        style "parent-bg"
>   widget_class "*<GtkLayout>"          style "parent-bg"



More information about the Sugar-devel mailing list