public static ColorToken Green(this ColorToken token)
 {
     return token.Color(ConsoleColor.Green);
 }
    /// <summary>
    ///   <para>Sets color of the button to white.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    /// <seealso cref="IPinterestPinItButtonWidget.Color(string)"/>
    public static IPinterestPinItButtonWidget White(this IPinterestPinItButtonWidget widget)
    {
      Assertion.NotNull(widget);

      return widget.Color("white");
    }
 public static ColorToken DarkGray(this ColorToken token)
 {
     return token.Color(ConsoleColor.DarkGray);
 }
    /// <summary>
    ///   <para>Sets color of profile icon to white-and-orange pattern.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    /// <seealso cref="ISoundCloudProfileIconWidget.Color(string)"/>
    public static ISoundCloudProfileIconWidget WhiteOrange(this ISoundCloudProfileIconWidget widget)
    {
      Assertion.NotNull(widget);

      return widget.Color("white_orange");
    }
    /// <summary>
    ///   <para>Color of button.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <param name="color">Button's color.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    /// <seealso cref="IYandexMoneyButtonWidget.Color(string)"/>
    public static IYandexMoneyButtonWidget Color(this IYandexMoneyButtonWidget widget, YandexMoneyButtonColor color)
    {
      Assertion.NotNull(widget);

      return widget.Color(color.ToString().ToLowerInvariant());
    }
 public static ColorToken White(this ColorToken token)
 {
     return token.Color(ConsoleColor.White);
 }
Beispiel #7
0
 public static SolidColorBrush Brush(this ThemeColor color)
 {
     return new SolidColorBrush(color.Color());
 }
 public static ColorToken Red(this string text)
 {
     return text.Color(ConsoleColor.Red);
 }
 public static ColorToken White(this string text)
 {
     return text.Color(ConsoleColor.White);
 }
 public static ColorToken Green(this string text)
 {
     return text.Color(ConsoleColor.Green);
 }
 public static ColorToken Magenta(this string text)
 {
     return text.Color(ConsoleColor.Magenta);
 }
 public static ColorToken DarkGray(this string text)
 {
     return text.Color(ConsoleColor.DarkGray);
 }
 public static ColorToken Cyan(this string text)
 {
     return text.Color(ConsoleColor.Cyan);
 }
 public static ColorToken Blue(this string text)
 {
     return text.Color(ConsoleColor.Blue);
 }
 public static ColorToken Magenta(this ColorToken token)
 {
     return token.Color(ConsoleColor.Magenta);
 }
 public static ColorToken Yellow(this string text)
 {
     return text.Color(ConsoleColor.Yellow);
 }
 public static ColorToken Red(this ColorToken token)
 {
     return token.Color(ConsoleColor.Red);
 }
 /// <summary>
 /// Set the current color.
 /// </summary>
 /// <param name="gl">The OpenGL instance.</param>
 /// <param name="color">The color.</param>
 public static void Color(this OpenGL gl, GLColor color)
 {
     gl.Color(color.R, color.G, color.B, color.A);
 }
 public static ColorToken Yellow(this ColorToken token)
 {
     return token.Color(ConsoleColor.Yellow);
 }
 public static ColorToken Black(this ColorToken token)
 {
     return token.Color(ConsoleColor.Black);
 }
    /// <summary>
    ///   <para>Sets color of profile icon to black-and-white pattern.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    /// <seealso cref="ISoundCloudProfileIconWidget.Color(string)"/>
    public static ISoundCloudProfileIconWidget BlackWhite(this ISoundCloudProfileIconWidget widget)
    {
      Assertion.NotNull(widget);

      return widget.Color("black_white");
    }
 public static ColorToken DarkBlue(this ColorToken token)
 {
     return token.Color(ConsoleColor.DarkBlue);
 }
    /// <summary>
    ///   <para>Sets color of profile icon to transparent-white pattern.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    /// <seealso cref="ISoundCloudProfileIconWidget.Color(string)"/>
    public static ISoundCloudProfileIconWidget WhiteTransparent(this ISoundCloudProfileIconWidget widget)
    {
      Assertion.NotNull(widget);

      return widget.Color("white_transparent");
    }
 public static ColorToken DarkCyan(this ColorToken token)
 {
     return token.Color(ConsoleColor.DarkCyan);
 }
    /// <summary>
    ///   <para>Text label's color.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <param name="color">Label's color.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    /// <seealso cref="ISurfingbirdSurfButtonWidget.Color(string)"/>
    public static ISurfingbirdSurfButtonWidget Color(this ISurfingbirdSurfButtonWidget widget, SurfingbirdSurfButtonColor color)
    {
      Assertion.NotNull(widget);

      return widget.Color(color.ToString().ToLowerInvariant());
    }
    /// <summary>
    ///   <para>Sets color of the button to red.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    /// <seealso cref="IPinterestPinItButtonWidget.Color(string)"/>
    public static IPinterestPinItButtonWidget Red(this IPinterestPinItButtonWidget widget)
    {
      Assertion.NotNull(widget);

      return widget.Color("red");
    }