Example #1
0
        public Window() : base()
        {
            AddClass("panel");
            AddClass("window");
            AddClass("rounded");
            AddClass("text-shadow");

            Header = new(this);
            Header.AddClass("header");
            Header.AddClass("rounded-top");
            Header.AddClass("background-color-primary");

            Content = new()
            {
                Parent = this
            };
            Content.AddClass("content");
            Content.AddClass("background-color-primary");

            Footer = new(this);
            Footer.AddClass("footer");
            Footer.AddClass("rounded-bottom");
            Footer.AddClass("background-color-primary");

            IsDraggable = false;
        }
Example #2
0
        private void AddGlyphEntry(GlyphHintData glyphHintData)
        {
            Panel panel = Add.Panel();

            panel.AddClass("text-color-info");
            panel.AddClass("text-shadow");

            for (int i = 0; i < glyphHintData.InputButtons.Count; i++)
            {
                panel.AddChild(new BindingKeyImage(glyphHintData.InputButtons[i]));

                if (i != glyphHintData.InputButtons.Count - 1)
                {
                    Label label = panel.Add.Label(" + ", "text-color-info");
                    label.Style.PaddingTop  = 10;
                    label.Style.PaddingLeft = 5;
                }
            }

            TranslationLabel translationLabel = panel.Add.TranslationLabel(glyphHintData.TranslationData);

            translationLabel.Style.Padding     = 10;
            translationLabel.Style.PaddingLeft = 15;
        }