You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently GUI only prompts to choose among recommendations, suggestions, and supporters once per install, for the initial changeset. However, if you choose to install any of them, those mods might also have recommendations, suggestions, or supporters that you'd like to install, so it would be nice to show them as well. For comparison:
CmdLine installs all recommendations-of-recommendations by default and has a --no-recommends option to turn that behavior off and a --with-all-suggests option to enable it for suggestions.
ConsoleUI shows the recommendations screen multiple times until the whole relationship tree is exhausted.
Currently we only set the background color for labels, and the foreground color remains the default of the mod list or menu where the label is being shown. If you choose a color that's too similar to those default foreground colors, the text may not be readable.
Changes
Now after you choose to install recommendations, suggestions, or supporters in GUI, the mods you chose are then checked for further recommendations, suggestions, or supporters, and if there are any, the recommendations list is shown again, just like in ConsoleUI. Note that each mod will only be shown once across all such passes; once you decide you don't want a particular mod, it won't appear again. Fixes[Feature]: Install Recommended Dependencies Recursively #4031.
Now when you add or remove a mod from a label, the mod info header refreshes to reflect the change.
Now the configured label color is shown in the mod info header, hidden label list, and the edit labels dialog. The foreground will be set according to the above brightness-based logic.
Now if you right-click a label link, a context menu appears with an option to toggle whether the currently selected mod is included in that label.
Now if you right-click a tag link, a context menu appears with an option to toggle whether mods with that tag are hidden in the mod list.
Known limitations
That "Label with a space" label's background color is #8000FF, sometimes called "Electric Indigo". Its brightness happens to be 0.5 or slightly greater, so it is shown with black text, but it looks dark enough to my eye that white text would be better. I investigated this for a while and was not able to determine a way to programmatically distinguish such colors. (Increasing the threshold above 0.5 isn't feasible because there are several other 0.5-brightness colors that definitely should have black text.) I'm leaving it with black text for now because medium-brightness colors are still readable either way, just not optimally so.
I investigated this for a while and was not able to determine a way to programmatically distinguish such colors.
Did you try the WCAG Relative Luminance scale by any chance?
I recently ran into a similiar problem to this at work and this turned out to be a good solution for my particular problem.
I had ChatGPT write up a simple javascript/html page that displays a colour picker and some sample text in a coloured block. and it does infact class #8000FF as a colour that benefits from white text. Infact it does so all the way up to around #9E3DFF which according to the HSL scale has a lightness of 62% compared to the 50% for electric indigo.
... but unfortunately it's in Microsoft.VisualStudio.PlatformUI instead of in the regular .NET runtime or something on Nuget we could redistribute. I don't love the idea of embedding more specialized algorithms and magic numbers into CKAN, but I suppose it's an option...
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
EnhancementNew features or functionalityGUIIssues affecting the interactive GUIRelationshipsIssues affecting depends, recommends, etc.
2 participants
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.
Motivation
--no-recommendsoption to turn that behavior off and a--with-all-suggestsoption to enable it for suggestions.Changes
Fixes [Feature]: Install Recommended Dependencies Recursively #4031.
Fixes [Feature]: Change label text color #4379.
Known limitations
That "Label with a space" label's background color is
#8000FF, sometimes called "Electric Indigo". Its brightness happens to be 0.5 or slightly greater, so it is shown with black text, but it looks dark enough to my eye that white text would be better. I investigated this for a while and was not able to determine a way to programmatically distinguish such colors. (Increasing the threshold above 0.5 isn't feasible because there are several other 0.5-brightness colors that definitely should have black text.) I'm leaving it with black text for now because medium-brightness colors are still readable either way, just not optimally so.