Skip to content

Fix: correctly save fore/background color and transparency of labels in JSON map files#5929

Merged
vadi2 merged 1 commit intoMudlet:developmentfrom
SlySven:Fix_correctACopyPasteErrorInSavingMapLabelsInJSONMapFiles
Jan 31, 2022
Merged

Fix: correctly save fore/background color and transparency of labels in JSON map files#5929
vadi2 merged 1 commit intoMudlet:developmentfrom
SlySven:Fix_correctACopyPasteErrorInSavingMapLabelsInJSONMapFiles

Conversation

@SlySven
Copy link
Copy Markdown
Member

@SlySven SlySven commented Jan 25, 2022

This error was introduced in the original "load/save Maps as JSON" PR, #4546 ...!

Also include a check for transparency - as a recent PR #5873 (Edited: not 5783!) added the option for that to both the fore and background colours of map labels.

Signed-off-by: Stephen Lyons slysven@virginmedia.com

Release post highlight

Fix - prevent a corner case not saving the fore/background colour details for map labels correctly in JSON map files.

This error was introduced in the original "load/save Maps as JSON" PR,
Mudlet#4546 ...!

Also include a check for transparency - as a recent PR Mudlet#5783 added the
option for that to both the fore and background colours of map labels.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven requested a review from a team as a code owner January 25, 2022 18:49
@SlySven SlySven requested a review from a team January 25, 2022 18:49
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jan 25, 2022

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@mudlet-machine-account mudlet-machine-account added this to the 4.16.0 milestone Jan 25, 2022
@github-actions
Copy link
Copy Markdown
Contributor

Messages
✔️

PR type: Fix

Generated by 🚫 dangerJS against d24a1c9

@SlySven
Copy link
Copy Markdown
Member Author

SlySven commented Jan 25, 2022

@vadi2 it isn't obvious whether it has been an issue - as the original PR is about 10 months old and I don't think anyone has moaned about it. The recent addition of transparency to the label colours means that a change was required anyhow...

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@vadi2 vadi2 modified the milestones: 4.16.0, 4.15.0 Jan 25, 2022
@Kebap Kebap changed the title Fix: correct a copy paste error in saving map labels in JSON map files Fix: correctly save fore/background color and transparency in JSON map files Jan 25, 2022
@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Jan 26, 2022

Thanks, good find. I won't be able to test this, can anyone else pick it up?

@vadi2 vadi2 changed the title Fix: correctly save fore/background color and transparency in JSON map files Fix: correctly save fore/background color and transparency of labels in JSON map files Jan 31, 2022
Copy link
Copy Markdown
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well 👍

@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Jan 31, 2022

Merging so it makes it into the release.

@vadi2 vadi2 merged commit 1af8005 into Mudlet:development Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants