Skip to content

Commit

Permalink
Color issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jchomarat committed Nov 12, 2019
1 parent 4c05410 commit 81f7ba8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions TimerRibbon.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Linq;
using System.Drawing;
using System.Linq;
using Microsoft.Office.Core;
using Microsoft.Office.Tools.Ribbon;
using Microsoft.Office.Interop.PowerPoint;
Expand All @@ -23,9 +24,9 @@ private void AddTimer_Click(object sender, RibbonControlEventArgs e)
2, 2, 120, 45);

textBoxCounter.TextFrame.TextRange.Text = Constants.DefaultTimerValue;
//textBoxCounter.TextFrame.TextRange.Font.Size = 40;
textBoxCounter.Tags.Add(Constants.TimerTag, Constants.TimerTagValue);

textBoxCounter.TextFrame.TextRange.Font.Color.RGB = ColorTranslator.ToOle(Color.Black);
// Hide it
textBoxCounter.Visible = MsoTriState.msoFalse;

var textBoxLauncher = currentSlide.Shapes.AddTextbox(
Expand All @@ -34,6 +35,7 @@ private void AddTimer_Click(object sender, RibbonControlEventArgs e)

textBoxLauncher.TextFrame.TextRange.Text = Constants.DefaultTimerValue;
textBoxLauncher.TextFrame.TextRange.Font.Size = 40;
textBoxLauncher.TextFrame.TextRange.Font.Color.RGB = ColorTranslator.ToOle(Color.Black);
textBoxLauncher.Tags.Add(Constants.TimerLauncherTag, textBoxCounter.Id.ToString());

// Add a "bold" animation to triggers the countdown
Expand Down

0 comments on commit 81f7ba8

Please sign in to comment.