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 CreateAndAddChildren() { topIsHidden = false; this.BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor; FlowLayoutWidget container = new FlowLayoutWidget(FlowDirection.TopToBottom); container.AnchorAll(); TopContainer = new FlowLayoutWidget(FlowDirection.TopToBottom); TopContainer.HAnchor = HAnchor.ParentLeftRight; if (!UserSettings.Instance.IsTouchScreen) { #if !__ANDROID__ // The application menu bar, which is suppressed on Android ApplicationMenuRow menuRow = new ApplicationMenuRow(); 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)); container.AddChild(TopContainer); progressBar = new PrintProgressBar(); container.AddChild(progressBar); container.AddChild(menuSeparator); touchscreenTabView = new TouchscreenTabView(queueDataView); container.AddChild(touchscreenTabView); this.AddChild(container); }