~ubuntu-branches/ubuntu/precise/gnome-do/precise-backports

« back to all changes in this revision

Viewing changes to Do.Addins/src/Do.UI/DarkFrame/GlassIconBox.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2008-10-08 20:35:38 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20081008203538-yty5q4gpfx1ldint
Tags: 0.6.1.0-0ubuntu1
* New upstream release.  FFe is (LP: #279328)
* debian/patches/04_fix_locale_path:
  + Fix the translations path sent to gettext.  Without this, translations
    aren't used by Do.
* debian/gnome-do.gconf-defaults:
  + Don't popup the UI on login; wait for the user to summon Do.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
                
34
34
                public GlassIconBox (int iconBoxSize) : base (iconBoxSize)
35
35
                {
36
 
                        focused_transparency = 0.25f;
37
 
                        unfocused_transparency = 0.0f;
 
36
                        focused_fill_transparency = focused_frame_transparency = 0.25f;
 
37
                        unfocused_fill_transparency = unfocused_frame_transparency = 0.0f;
38
38
                        
39
39
                        drawGradient = true;
40
40
                }
55
55
                                
56
56
                                textOverlay = value;
57
57
                                if (value) {
58
 
                                        FillAlpha = FrameAlpha = 0.4;
 
58
                                        FillAlpha = FrameAlpha = 0.5;
59
59
                                        FillColor = FrameColor = new Color (0x00, 0x00, 0x00);
60
60
                                        image.Hide ();
61
61
                                        label.Ellipsize = Pango.EllipsizeMode.None;
62
62
                                        label.LineWrapMode = Pango.WrapMode.WordChar;
63
63
                                        label.LineWrap = true;
64
64
                                        label.WidthRequest = (int) icon_size * 3;
 
65
                                        highlight = string.Empty;
65
66
                                } else {
66
67
                                        FillColor = FrameColor = new Color (0xff, 0xff, 0xff);
67
68
                                        image.Show ();
110
111
                protected override void PaintBorder ()
111
112
                {
112
113
                        cairo.Save ();
113
 
                        GetFrame (cairo);
114
 
                        
115
 
                        cairo.LineWidth = 2;
 
114
                        cairo.LineWidth = 1;
 
115
                        GetBorderFrame (cairo);
 
116
 
116
117
                        cairo.Pattern = GetGradient (.2);
117
118
                        cairo.Stroke ();
118
119