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?
Je teste cela en utilisant Ubuntu avec le dernier navigateur Chrome, et je reçois l’erreur suivante sur mon site de développement local :
component-templates.js:54 [discourse/theme-10/discourse/templates/components/conditional-loading-spinner] conditional-loading-spinner a été créé avec gjs et son modèle ne peut pas être remplacé. Ignorer le remplacement.
Sur mon site de production, également testé avec le dernier navigateur Chrome sur Ubuntu, je n’ai pas d’erreurs, mais je ne vois pas non plus de spinner de chargement.
Je pense que des changements ont été apportés à la manière dont les modèles sont remplacés dans les thèmes depuis la sortie de ce composant de thème : (not recommended) Overriding Discourse templates from a Theme or Plugin. Je pense que la façon dont Discourse implémente le spinner de chargement a également changé depuis.