{"id":13779084,"url":"https://github.com/egorozh/Egorozh.ColorPicker","last_synced_at":"2025-05-11T12:32:38.762Z","repository":{"id":37869957,"uuid":"243991665","full_name":"egorozh/Egorozh.ColorPicker","owner":"egorozh","description":"🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI","archived":false,"fork":false,"pushed_at":"2024-03-15T17:48:31.000Z","size":1081,"stargazers_count":77,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-05-11T08:48:37.054Z","etag":null,"topics":["avalonia","avaloniaui","color-palette","color-picker","colorpicker","csharp","netcore","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egorozh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-29T15:20:05.000Z","updated_at":"2025-04-17T16:27:42.000Z","dependencies_parsed_at":"2024-06-21T05:43:11.192Z","dependency_job_id":null,"html_url":"https://github.com/egorozh/Egorozh.ColorPicker","commit_stats":{"total_commits":130,"total_committers":3,"mean_commits":"43.333333333333336","dds":"0.29230769230769227","last_synced_commit":"8e26eb08961dabd6896ddd0d5e99d5eae12c3c7c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorozh%2FEgorozh.ColorPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorozh%2FEgorozh.ColorPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorozh%2FEgorozh.ColorPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorozh%2FEgorozh.ColorPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egorozh","download_url":"https://codeload.github.com/egorozh/Egorozh.ColorPicker/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253567192,"owners_count":21928796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avalonia","avaloniaui","color-palette","color-picker","colorpicker","csharp","netcore","wpf"],"created_at":"2024-08-03T18:01:00.874Z","updated_at":"2025-05-11T12:32:38.303Z","avatar_url":"https://github.com/egorozh.png","language":"C#","funding_links":[],"categories":["Libraries \u0026 Extensions"],"sub_categories":["Controls"],"readme":"[![Nuget (with prereleases)](https://img.shields.io/nuget/v/Egorozh.ColorPicker.Avalonia.Dialog?label=avalonia-nuget\u0026style=plastic)](https://www.nuget.org/packages/Egorozh.ColorPicker.Avalonia.Dialog/) [![Nuget (with prereleases)](https://img.shields.io/nuget/v/Egorozh.ColorPicker.WPF.Dialog?label=wpf-nuget\u0026style=plastic)](https://www.nuget.org/packages/Egorozh.ColorPicker.WPF.Dialog/) [![Nuget (with prereleases)](https://img.shields.io/nuget/v/Egorozh.ColorPicker.WPF.Dialog.MahApps?label=wpf-mahapps-nuget\u0026style=plastic)](https://www.nuget.org/packages/Egorozh.ColorPicker.WPF.Dialog.MahApps/)\n\n# Egorozh.ColorPicker\n\n## AvaloniaUI ColorPicker:\n![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-avalonia-1.png \"Пример диалогого окна\")\n![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-avalonia-2.png \"Пример диалогого окна\")\n![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-avalonia-3.png \"Пример диалогого окна\")\n\n### AvaloniaUI  Getting Started\n\nInstall the library as a NuGet package:\n\n```powershell\nInstall-Package Egorozh.ColorPicker.Avalonia.Dialog\n# Or 'dotnet add package Egorozh.ColorPicker.Avalonia.Dialog'\n```\n\nThen, reference the preffered theme from your `App.xaml` file:\n\n```xml\n\u003cApplication xmlns=\"https://github.com/avaloniaui\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n             xmlns:dialog=\"clr-namespace:Egorozh.ColorPicker.Dialog;assembly=Egorozh.ColorPicker.Avalonia.Dialog\"\n             x:Class=\"YourNamespace.App\"\u003e\n  \u003cApplication.Styles\u003e\n      \n      \u003cSimpleTheme Mode=\"Dark\"/\u003e\n      \u003cdialog:SimpleColorTheme Mode=\"Dark\"/\u003e\n\n      \u003c!-- To use other themes:--\u003e\n      \u003c!-- \u003cFluentTheme Mode=\"Light\" /\u003e --\u003e\n      \u003c!-- \u003cdialog:FluentColorPickerTheme Mode=\"Light\" /\u003e --\u003e\n\n      \u003c!-- \u003cFluentTheme Mode=\"Dark\" /\u003e  --\u003e\n      \u003c!-- \u003cdialog:FluentColorPickerTheme Mode=\"Dark\" /\u003e --\u003e\n  \u003c/Application.Styles\u003e\n\u003c/Application\u003e\n```\nDone! Use ColorPickerButton \n```xml\n\u003cdialog:ColorPickerButton Color=\"#99029344\"\n                          Cursor=\"Hand\"/\u003e\n```\nor ColorPickerDialog:\n```c#\nColorPickerDialog dialog = new ()\n{\n  Color = _color\n};\n\nvar res = await dialog.ShowDialog\u003cbool\u003e(Owner);\n\nif (res)\n  _color = dialog.Color;\n```\n\n## WPF ColorPicker:\n![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-1.png \"Пример диалогого окна\")\n![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-2.png \"Пример диалогого окна\")\n![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-3.png \"Пример диалогого окна\")\n![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-4.png \"Пример диалогого окна\")\n![example](https://github.com/egorozh/Egorozh.ColorPicker.WPF/blob//v2.0/images/example-wpf-mahapps-1.png \"MahApps\")\n\n### WPF Getting Started\n\nInstall the library as a NuGet package:\n\n```powershell\nInstall-Package Egorozh.ColorPicker.WPF.Dialog\n# Or 'dotnet add package Egorozh.ColorPicker.WPF.Dialog'\n```\nDone! Use ColorPickerButton \n```xml\n\u003cdialog:ColorPickerButton Color=\"#99029344\"\n                          Cursor=\"Hand\"/\u003e\n```\nor ColorPickerDialog:\n```c#\nvar dialog = new ColorPickerDialog\n{\n  Owner = Owner,\n  Color = Color\n};\n\nvar res = dialog.ShowDialog();\n\nif (res == true)\n  Color = dialog.Color;\n```\n### To run MahApps Version:\nInstall the library as a NuGet package:\n\n```powershell\nInstall-Package Egorozh.ColorPicker.WPF.Dialog.MahApps\n# Or 'dotnet add Egorozh.ColorPicker.WPF.Dialog.MahApps'\n```\nThen, reference the preffered theme from your `App.xaml` file:\n\n```xml\n\u003cApplication x:Class=\"Egorozh.ColorPicker.Client.App\"\n             xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n            \n             StartupUri=\"MainWindow.xaml\"\u003e\n\n    \u003cApplication.Resources\u003e\n        \u003cResourceDictionary\u003e\n            \u003cResourceDictionary.MergedDictionaries\u003e\n                \u003cResourceDictionary Source=\"pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml\" /\u003e\n                \u003cResourceDictionary Source=\"pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml\" /\u003e\n                \u003cResourceDictionary Source=\"pack://application:,,,/MahApps.Metro;component/Styles/Themes/Dark.Crimson.xaml\" /\u003e\n\n\n                \u003cResourceDictionary Source=\"pack://application:,,,/Egorozh.ColorPicker.WPF.Dialog.MahApps;component/Themes/Generic.xaml\" /\u003e\n            \u003c/ResourceDictionary.MergedDictionaries\u003e\n        \u003c/ResourceDictionary\u003e\n    \u003c/Application.Resources\u003e\n\u003c/Application\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegorozh%2FEgorozh.ColorPicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegorozh%2FEgorozh.ColorPicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegorozh%2FEgorozh.ColorPicker/lists"}