Repository navigation
[Issue-204] feat(image-tools): add drop target named output and merge backgrounds - #205
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked Issue
Closes #204: The image tools panel cannot accept dropped files, cannot name its output, lacks horizontal and grid merges, and offers no merge background colour with independent transparency.
Change summary
Staged breakdown of all diffs against main by commit:
8a6e8e4: Addsmerge_horizontalandmerge_gridplus an optional options object toCore/ImageTools.ahk.ExecuteacceptsName,BackgroundandGridColumns, builds rows throughGridGroupsandGridRowSizes, sanitizes typed names throughSanitizeOutputName, normalizes#RRGGBBand#RRGGBBAAthroughNormalizeBackground, and drops alpha for JPEG output. Named batch runs gain_1,_2suffixes; name collisions keep the existing unique-name suffix.6eea02f: ExtendsUI/ImageToolsGui.ahkwithWS_EX_ACCEPTFILESand aDropFileshandler, output name and grid column fields, a background swatch, a nativeChooseColorWpicker and an alpha slider. Merge controls are enabled only for merge operations, and_ComposeBackgroundconverts the slider percentage to the exact alpha byte.8f6f149: AddsCheckImageToolsExtendedtoscripts/HotkeyRegression.ahk, covering the new operation names, name sanitizing, background validation, grid row sizing, background placement before the append operators, JPEG flattening, and the drop, name, picker and alpha wiring in the panel.989e719: Adds the 13 language columns for the new labels inlang.csvand rewrites the README ImageMagick row and section to describe dropped files, the optional output name, the three merge modes and the background colour with opacity.d4d82cf: Merge commit that bringsmain(the Window Hole mouse passthrough fix from [Issue-202] fix(hotkeys): restore mouse click-through during window hole #203) into the branch; the only conflict was inscripts/HotkeyRegression.ahk, where both suites were appended at the same spot, so both checks are kept and both are invoked.Executewithout an options object keeps the previous signature and behaviour, so compress, vertical merge and convert outputs are unchanged. Existing operation names, default output naming, output folder autofill, configuration keys and default values are untouched. The panel keeps its original control order, and the merge background and opacity survive a close while the operation, output name and grid count reset.Verification & Dependencies
Command-line checks:scripts/ci/Check-DllPaths.ps1(PASS, 82 files scanned, every DLL name uses a single backslash).Invoke-Ahk.ps1 .\CapsLock-.ahk -Validate(PASS, exit code 0).Invoke-Ahk.ps1 .\scripts\HotkeyRegression.ahk(PASS, 271 run, 0 failed).Invoke-Ahk.ps1 .\scripts\HistoryGuiPaging.ahk(PASS).git diff --check(PASS, no whitespace errors).lang.csv(PASS, new keys carry all 13 columns and the removed colour title key has no remaining reference).Runtime & Visual assertions: The panel probe confirmed the output name, grid columns, background swatch, colour button, alpha slider, alpha label and operation controls exist with the expected enabled states. Slider values produce#00FFFF80at 50 percent,#00FFFF00at 0 and#00FFFFFFat 100. The native color dialog accepted RGB 255/128/0 and returned #FF8000; the swatch updated to #FF8000 and the panel remained open. Geometry at 100 percent scaling: grid edit 84x24 at 16,431, swatch 96x26 at 116,431, slider 180x33 at 368,431, alpha label 44x16 at 556,439, output name 590x24 at 16,492, client 778x904. ImageMagick runs produced horizontal 300x60, vertical 100x120 and grid 200x180 output with translucent padding, full transparency at alpha 0, three-channel JPEG output, named single and batch files, a_2collision suffix, a timestamped fallback name and rejection of a zero column count.Unverified external facts: A physical drag gesture from Explorer onto the window was not replayed (theDropFileswiring and the shared add path were verified separately).lang.csvremains the single localization source with 13 fixed language columns.Review conclusion
Evaluation across the four engineering dimensions:
Overall Verdict: PASS
Permission Notice
AI has completed staged development and review loops. Merging is an exclusive user privilege. Awaiting manual merge.