Exemplo n.º 1
0
 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");
    }
Exemplo n.º 3
0
 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());
    }
Exemplo n.º 6
0
 public static ColorToken White(this ColorToken token)
 {
     return token.Color(ConsoleColor.White);
 }
Exemplo n.º 7
0
 public static SolidColorBrush Brush(this ThemeColor color)
 {
     return new SolidColorBrush(color.Color());
 }
Exemplo n.º 8
0
 public static ColorToken Red(this string text)
 {
     return text.Color(ConsoleColor.Red);
 }
Exemplo n.º 9
0
 public static ColorToken White(this string text)
 {
     return text.Color(ConsoleColor.White);
 }
Exemplo n.º 10
0
 public static ColorToken Green(this string text)
 {
     return text.Color(ConsoleColor.Green);
 }
Exemplo n.º 11
0
 public static ColorToken Magenta(this string text)
 {
     return text.Color(ConsoleColor.Magenta);
 }
Exemplo n.º 12
0
 public static ColorToken DarkGray(this string text)
 {
     return text.Color(ConsoleColor.DarkGray);
 }
Exemplo n.º 13
0
 public static ColorToken Cyan(this string text)
 {
     return text.Color(ConsoleColor.Cyan);
 }
Exemplo n.º 14
0
 public static ColorToken Blue(this string text)
 {
     return text.Color(ConsoleColor.Blue);
 }
Exemplo n.º 15
0
 public static ColorToken Magenta(this ColorToken token)
 {
     return token.Color(ConsoleColor.Magenta);
 }
Exemplo n.º 16
0
 public static ColorToken Yellow(this string text)
 {
     return text.Color(ConsoleColor.Yellow);
 }
Exemplo n.º 17
0
 public static ColorToken Red(this ColorToken token)
 {
     return token.Color(ConsoleColor.Red);
 }
Exemplo n.º 18
0
 /// <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);
 }
Exemplo n.º 19
0
 public static ColorToken Yellow(this ColorToken token)
 {
     return token.Color(ConsoleColor.Yellow);
 }
Exemplo n.º 20
0
 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");
    }
Exemplo n.º 22
0
 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");
    }
Exemplo n.º 24
0
 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");
    }