Ejemplo n.º 1
0
        public override void AddElements()
        {
            topIsHidden          = false;
            this.BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;

            FlowLayoutWidget container = new FlowLayoutWidget(FlowDirection.TopToBottom);

            container.AnchorAll();

            TopContainer         = new TopContainerWidget();
            TopContainer.HAnchor = HAnchor.ParentLeftRight;

            ApplicationMenuRow menuRow = new ApplicationMenuRow();

#if !__ANDROID__
            TopContainer.AddChild(menuRow);
#endif

            menuSeparator             = new GuiWidget();
            menuSeparator.Height      = 12;
            menuSeparator.HAnchor     = HAnchor.ParentLeftRight;
            menuSeparator.MinimumSize = new Vector2(0, 12);
            menuSeparator.Visible     = false;

            queueDataView = new QueueDataView();
            TopContainer.AddChild(new ActionBarPlus(queueDataView));
            TopContainer.SetOriginalHeight();

            container.AddChild(TopContainer);

            progressBar = new PrintProgressBar();

            container.AddChild(progressBar);
            container.AddChild(menuSeparator);
            compactTabView = new CompactTabView(queueDataView);

            BottomOverlay bottomOverlay = new BottomOverlay();
            bottomOverlay.AddChild(compactTabView);

            container.AddChild(bottomOverlay);

            this.AddChild(container);
        }
		public override void AddElements()
		{
			topIsHidden = false;
			this.BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;

			FlowLayoutWidget container = new FlowLayoutWidget(FlowDirection.TopToBottom);
			container.AnchorAll();

			TopContainer = new TopContainerWidget();
			TopContainer.HAnchor = HAnchor.ParentLeftRight;

			ApplicationMenuRow menuRow = new ApplicationMenuRow();
#if !__ANDROID__
			TopContainer.AddChild(menuRow);
#endif

			menuSeparator = new GuiWidget();
			menuSeparator.Height = 12;
			menuSeparator.HAnchor = HAnchor.ParentLeftRight;
			menuSeparator.MinimumSize = new Vector2(0, 12);
			menuSeparator.Visible = false;

			queueDataView = new QueueDataView();
			TopContainer.AddChild(new ActionBarPlus(queueDataView));
			TopContainer.SetOriginalHeight();

			container.AddChild(TopContainer);

			progressBar = new PrintProgressBar();

			container.AddChild(progressBar);
			container.AddChild(menuSeparator);
			compactTabView = new CompactTabView(queueDataView);

			BottomOverlay bottomOverlay = new BottomOverlay();
			bottomOverlay.AddChild(compactTabView);

			container.AddChild(bottomOverlay);

			this.AddChild(container);
		}