I just upgraded from 1.7.0 to 2.4.1 and noticed that the icons for New-UDCounter is no longer a watermark in the counter, its a tiny icon below the Title and changes the size/formatting of the dashboard.
Is this by design? Is there a way to get back the Watermark look from 1.7.0?
On top is what the same code looks like in 1.7.0 and the bottom is in 2.4.1.
Hi @ChrisQuestionMark yes this is by design. I didnt or don’t get the issue you do with icon showing above counter. The counter looks much better with a smaller font. There is a nice example on the new poshud page in the nightly release. As far as I know no watermark parameter will double check…yep no watermark parameter…here is the latest code example from new poshud page:-
I appreciate the response! I can see what you’re saying about the small icon size, it sits just to the left of the counter, unfortunately with a medium or large counter it doesn’t look as good and puts the icon on another line which messes up the sizing of the cell. I have my dashboard up on a 32" display for my helpdesk team, the smaller counter sizes just won’t work in our use case, they’re too small to see from far away. I’ve just removed the icons for the time being.
Nice looking dashboard man…I feel the pain of change in this situation…maybe you could request the “watermark” parameter to be added to give this effect again on the counter…however as they say there is always more than one way to do this…let me have a think…
thanks, but i think that Icon parameter in ud-counter should be an Icon object and not string (the icon name) , if it’s an object you can set all the style on the icon like size color …
I managed to get it working by modifying the UDTheme like you suggested and using the CSS code from v1.7.0. I was using the stock Azure theme, but using this instead makes it look like it used to:
I’m attempting to implement this using a card since the New-UDCounter is not longer available but I’ve never used CSS in PSU before. What would the code for a simple card look like?
You need to find the erquivalent css of .card-content svg matey above has given the answer… I got a new component to release which I needed to use UDStyle…I am planning on writing a blog on that…from what I see your trying to add the icon to the title of the card, which is expecting a string…add the icon to the content of the card, then the above CSS and it should all work.
Right click on the SVG icon and manually edit the CSS in the browser to
and you should see instant results…then add that CSS to UDStyle
This didnt really work for me, I’ve been trying since yesterday to get 1 super simple card to look like this but this was the best I could come up with. There are just so many elements that point/control the same “thing” in the card that I’m not sure which is the one. I tried putting my icon and everything else on its own element but no dice.
Which now gives the appearance of a watermark effect of the icon…I right clicked the icon inspect element, found the font-size stored under .fa-sm so started added more css elements to this which @AlonGvili had kindly shared and I re-quoted for you, then binded this to UniversalDashboard.Style module, which allowed me to style this particular icon for this particular card. I hope this answers your question
P.S I am releasing the speech bubble as a custom component
One last thing, I just finished this blog on another component I built, which again uses UniversalDashboard.Style to spruce it up a bit, do have a read:-
No worries, I been using the product for a while now, so learnt a lot of new things on the way, hence I done a blog site to try and share some of what I learnt along the way. When I first got the product I wanted to customise the radio button so went to visit this guy I knew who bragged about how good he was at web designing etc…and he didn’t have a scooby-doo…so after hours and hours of trying I emailed @adam directly, who basically did the same thing and gave me the answer pretty much straight away. Since then he has gone on to build this forum where all types of knowledge can be shared, and re-used. So just glad this has helped you out, and hopefully you can chill out a bit now, and design some fancy looking custom cards
These forums and your blogs have been instrumental in helping me learn PSU. Thank you again for sharing your knowledge and I will definitely post my dashboard once is worth showing.
I’m attempting to recreate this for several cards. If the cards all appear on the top row, the watermarks show up as they should. Unfortunately if I add more rows the watermarks shift all the way to the top. I know this issue has to do with position = 'absolute.' I’ve tried doing Columns, Rows, Grid, cards within cards, etc to no avail. It looks like the position is referencing the top of the dashboard instead of the top of the card.