public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.ForeColor != ControlTheme.NullColor)
     {
         label1.ForeColor = ct.ForeColor;
         label2.ForeColor = ct.ForeColor;
         label3.ForeColor = ct.ForeColor;
         label4.ForeColor = ct.ForeColor;
         label5.ForeColor = ct.ForeColor;
         label6.ForeColor = ct.ForeColor;
         label7.ForeColor = ct.ForeColor;
         cmbSupType.ForeColor = ct.ForeColor;
     }
     if (ct.BackColor != ControlTheme.NullColor)
     {
         BackColor = ct.BackColor;
         cmbSupType.BackColor = ct.BackColor;
         flowLayoutPanel2.BackColor = ct.BackColor;
     }
     if (ct.FrameColor != ControlTheme.NullColor)
     {
         flowLayoutPanel1.BackColor = ct.FrameColor;
         panel1.BackColor = ct.FrameColor;
         panel2.BackColor = ct.FrameColor;
         panelSuppotShape.BackColor = ct.FrameColor;
     }
 }
 public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.ForeColor != ControlTheme.NullColor)
     {
         labelManipType.ForeColor = ct.ForeColor;
         textScaleX.ForeColor = ct.ForeColor;
         textScaleY.ForeColor = ct.ForeColor;
         textScaleZ.ForeColor = ct.ForeColor;
         textScaleAll.ForeColor = ct.ForeColor;
     }
     if (ct.BackColor != ControlTheme.NullColor)
     {
         BackColor = ct.BackColor;
         manipObject.BackColor = ct.BackColor;
         textScaleX.BackColor = ct.BackColor;
         textScaleY.BackColor = ct.BackColor;
         textScaleZ.BackColor = ct.BackColor;
         textScaleAll.BackColor = ct.BackColor;
     }
     if (ct.FrameColor != ControlTheme.NullColor)
     {
         flowLayoutPanel1.BackColor = ct.FrameColor;
         flowLayoutPanel4.BackColor = ct.FrameColor;
         flowLayoutPanel3.BackColor = ct.FrameColor;
         flowLayoutPanel5.BackColor = ct.FrameColor;
     }
 }
 public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.ForeColor != ControlTheme.NullColor)
     {
         label8.ForeColor = ct.ForeColor;
         textRotateX.ForeColor = ct.ForeColor;
         textRotateY.ForeColor = ct.ForeColor;
         textRotateZ.ForeColor = ct.ForeColor;
     }
     if (ct.BackColor != ControlTheme.NullColor)
     {
         BackColor = ct.BackColor;
         flowLayoutPanel2.BackColor = ct.BackColor;
         textRotateX.BackColor = ct.BackColor;
         textRotateY.BackColor = ct.BackColor;
         textRotateZ.BackColor = ct.BackColor;
     }
     if (ct.FrameColor != ControlTheme.NullColor)
     {
         flowLayoutPanel7.BackColor = ct.FrameColor;
         flowLayoutPanel8.BackColor = ct.FrameColor;
         flowLayoutPanel10.BackColor = ct.FrameColor;
     }
 }
 public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.ForeColor != ControlTheme.NullColor)
         ForeColor = ct.ForeColor;
     if (ct.BackColor != ControlTheme.NullColor)
         BackColor = ct.BackColor;
 }
 public void ApplyThemeRecurse(Control ctl, ControlTheme ct)
 {
     foreach (Control subctl in ctl.Controls)
     {
         if (subctl.GetType().IsSubclassOf(typeof(ctlUserPanel)))
         {
             ((ctlUserPanel)subctl).ApplyTheme(ct);
         }
         else
         {
             ApplyThemeRecurse(subctl, ct);
         }
     }
 }
Esempio n. 6
0
 public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.BackColor != ControlTheme.NullColor)
     {
         BackColor = ct.BackColor;
         flowLayoutPanel2.BackColor = ct.BackColor;
     }
     if (ct.FrameColor != ControlTheme.NullColor)
     {
         flowLayoutPanel1.BackColor = ct.FrameColor;
         flowLayoutPanel3.BackColor = ct.FrameColor;
         flowLayoutPanel4.BackColor = ct.FrameColor;
     }
 }
 public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.ForeColor != ControlTheme.NullColor)
     {
         tTitle.ForeColor = ct.ForeColor;
         tName.ForeColor = ct.ForeColor;
     }
     if (ct.BackColor != ControlTheme.NullColor)
     {
         BackColor = ct.BackColor;
         layoutPanel.BackColor = ct.BackColor;
         tTitle.BackColor = ct.BackColor;
         tName.BackColor = ct.BackColor;
     }
 }
 public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.ForeColor != ControlTheme.NullColor)
     {
         lblTitle.ForeColor = ct.ForeColor;
         treeScene.ForeColor = ct.ForeColor;
         treeScene.LineColor = ct.ForeColor;
     }
     if (ct.BackColor != ControlTheme.NullColor)
     {
         BackColor = ct.BackColor;
         manipObject.BackColor = ct.BackColor;
     }
     if (ct.FrameColor != ControlTheme.NullColor)
     {
         treeScene.BackColor = ct.FrameColor;
     }
 }
 void UpdateTheme(XmlNode xnode, ControlTheme th)
 {
     th.ForeColor = GetColorParam(xnode, "forecolor", th.ForeColor);
     th.BackColor = GetColorParam(xnode, "backcolor", th.BackColor);
     th.FrameColor = GetColorParam(xnode, "framecolor", th.BackColor);
 }
Esempio n. 10
0
 void HandleControlTheme(XmlNode xnode)
 {
     ControlsCT = new ControlTheme();
     UpdateTheme(xnode, ControlsCT);
     foreach (KeyValuePair<String, ctlUserPanel> pair in Controls)
     {
         ctlUserPanel ctl = pair.Value;
         ctl.ApplyTheme(ControlsCT);
     }
 }
Esempio n. 11
0
 void HandleButtonTheme(XmlNode xnode)
 {
     ButtonsCT = new ControlTheme();
     UpdateTheme(xnode, ButtonsCT);
     foreach (KeyValuePair<String, ctlImageButton> pair in Buttons)
     {
         ctlImageButton butt = pair.Value;
         butt.ApplyTheme(ButtonsCT);
     }
 }
Esempio n. 12
0
        public void SetControlTheme(EntityType entity, ControlTheme colcs)
        {
            switch (entity)
            {
                case EntityType.Buttons:
                    ButtonsCT = colcs;
                    break;

                case EntityType.Panels:
                    ControlsCT = colcs;
                    break;
            }
        }
 public virtual void ApplyTheme(ControlTheme ct)
 {
     ApplyThemeRecurse(this, ct);
     if (ct.BackColor != ControlTheme.NullColor)
         bgndPanel.col = ct.BackColor;
 }
 public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.BackColor != ControlTheme.NullColor)
     {
         BackColor = ct.BackColor;
         labelTitle.BackColor = ct.BackColor;
     }
     if (ct.FrameColor != ControlTheme.NullColor)
         labelData.BackColor = ct.FrameColor;
     if (ct.ForeColor != ControlTheme.NullColor)
     {
         labelData.ForeColor = ct.ForeColor;
         labelTitle.ForeColor = ct.ForeColor;
     }
 }
 public override void ApplyTheme(ControlTheme ct)
 {
     base.ApplyTheme(ct);
     if (ct.ForeColor != ControlTheme.NullColor)
     {
         cmdCreatePrim.ForeColor = ct.ForeColor;
         label1.ForeColor = ct.ForeColor;
         label2.ForeColor = ct.ForeColor;
         label3.ForeColor = ct.ForeColor;
         label4.ForeColor = ct.ForeColor;
         label5.ForeColor = ct.ForeColor;
         label6.ForeColor = ct.ForeColor;
         label7.ForeColor = ct.ForeColor;
         label8.ForeColor = ct.ForeColor;
         label9.ForeColor = ct.ForeColor;
         progressTitle.ForeColor = ct.ForeColor;
     }
     if (ct.BackColor != ControlTheme.NullColor)
     {
         BackColor = ct.BackColor;
         cmdCreatePrim.BackColor = ct.BackColor;
         progressTitle.BackColor = ct.BackColor;
     }
     if (ct.FrameColor != ControlTheme.NullColor)
     {
         flowLayoutPanel1.BackColor = ct.FrameColor;
         flowLayoutPanel3.BackColor = ct.FrameColor;
         flowLayoutPanel4.BackColor = ct.FrameColor;
         pnlSphere.BackColor = ct.FrameColor;
         pnlCone.BackColor = ct.FrameColor;
         pnlCube.BackColor = ct.FrameColor;
         pnlTorus.BackColor = ct.FrameColor;
     }
 }