Beispiel #1
0
        private void pnl_textColorImg_Click(object sender, EventArgs e)
        {
            if (Program.MainTimeline.SelectedKeyframe == null)
            {
                return;
            }
            if (Program.MainTimeline.SelectedKeyframe.State.GetType() != typeof(TextObject.State))
            {
                return;
            }

            TextObject.State state = Program.MainTimeline.SelectedKeyframe.State as TextObject.State;

            ColorPickerDialog dlg = new ColorPickerDialog();

            dlg.StartPosition = FormStartPosition.CenterParent;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                pnl_textColorImg.BackColor = dlg.Color;
                lbl_textColorNumbers.Text  = string.Format("{0}, {1}, {2}", dlg.Color.R, dlg.Color.G, dlg.Color.B);
            }

            state.TextColor = dlg.Color;

            Program.MainTimeline.GLContext.Invalidate();
        }
Beispiel #2
0
        private void pnl_CanvasColor_Click(object sender, EventArgs e)
        {
            ColorPickerDialog dlg = new ColorPickerDialog();

            dlg.StartPosition = FormStartPosition.CenterParent;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                pnl_CanvasColor.BackColor   = dlg.Color;
                lbl_CanvasColorNumbers.Text = string.Format("{0}, {1}, {2}, {3}", dlg.Color.R, dlg.Color.G, dlg.Color.B, dlg.Color.A);
            }
        }
        private void pnl_CanvasColor_Click(object sender, EventArgs e)
        {
            ColorPickerDialog dlg = new ColorPickerDialog();

            dlg.StartPosition = FormStartPosition.CenterParent;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                pnl_CanvasColor.BackColor = dlg.Color;
                lbl_CanvasColorNumbers.Text = string.Format("{0}, {1}, {2}, {3}", dlg.Color.R, dlg.Color.G, dlg.Color.B, dlg.Color.A);
            }
        }
Beispiel #4
0
        private void pnl_handleColorImg_Click(object sender, EventArgs e)
        {
            if (SelectedPair == null)
            {
                return;
            }

            ColorPickerDialog dlg = new ColorPickerDialog();

            dlg.StartPosition = FormStartPosition.CenterParent;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                SelectedPair.Item1.HandleColor = dlg.Color;
                UpdateSelection();
            }

            GLContext.Invalidate();
        }
Beispiel #5
0
        private void openColorPickerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ColorPickerDialog dlg = new ColorPickerDialog();

            dlg.ShowDialog();
        }
Beispiel #6
0
        private void pnl_textColorImg_Click(object sender, EventArgs e)
        {
            if (Program.MainTimeline.SelectedKeyframe == null)
                return;
            if (Program.MainTimeline.SelectedKeyframe.State.GetType() != typeof(TextObject.State))
                return;

            TextObject.State state = Program.MainTimeline.SelectedKeyframe.State as TextObject.State;

            ColorPickerDialog dlg = new ColorPickerDialog();

            dlg.StartPosition = FormStartPosition.CenterParent;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                pnl_textColorImg.BackColor = dlg.Color;
                lbl_textColorNumbers.Text = string.Format("{0}, {1}, {2}", dlg.Color.R, dlg.Color.G, dlg.Color.B);
            }

            state.TextColor = dlg.Color;

            Program.MainTimeline.GLContext.Invalidate();
        }