New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Fontawesome icons #552
base: master
Are you sure you want to change the base?
Conversation
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
My personal opinion - up for discussion - is that it would be better to have the icon set as user-selectable option and support both (or even additional icons). Rough Idea:
|
$iconName = 'chevron-right'; | ||
break; | ||
case 'preview': | ||
$picname = 'magnifying-glass'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should also be $iconName
, right?
After I filed the PR I also thought that it might be rude to remove the old icons completely, since other designs might depend on it. Also, FA is only included in solid style which is free, regular seems not to have all icons and also the Pro styles could be used by someone. I like the idea of a generic class that holds the icon mapping, which could be designed extensible so people could bring their own icon font to map it to icons based on the mapping the class provides. One thing that is clearly different between original icons and fontawesome and this is the possibility to stack icons (eg for negation or creating custom icon styles (eg all icons are square with rounded corners and have the icon to be cut out, fontawesome.com/v5/docs/web/style/stack) How would we treat new icons that are used in custom designs or modules, just by calling the icon method and if it does not get found in the mapping, it's passed through. So many questions to answer, quite some api contracts to define :-D |
|
Yep that sounds like a good plan. Unfortunately I got quite some things on my todo list already and those icons are not my highest prio for the next time. We can also close this PR and move the information to an issue, so anybody could work on it. |
I picked up an older issue since I am not happy with the colorful icons.
This PR would be a replacement for the old icons to use fontawesome.
How it looks:
Negation was not straight forward so there is a second method, alternatively we could go with a different colorset for negation (paid / not paid, checked in or out / not checked in or our)
Not sure which way to go - support the old and new way, then we would need to add a wrapper to provide two icon names.
My proposal would be full replacement as a startingpoint for discussions.
Resolves #346