While working on the Grogu theme I implemented a custom loading icon for that theme and thought it would be cool to have a standalone component to customize the loading spinner icon.
This component allows staff to customize the default spinning icon. There are three customization options available via theme settings:
icon name
icon size
icon color
The component only accepts FontAwesome icon name and I recommend picking one of these icons to get awesome spinning effect.
Enjoy, and do let me know how to further improve this component.
Hello just installed this! An improvement that you could make is to add another colour for dark theme as the colour you choose for light such as #000000 will not be seen on a dark theme.
I love this theme-component, and it works great on the home page. However, in some areas of my discourse instance, it shows the default loading spinner. For example, whenever I’m in the admin panel or user settings. @meghna Any way this can be fixed?
Probando esto en Ubuntu con el navegador Chrome más reciente, estoy recibiendo el siguiente error en mi sitio de desarrollo local:
component-templates.js:54 [discourse/theme-10/discourse/templates/components/conditional-loading-spinner] conditional-loading-spinner fue creado con gjs y su plantilla no puede ser anulada. Ignorando anulación.
En mi sitio de producción, también probando con el navegador Chrome más reciente en Ubuntu, no estoy recibiendo errores, pero tampoco estoy viendo un indicador de carga.
Creo que se han realizado algunos cambios en la forma en que se anulan las plantillas en los temas desde que se lanzó este componente de tema: (not recommended) Overriding Discourse templates from a Theme or Plugin. Creo que la forma en que Discourse implementa el indicador de carga también ha cambiado desde entonces.