Exemple #1
0
        void LoadSettingsRows()
        {
            settingsRowContainer.RemoveScrollChildren();
            UiThread.RunOnIdle((state) =>
            {
                foreach (KeyValuePair <String, DataStorage.SliceSetting> item in this.windowController.ActivePresetLayer.settingsDictionary)
                {
                    OrganizerSettingsData settingData = SliceSettingsOrganizer.Instance.GetSettingsData(item.Key);
                    FlowLayoutWidget row = GetSettingsRow(settingData, item.Value.Value);
                    row.Padding          = new BorderDouble(3, 3, 3, 6);

                    settingsRowContainer.AddChild(row);
                    HorizontalLine horizontalLine  = new HorizontalLine();
                    horizontalLine.BackgroundColor = ActiveTheme.Instance.SecondaryTextColor;
                    settingsRowContainer.AddChild(horizontalLine);
                }
            });
        }
Exemple #2
0
        private FlowLayoutWidget GetMiddleRow()
        {
            FlowLayoutWidget container = new FlowLayoutWidget();

            container.HAnchor         = HAnchor.ParentLeftRight;
            container.VAnchor         = Agg.UI.VAnchor.ParentBottomTop;
            container.BackgroundColor = ActiveTheme.Instance.SecondaryBackgroundColor;
            container.Margin          = new BorderDouble(0, 3, 0, 0);

            presetListControl = new PresetListControl();

            foreach (SliceSettingsCollection collection in GetCollections())
            {
                presetListControl.AddChild(new PresetListItem(this.windowController, collection));
            }
            container.AddChild(presetListControl);

            return(container);
        }
		private FlowLayoutWidget GetMiddleRow()
		{
			FlowLayoutWidget container = new FlowLayoutWidget();
			container.HAnchor = HAnchor.ParentLeftRight;
			container.VAnchor = Agg.UI.VAnchor.ParentBottomTop;
			container.BackgroundColor = ActiveTheme.Instance.SecondaryBackgroundColor;
			container.Margin = new BorderDouble(0, 3, 0, 0);

			presetListControl = new PresetListControl();

			foreach (SliceSettingsCollection collection in GetCollections())
			{
				presetListControl.AddChild(new PresetListItem(this.windowController, collection));
			}
			container.AddChild(presetListControl);

			return container;
		}