public DataViewChildAlbum()
        {
            Orientation = Hyena.Gui.Canvas.Orientation.Vertical;
            Margin = new Thickness (5);
            Width = 90;
            Spacing = 2;

            Children.Add (img = new DataViewChildImage ());
            Children.Add (
                new TextBlock () {
                    Binder = new Hyena.Data.ObjectBinder () { Property = "DisplayTitle" },
                    UseMarkup = true,
                    TextFormat = "<small>{0}</small>",
                }
            );
            Children.Add (
                new TextBlock () {
                    Binder = new Hyena.Data.ObjectBinder () { Property = "DisplayArtistName" },
                    UseMarkup = true,
                    TextFormat = "<small>{0}</small>",
                    // FIXME non-1.0 opacity causes view's border to be drawn over; bgo#644315
                    Opacity = 1.0
                }
            );

            // Render the prelight just on the cover art, but triggered by being anywhere over the album
            PrelightRenderer = (cr, theme, size, o) => Prelight.Gradient (cr, theme, img.ContentAllocation, o);
        }
Exemple #2
0
 public Slider ()
 {
     Margin = new Thickness (3);
     MarginStyle = new ShadowMarginStyle {
         ShadowSize = 3,
         ShadowOpacity = 0.25
     };
 }
Exemple #3
0
 public CanvasItem ()
 {
     Visible = true;
     Opacity = 1.0;
     Width = Double.NaN;
     Height = Double.NaN;
     Margin = new Thickness (0);
     Padding = new Thickness (0);
     Foreground = Brush.Black;
     Background = Brush.White;
     MarginStyle = MarginStyle.None;
 }
        public CoverArtDisplay()
        {
            ImageSize = 60;
            UpdateImageSize ();

            Margin = new Thickness (5);
            MarginStyle = new ShadowMarginStyle {
                ShadowSize = 3,
                ShadowOpacity = 0.3,
                Fill = Brush.White
            };

            for (int i = 0; i < 2; i++) {
                Children.Add (new CoverArtImage ());
            }
        }
Exemple #5
0
 public ColumnCellText(string property, bool expand)
     : base(property, expand)
 {
     Padding = new Thickness (4, 0);
     SingleParagraphMode = true;
 }
Exemple #6
0
 public PhotoGridViewChild ()
 {
     Padding = new Thickness (5);
     CaptionSpacing = 10;
 }
Exemple #7
0
 public bool Equals(Thickness thickness)
 {
     return this == thickness;
 }
        public DataViewChildAlbum ()
        {
            artwork_manager = ServiceManager.Get<ArtworkManager> ();

            Padding = new Thickness (5);
            ImageSize = 90;
            ImageSpacing = 2;
            TextSpacing = 2;
        }