Puoi scegliere tra una gamma di colori o selezionare colori dalla tua tavolozza per abbinarli al tuo tema. Puoi anche impostare l’opacità dello sfondo della bolla in relazione al colore e allo sfondo.
I’m curious about something because I’ve never messed with plugins before…
Is it possible to allow a hex code with opacity, instead of just allowing system colors? No problem if that’s a bunch of extra work. Just curious.
What if I wanted to change the styling? of the shadow or other CSS. I’m not super savvy with Github and how all of that works, but I looked in your .git repository before copying it into my theme components. I do know how to write CSS. Can I make a copy of your plugin and then tweak the CSS file that you have and then upload this a new theme component with the styling that I want?
If you could point me to any instruction on how to modify a plugin that would be awesome. Or, I suppose I could just do a CSS override, on the front end. Is one option better than the other in terms of performance?
Again… Thank you so much for this… it’s just the solution I was looking for to differentiate DM’s from regular topics!
Simplly edit the CSS sheet and click save. These are your own customisations. If you want to share them and incorporate them into the component for everyone to benefit you can simply post up the CSS to this topic in discourse meta - or as a longer term objective learn how to do pull requests in Github and/or fork the repository if you are making making more substantial changes.
This is such a simple solution to make DM’s significantly distinguished from the standard topics on our forum.
I just asked a member what they thought of it and they were soooo happy to have it. They complimented the idea and the execution, so I’m just passing that along to you!!
I have updated this theme component so you can now enter your own colors using either
html color names ( black, white, maroon, red, purple, green, lime, olive, yellow, navy, blue, teal, aqua)
html color codes (#000000 black, #FFFFFF white etc. or short codes e.g. #CCC)
theme color names (primary, secondary, tertiary)
You can also enter your own message text colors in the same way to contrast with the bubble color.
The opacity setting allows you to blend the bubble color with the background, so that the color will change with your theme color settings - e.g. for Light and Dark themes.
This update is backwards compatible. To access this feature use the Check for Updates button on your theme settings.
Ho disabilitato i bordi con CSS personalizzato e ho apportato solo una leggera variazione di colore, che risulta gradevole. Sarebbe ottimo se ci fosse un’opzione per modificare i bordi o semplicemente un interruttore on/off.
A proposito, come puoi vedere, ho installato il componente due volte e impostato colori scuri per il nostro tema scuro e colori chiari per il nostro tema chiaro. Penso che non ci sia altro modo se vogliamo utilizzare colori CSS personalizzati.
Inoltre, un piccolo suggerimento: permetti di aggiungere qualcosa alla fine del pulsante di risposta, ma in alcune lingue (come il turco) è preferibile aggiungerlo all’inizio, poiché il verbo si trova alla fine delle frasi.
Sì, è un buon workaround. La modifica prevista in Discourse per rimuovere la possibilità di modificare localmente i temi e i componenti di Discourse avrà un impatto sulla tua implementazione? È stato chiaramente utile in questo caso.
Mi riferivo a questo annuncio nella versione Beta. Puoi ancora modificare il CSS, ma dovresti creare un nuovo componente del tema, non più collegato al repository git, e copiare tutto il codice. È quello che hai fatto tu, oppure hai optato per la soluzione più semplice, ovvero modificare direttamente il CSS nel componente?
Questo mi sembra problematico. Preferirei mantenere la possibilità di modificare i temi in loco. Certamente aiuta nello sviluppo di temi e componenti.
Ho un componente locale, chiamato “common sub-theme”, in cui apporto modifiche per altri componenti. In questo sottotema prendo di mira le classi, gli elementi, ecc. di altri componenti. Finché l’autore del componente non cambia i nomi delle sue classi, ID, ecc., per me va bene e funziona. Attualmente, dato che hai anche incluso la rimozione del bordo, non ho bisogno di alcuna modifica nel mio sottotema per il componente Personal Message Bubbles, a proposito.
Ciao e grazie per questo delizioso componente del tema.
Un potenziale bug: Sembra che l’opzione per il testo “aggiunto” includa uno spazio prima della stringa in fondo all’argomento del messaggio, ma non lo includa nella finestra dell’editor. Vedi sotto:
@Rhidian, puoi anche aggiungere l’opzione per anteporre del testo al pulsante Rispondi? In alcune lingue (come il turco) avrebbe senso aggiungere del testo all’inizio di un verbo.