public void ThemedLabelTest() { var frm = MakeGlassTestForm(); var tl = new ThemedLabel { Text = "Test text", GlowingText = false, SupportGlass = false, Location = new System.Drawing.Point(5, 5) }; tl.SetTheme("Button", 1, 1); frm.Controls.Add(tl); frm.Controls.Add(new Label { Text = "Control label", Location = new Point(5, 100) }); frm.ShowDialog(); }
private void InitFormComponents() { BackColor = Color.Black; //Themed Label _labelGlass = new ThemedLabel { Dock = DockStyle.Fill, ForeColor = SystemColors.ControlText, Location = Point.Empty, Size = ClientSize, Name = "labelGlass", Text = Strings.RightClick, TextAlign = HorizontalAlignment.Center, TextAlignVertical = VerticalAlignment.Center }; this.Controls.Add(_labelGlass); }