Componente decorazione di Natale 🎄

Adding a bit of festive flair to your forum – I present a Christmas decoration component! :christmas_tree:

This component includes three flairs:

  1. Christmas Lights
  2. Christmas Hats
  3. Christmas Decoration Image

Each flair can be individually enabled/disabled via theme settings. For Christmas Decoration Image there is also a setting to invert color for forum with Dark theme.

The Christmas lights were inspired from @Canapin’s ideas here.

Merry Christmas! :santa:

47 Mi Piace

Very nice! One small thing - it doesn’t seem like the ‘enable decoration image’ is making any difference. I think it might need an if statement in the SCSS?

9 Mi Piace

Thanks for bringing this in my notice! I’ve pushed a fix now. :slight_smile:

7 Mi Piace

This is great, thanks. Much easier as a theme component than a theme.

The hats worked immediately but I had to fiddle around to get the lights to work - e.g. ticked the enable/disable boxes (though not sure that is what made it work) and restarted the iOS Hub app - but I guess that’s realistic for lights :slight_smile:

3 Mi Piace

Glad you liked it! :slight_smile:

That is weird. I just checked installing the component (again) on theme-creator and it worked on first try. Let me know if the issue persists.

2 Mi Piace

It’s all working now. Maybe it was something to do with caching - the avatars being updated sooner than the menu bar. “Caching” is a good catch-all excuse as I don’t understand it.

2 Mi Piace

Hmm, perhaps mods could enable this component here on meta to make sure it is working…

1 Mi Piace

Nel mio discorso, cappello e luce funzionano bene, tuttavia l’immagine decorativa non viene visualizzata. Non ho idea del perché ciò accada.

1 Mi Piace

Se può essere d’aiuto, la decorazione appare solo sul desktop, in alto a sinistra e in alto a destra.

1 Mi Piace

Sì, lo so, ma non c’è niente quando visualizzo sul desktop.

1 Mi Piace

L’immagine decorativa viene visualizzata quando la larghezza minima dello schermo è di 1450px. Stai visualizzando il sito su un monitor piccolo o un laptop?

1 Mi Piace

oh. Lo provo sul mio monitor 2k, cosÏ funziona. Ora sto usando il mio Lenovo Yoga Duet (una specie di Microsoft Surface) e cosÏ scompare. Tuttavia è possibile visualizzarlo su un monitor piccolo o un laptop?

1 Mi Piace

Sarebbe un peccato che gli utenti di laptop non potessero vedere la campana… Mi piace. Quella sta per Natale.

1 Mi Piace

Puoi fare il fork del tema e modificare le impostazioni della larghezza dello schermo.

1 Mi Piace

Fantastico! Ci proverò! Grazie per il tuo aiuto!

1 Mi Piace

Se qualcuno ha altri componenti che appaiono prima delle decorazioni, puoi provare ad aggiungere questo CSS per forzare le luci ad essere le prime:

#main-container > * {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#main-container .lightrope {
  order: -1;
}

(questo potrebbe rompere altre integrazioni, quindi testa a fondo)

4 Mi Piace

Posso cambiare i colori delle luci?

2 Mi Piace

Cappello non visibile nei post.

2 Mi Piace

@meghna Fantastico!

“Immagine Decorazione Natalizia” non ha funzionato per me.

C’è un modo per cambiare i colori delle luci? Sto provando con il CSS, ma senza successo.

1 Mi Piace

Sembra che aggiungerà un secondo cappello all’emoji (nel menu utente in alto a destra) quando l’utente imposta uno stato utente

2 Mi Piace