It is currently July 27th, 2021, 4:03 pm

ModernGadgets 1.7.0

A package of skins with a "theme" or by a single author
User avatar
SilverAzide
Rainmeter Sage
Posts: 1369
Joined: March 23rd, 2015, 5:26 pm

Re: ModernGadgets 1.7.0

Post by SilverAzide »

mborghi wrote: June 11th, 2021, 7:16 pm Hi all, Anyone know how to reduce the bottom margin of the gadgets? So there is less horizontal space between them.
Thanks!
There is actually an invisible margin (or padding) on all sides of each skin. You can see the true size of the skin if you hold down Ctrl+Alt then left-click the skin. If you want less margin on the bottom, you'll also need to change the margin on the top (i.e., changing the bottom is not enough, unless you just want to reduce the space by half). Changing this margin might be a huge amount of work, partly because every skin will be affected, and also if there are any meters that are placed relative to the bottom of the skin. On the other hand, because raiguard used styles like he did, it's still a lot less work than if every skin had a separate background to change.

But in general, to alter the appearance, all you need to do is adjust the background of the skin. This is controlled by a style called [StyleBackground], which you will find in the StyleSheet.inc file. (Changing this will affect every skin.) Some of the background logic also involves a meter that is positioned at the bottom of each skin, [MeterBackgroundHeight].

There is a key variable bgOffset (also found in the StyleSheet.inc file). This controls the offset (or padding) used by the background style.

So to change the margin, first adjust the bgOffset variable to reduce it to the value you prefer. That will change all the margins equally. After that, you can decide whether you want to alter margins further by changing the [StyleBackground] style (which is actually a Shape meter), or tweak the meter [MeterBackgroundHeight] to move it slightly, or both. Probably both.
Gadgets Wiki GitHub More Gadgets...
mborghi
Posts: 4
Joined: May 28th, 2021, 7:51 pm

Re: ModernGadgets 1.7.0

Post by mborghi »

SilverAzide wrote: June 11th, 2021, 9:18 pm There is actually an invisible margin (or padding) on all sides of each skin. You can see the true size of the skin if you hold down Ctrl+Alt then left-click the skin. If you want less margin on the bottom, you'll also need to change the margin on the top (i.e., changing the bottom is not enough, unless you just want to reduce the space by half). Changing this margin might be a huge amount of work, partly because every skin will be affected, and also if there are any meters that are placed relative to the bottom of the skin. On the other hand, because raiguard used styles like he did, it's still a lot less work than if every skin had a separate background to change.

But in general, to alter the appearance, all you need to do is adjust the background of the skin. This is controlled by a style called [StyleBackground], which you will find in the StyleSheet.inc file. (Changing this will affect every skin.) Some of the background logic also involves a meter that is positioned at the bottom of each skin, [MeterBackgroundHeight].

So to change the margin, you'd need to either alter the [StyleBackground] style (which is actually a Shape meter), or tweak the meter [MeterBackgroundHeight] to move it slightly, or both. Probably both.
Thank you very much! I'll give it a try.
User avatar
SilverAzide
Rainmeter Sage
Posts: 1369
Joined: March 23rd, 2015, 5:26 pm

Re: ModernGadgets 1.7.0

Post by SilverAzide »

mborghi wrote: June 11th, 2021, 9:26 pm Thank you very much! I'll give it a try.
Sorry, I revised my post slightly to reference the bgOffset variable, which is key. Take a look....
Gadgets Wiki GitHub More Gadgets...
lukeeexd
Posts: 2
Joined: February 4th, 2020, 1:00 pm

Re: ModernGadgets 1.7.0

Post by lukeeexd »

Is there any reason the CPU temp would be greyed out?

https://i.tws.gg/ErCJoRzLLH.png
User avatar
SilverAzide
Rainmeter Sage
Posts: 1369
Joined: March 23rd, 2015, 5:26 pm

Re: ModernGadgets 1.7.0

Post by SilverAzide »

lukeeexd wrote: June 12th, 2021, 5:56 pm Is there any reason the CPU temp would be greyed out?
My guess is that you don't have CoreTemp, SpeedFan, or HWiNFO running and/or configured, therefore the option isn't applicable.
Gadgets Wiki GitHub More Gadgets...
dhmolson
Posts: 1
Joined: Yesterday, 10:59 pm

Help with CPU Meter

Post by dhmolson »

I am loving this skin! I even went ahead and bought a subscription to HWiNFO64 Pro so that I can use the GPU Meter without going in to HWiNFO settings every 12 hours to enable shared memory support.

I am experiencing one problem with the CPU Meter skin. Even though I have set up HWiNFO64 Pro and SpeedFan (and also have Core Temp running as well) my CPU Temp always shows up in the CPU Meter skin as 0°C. I checked the SpeedFan Configuration page linked in the CPU Meter Settings page, and it says you have to find the index # of core 0 in SpeedFan and enter it into the CPU Meter Settings page, but in my SpeedFan configuration page there aren't any index numbers and there aren't separate labels for specific cores anyways. Mine just has a label for "CPU". My SpeedFan configuration page looks like this:
-- link deleted --
Can anyone help?


EDIT: I ended up disregarding SpeedFan entirely and just figured out how to change my HWiNFO Configuration settings from within the CPU Meter Settings. I set my 'CPU Package Temperature' skin element to use the sensor ID from the 'CPU (Tctl/Tdie)' sensor in HWiNFO. Did I set this up correctly, or should I be using a different sensor to monitor my CPU temps (such as 'CPU Die (average)' or 'CPU CCD1 (Tdie)')? I have an AMD Ryzen 9 5900X CPU.
Last edited by eclectic-tech on July 27th, 2021, 5:33 am, edited 1 time in total.
Reason: Deleted unrelated link