Skip to content

Add colour pickers to application#41

Open
JohnnyJF10 wants to merge 7 commits intodevelopfrom
JohnnyJF10/add-color-pickers
Open

Add colour pickers to application#41
JohnnyJF10 wants to merge 7 commits intodevelopfrom
JohnnyJF10/add-color-pickers

Conversation

@JohnnyJF10
Copy link
Copy Markdown
Owner

Add colour pickers to application and use them in the format tabs and in the brick transition helper.

@JohnnyJF10
Copy link
Copy Markdown
Owner Author

@copilot For AValonia UI, I added Avalonia.Controls.ColorPicker 12.0.1(https://www.nuget.org/packages/Avalonia.Controls.ColorPicker) . For WPF, I copied the required source code files from https://github.com/PropertyTools/PropertyTools/tree/develop/Source/PropertyTools.Wpf/Controls/ColorPicker into the assembly, find the ColorPicker folder here. Include a new button to all format tabs which opens a new dialog window in which the color pickers are shown. User can pick colours there which will then set ColorSource or ColorTarget on the FormatTabViewModel . The new dialog shall contain a Cancel and an OK button. If modifications are required in the WPF version color picker (as it is just copied source code), please correct.

Copy link
Copy Markdown
Contributor

Copilot AI commented May 3, 2026

@copilot For AValonia UI, I added Avalonia.Controls.ColorPicker 12.0.1(https://www.nuget.org/packages/Avalonia.Controls.ColorPicker) . For WPF, I copied the required source code file...

Implemented in commit c89a8fe (cleanup in 9f75e95). Here's what was added:

Color Picker Dialog:

  • Avalonia: ColorPickerWindow.axaml – two ColorView pickers (Source + Target) with OK/Cancel buttons, using the Avalonia.Controls.ColorPicker package
  • WPF: ColorPickerWindow.xaml – two PropertyTools.Wpf.ColorPickerPanel controls (Source + Target) with OK/Cancel buttons. Created Themes/Generic.xaml to register the panel's default styles via the WPF theme system

Format Tabs (both Avalonia & WPF MainWindow):
A palette icon button was added next to the eyedropper in both the Source and Destination format tabs. Clicking it opens the dialog; on OK, ColorSource and ColorTarget are updated on the respective FormatTabViewModel.

Brick Transition Helper (both Avalonia & WPF BrickTransitionWindow):
A palette icon button was added to the Options tab. ColorSource and ColorTarget properties were added to TransitionViewModelBase so the dialog can read/write them on BrickTransitionViewModel.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • av-build-tel-api-v1.avaloniaui.net
    • Triggering command: /usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants