예제 #1
0
        public override void InitElements()
        {
            track.SetBackground(Common.Selected);
            track.SetHeight(4);
            track.SetSizePolicy(SizePolicy.Fixed, SizePolicy.Fixed);
            track.SetBorderRadius(2);
            track.SetAlignment(ItemAlignment.VCenter | ItemAlignment.Left);
            track.SetMargin(0, 0, 40, 0);

            progress.SetStyle(track.GetCoreStyle());
            progress.SetBackground(Common.Extinguished);
            progress.SetSizePolicy(SizePolicy.Expand, SizePolicy.Fixed);
            progress.SetBorderRadius(2);

            value.SetFont(Common.AppFont);
            value.SetFontSize(22);
            value.SetForeground(Common.Text);
            value.SetTextAlignment(ItemAlignment.VCenter | ItemAlignment.Right);

            AddItems(
                progress,
                track,
                value
                );
            UpdateLayout();
        }