Esempio n. 1
0
        /// <summary>
        /// Sets the AccentColorInactive registry value according to given RGB values.
        /// </summary>
        /// <param name="r">Red value from 0-255.</param>
        /// <param name="g">Green value from 0-255.</param>
        /// <param name="b">Blue value from 0-255.</param>
        public static void SetInactiveAccentColor(byte r, byte g, byte b)
        {
            var red   = HexUtility.HexPadding(r);
            var green = HexUtility.HexPadding(g);
            var blue  = HexUtility.HexPadding(b);

            SetInactiveAccentColor(blue + green + red);
        }
Esempio n. 2
0
 private void UpdateHashField()
 {
     textBoxHash.Text = @"#" + HexUtility.RgbToHexValue((byte)Red, (byte)Green, (byte)Blue);
 }