Beispiel #1
0
		public AwesomeBar ()
		{
			RunButton = new RunButton ();
			AddSubview (RunButton);

			SelectorView = new SelectorView ();
			SelectorView.SizeChanged += (object sender, EventArgs e) => UpdateLayout ();
			AddSubview (SelectorView);

			ButtonBarContainer = new ButtonBarContainer ();
			ButtonBarContainer.SizeChanged += (object sender, EventArgs e) => UpdateLayout ();
			AddSubview (ButtonBarContainer);

			StatusBar = new StatusBar ();
			AddSubview (StatusBar);

			SearchBar = new SearchBar ();
			AddSubview (SearchBar);
		}
Beispiel #2
0
        public AwesomeBar()
        {
            RunButton = new RunButton();
            AddSubview(RunButton);

            SelectorView              = new SelectorView();
            SelectorView.SizeChanged += (object sender, EventArgs e) => UpdateLayout();
            AddSubview(SelectorView);

            ButtonBarContainer              = new ButtonBarContainer();
            ButtonBarContainer.SizeChanged += (object sender, EventArgs e) => UpdateLayout();
            AddSubview(ButtonBarContainer);

            StatusBar = new StatusBar();
            AddSubview(StatusBar);

            SearchBar = new SearchBar();
            AddSubview(SearchBar);

            StatusBar.SearchBar = SearchBar;

            Ide.Gui.Styles.Changed += (o, e) => UpdateLayout();
        }