PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Color picker wpf

Open mantaionut opened this issue 10 months ago • 15 comments

Summary of the Pull Request

Use .net WPF instead of WPFUI.

PR Checklist

  • [ ] Closes: #xxx
  • [x] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • [ ] Tests: Added/updated and all pass
  • [ ] Localization: All end user facing strings can be localized
  • [ ] Dev docs: Added/updated
  • [ ] New binaries: Added on the required places
  • [ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Comparison Windows 11. Left side new one, right side old one. Light

light light_menu

Dark

dark dark

Aquatic

aquatic aquatic

Desert

desert desert

Dusk

dusk dusk

Night Sky

night_sky night_sky

Validation Steps Performed

Test on W11 and W10, dark and light and all HC themes.

mantaionut avatar Jan 29 '25 17:01 mantaionut

First image on the left shows a button with black text on a green background. This is not good accessibility. Let's see how to fix that. (my general advice: stick with the basics)

Jay-o-Way avatar Jan 31 '25 16:01 Jay-o-Way

The code looks good, but I do have one small concern: the original UI didn’t seem to have any problems, so why switch to .NET WPF?

shuaiyuanxx avatar Feb 06 '25 09:02 shuaiyuanxx

I've updated the select button to use the accent style. Below are the screenshots for W11. Dark dark Light light Aquatic aquatic Desert desert Dusk dusk Night Sky night_sky

mantaionut avatar Feb 07 '25 13:02 mantaionut

/azp run

jaimecbernardo avatar Feb 25 '25 11:02 jaimecbernardo

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Feb 25 '25 11:02 azure-pipelines[bot]

On Windows 10, the title bar doesn't look good. It doesn't seem to follow the Fluent Style like in 0.88. This is how Dark mode is looking to me on W10: image

wondering if this is a wpf issue or an 'us' issue

crutkas avatar Feb 26 '25 05:02 crutkas

@check-spelling-bot Report

:red_circle: Please review

See the :open_file_folder: files view, the :scroll:action log, or :memo: job summary for details.

Unrecognized words (4)

GWLSTYLE TPMLEFTALIGN TPMRETURNCMD WMSYSCOMMAND

These words are not needed and should be removed ahk AMPROPERTY AMPROPSETID Breadcrumb CDEF comdef ddf devenum DEVMON DEVSOURCE DGR DIIRFLAG dshow DVH DVHD DVSD DVSL EData ERole fdw FILEINFOSIG Filtergraph Filterx HCERTSTORE IKs iljxck IYUV KSPROPERTY lcb ldx lld LONGLONG LTRB majortype makecab MEDIASUBTYPE mediatype mfplat mic mjpg Msimg msiquery ORAW outpin overlaywindow PAUDIO PINDIR Pnp ppmt previouscamera PROPBAG propvarutil reencoded REFGUID REGFILTER REGFILTERPINS REGPINTYPES regsvr shmem sizeread stl strsafe strutil subquery SYNCMFT TMPVAR vcdl vdi vid VIDCAP VIDEOINFOHEADER vih webcam wistd WVC

To accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands

... in a clone of the [email protected]:mantaionut/PowerToys.git repository on the color_picker_wpf branch (:information_source: how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/v0.0.24/apply.pl' |
perl - 'https://github.com/microsoft/PowerToys/actions/runs/13633637172/attempts/1'

If the flagged items are :exploding_head: false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it, try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

github-actions[bot] avatar Mar 03 '25 14:03 github-actions[bot]

Does this happen in the updated UX? https://github.com/microsoft/PowerToys/issues/37801 I can repro this in the current .89 build.

crutkas avatar Mar 07 '25 19:03 crutkas

/azp run

crutkas avatar Mar 07 '25 19:03 crutkas

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Mar 07 '25 19:03 azure-pipelines[bot]

@crutkas #37801 still happens in this PR.

mantaionut avatar Mar 11 '25 11:03 mantaionut

/azp run

jaimecbernardo avatar Mar 11 '25 11:03 jaimecbernardo

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Mar 11 '25 11:03 azure-pipelines[bot]

/azp run

jaimecbernardo avatar Mar 11 '25 16:03 jaimecbernardo

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Mar 11 '25 16:03 azure-pipelines[bot]