PowerToys/src/common/Common.UI/CustomLibraryThemeProvider.cs

25 lines
722 B
C#
Raw Normal View History

Color Picker V2 (#7710) * Ground base for WPF version of V2 color picker * Added theming support * Layout fixes, added UWP listview styling * Updated UI * Added theming and Fluent to colorpicker. Styles cleanup * Added animation for "color copied" message * Added color format control, testing transparency * Added roll-over behaviour, selectable textbox and right-click context menu * Revert "Added roll-over behaviour, selectable textbox and right-click context menu" This reverts commit af35a23532046aa096f8a9cd7c1582aa2af3b423. * Delete context menu, mouse-over clipboard button and selectable text * Implemented remove color command, set color editor topmost * Missed some changes * Added all currently supported color formats into editor, added support for future custom formats * Added missed file * Reverted WindowStyle = None * Added drag and drop reorder behavior for color formats * Removed custom close button, UI cleanup, added scrollviewer to colorformats * Added close button * Added color picker color control to configure current color * Added possibility to add and remove color representations, commented out drag&drop reorder behavior * Calculate color variations of the current color, on click adds a new color into the history * Fixed reopening of editor, added rgb textboxes into color picker control, moved add color formats button at bottom * Improved color schemes, similiar to Windows 10X * Updated icon, window name and XAML cleanup * Moved strings to Resources file * Added Narrator support * Accesibility stuff * Revamped color picker color - now 3 sliders to configure color - hue, saturation, value, added bidirectional of setting values HEX/RGB/Sliders, validation of rgb and hex input * UX improvements * Removed color format management * Removed colorformat hide context menu * Improved colorpicker UI * Added colorformats XAML to Settings * Reverted runner change * Margin fix * Updated height of colorpicking tooltip * Using dynamic width for color picker based on a content * Fixed build * Added H,S,V labels in front of gradient sliders in color picker control * Color shades borders are now buttons, improved narrator support * Added tabindexes * Accesiblity improvements * UI bugfix * Fixed issue with occasional issue with saving color/removing colors due to locked settings file, decreased number of writes into settings.json, fixed throuttledActionInvoker to run only once, added rangeobservablecollection data type to be able to control notifications in observablecollection * Updated installer with newly added libs * Hide settings button since required functionality is not available yet * Added comments to resource file * Added reorder and enable/disable color formats from settings, * Show message when colors history empty, open color editor in the center of screen * Styling updates to now color selected popup * Added horizontal gripper icon on pointerover * Typo fix * Added new color formats into editor * Added 3 different activation actions to choose from * Added new color formats into settings for editor * Update src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com> * Updated expect.txt * Removed MahApps * Removed MahApps from installer for Color Picker module * Updated settings page * Typo fix and moved string to Resources * Typo fixes and string improvements * Fixing build * Replacing DispatcherTimer with Timer from System.Timers * Fixing tests * adjustments * adjustments * removed periods * Fixing build * unifiying language * Added using statement in tests * Disabled drop shadow for Color Picker and Zoom Window due to poor performance * Stylecop fixes Co-authored-by: Niels Laute <niels.laute@live.nl> Co-authored-by: Niels Laute <niels9001@hotmail.com> Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com> Co-authored-by: Clint Rutkas <clint@rutkas.com>
2020-11-20 20:50:47 +08:00
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using ControlzEx.Theming;
namespace Common.UI
Color Picker V2 (#7710) * Ground base for WPF version of V2 color picker * Added theming support * Layout fixes, added UWP listview styling * Updated UI * Added theming and Fluent to colorpicker. Styles cleanup * Added animation for "color copied" message * Added color format control, testing transparency * Added roll-over behaviour, selectable textbox and right-click context menu * Revert "Added roll-over behaviour, selectable textbox and right-click context menu" This reverts commit af35a23532046aa096f8a9cd7c1582aa2af3b423. * Delete context menu, mouse-over clipboard button and selectable text * Implemented remove color command, set color editor topmost * Missed some changes * Added all currently supported color formats into editor, added support for future custom formats * Added missed file * Reverted WindowStyle = None * Added drag and drop reorder behavior for color formats * Removed custom close button, UI cleanup, added scrollviewer to colorformats * Added close button * Added color picker color control to configure current color * Added possibility to add and remove color representations, commented out drag&drop reorder behavior * Calculate color variations of the current color, on click adds a new color into the history * Fixed reopening of editor, added rgb textboxes into color picker control, moved add color formats button at bottom * Improved color schemes, similiar to Windows 10X * Updated icon, window name and XAML cleanup * Moved strings to Resources file * Added Narrator support * Accesibility stuff * Revamped color picker color - now 3 sliders to configure color - hue, saturation, value, added bidirectional of setting values HEX/RGB/Sliders, validation of rgb and hex input * UX improvements * Removed color format management * Removed colorformat hide context menu * Improved colorpicker UI * Added colorformats XAML to Settings * Reverted runner change * Margin fix * Updated height of colorpicking tooltip * Using dynamic width for color picker based on a content * Fixed build * Added H,S,V labels in front of gradient sliders in color picker control * Color shades borders are now buttons, improved narrator support * Added tabindexes * Accesiblity improvements * UI bugfix * Fixed issue with occasional issue with saving color/removing colors due to locked settings file, decreased number of writes into settings.json, fixed throuttledActionInvoker to run only once, added rangeobservablecollection data type to be able to control notifications in observablecollection * Updated installer with newly added libs * Hide settings button since required functionality is not available yet * Added comments to resource file * Added reorder and enable/disable color formats from settings, * Show message when colors history empty, open color editor in the center of screen * Styling updates to now color selected popup * Added horizontal gripper icon on pointerover * Typo fix * Added new color formats into editor * Added 3 different activation actions to choose from * Added new color formats into settings for editor * Update src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com> * Updated expect.txt * Removed MahApps * Removed MahApps from installer for Color Picker module * Updated settings page * Typo fix and moved string to Resources * Typo fixes and string improvements * Fixing build * Replacing DispatcherTimer with Timer from System.Timers * Fixing tests * adjustments * adjustments * removed periods * Fixing build * unifiying language * Added using statement in tests * Disabled drop shadow for Color Picker and Zoom Window due to poor performance * Stylecop fixes Co-authored-by: Niels Laute <niels.laute@live.nl> Co-authored-by: Niels Laute <niels9001@hotmail.com> Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com> Co-authored-by: Clint Rutkas <clint@rutkas.com>
2020-11-20 20:50:47 +08:00
{
public class CustomLibraryThemeProvider : LibraryThemeProvider
{
public static readonly CustomLibraryThemeProvider DefaultInstance = new CustomLibraryThemeProvider();
public CustomLibraryThemeProvider()
: base(true)
{
}
/// <inheritdoc />
public override void FillColorSchemeValues(Dictionary<string, string> values, RuntimeThemeColorValues colorValues)
{
}
}
}