Hello Massimo,
Whit font-awesome 3.2.1 it was drop in replace, sadly they change their way
how to hook icons...
I think we should suggest to pass them more than include them in the core
code there is these settings for instance which is good :
# jQuery UI ThemeRoller classes (empty if ui is disabled)
if ui == 'jquery-ui':
ui = dict(widget='ui-widget',
header='ui-widget-header',
content='ui-widget-content',
default='ui-state-default',
cornerall='ui-corner-all',
cornertop='ui-corner-top',
cornerbottom='ui-corner-bottom',
button='ui-button-text-icon-primary',
buttontext='ui-button-text',
buttonadd='ui-icon ui-icon-plusthick',
buttonback='ui-icon ui-icon-arrowreturnthick-1-w',
buttonexport='ui-icon ui-icon-transferthick-e-w',
buttondelete='ui-icon ui-icon-trash',
buttonedit='ui-icon ui-icon-pencil',
buttontable='ui-icon ui-icon-triangle-1-e',
buttonview='ui-icon ui-icon-zoomin',
)
elif ui == 'web2py':
ui = dict(widget='',
header='',
content='',
default='',
cornerall='',
cornertop='',
cornerbottom='',
button='button btn btn-default',
buttontext='buttontext button',
buttonadd='icon plus icon-plus glyphicon
glyphicon-plus',
buttonback='icon leftarrow icon-arrow-left glyphicon
glyphicon-arrow-left',
buttonexport='icon downarrow icon-download glyphicon
glyphicon-download',
buttondelete='icon trash icon-trash glyphicon
glyphicon-trash',
buttonedit='icon pen icon-pencil glyphicon
glyphicon-pencil',
buttontable='icon rightarrow icon-arrow-right
glyphicon glyphicon-arrow-right',
buttonview='icon magnifier icon-zoom-in glyphicon
glyphicon-zoom-in'
)
But I am not sure if it propagate to all the widget properly of if there is
a way to customize all different widgets...
We already have glyphicon glyphicon-something... It would make sens to
stick with fa fa-something...
Richard
On Sun, Dec 3, 2017 at 12:41 PM, Massimo Di Pierro <
[email protected]> wrote:
> In the old days of BS2 we used "icon icon-{name}" for icons. then to
> support BS3 we also added "glyphicon glyphicon-{name}". now we use BS4 and
> there are no more icons we have to use Font Awesome so we should add "fa
> fa-{name}". I can easily add this to sqlhtml.py and we will all be fine but
> we will have a proliferation of classes. Another option is to use define
> .icon and .icon-{name} for those classes that we use in the grid in terms
> of font awesome icons and add them to web2py-bootstrap4.css.
>
> Preferences?
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.