I'd add something here, which has not been explained.
In the initial code, posted by Godsgrave, the [MeasureHDInverse] measure returns the amount of used space, not as a percentage (this is important), but in bytes. So you can't compare this with 75, 90 or whatever percent, makes no sense.
Why in this case the [MeterPercent] meter shows a percentage, not the value returned by the measure? Due to the
Percentual=1 option, added to this meter, which makes the meter to show the value as a percent, 100% representing the entire disk space. If you remove temporary this option, can see what am I talking about.
ikarus1969 wrote: ↑January 18th, 2021, 6:16 pm
Nevertheless, i corrected my code and integrazed it it in yours.
A little improvement I'd add to ikarus1969's solution is the following: would replace his Formula with this:
Formula=100 * (MeasureHDInverse / ( MeasureHDTotal + 0.0001 )). As you can see I added an extremely small value to the denominator and did this because this doesn't change the percentage, but if the disk used into the skin doesn't exist (for instance a not connected removable drive), with ikarus1969's original formula you get an error in the log when refreshing the skin, a Division by 0 message. This is completely normal, because both the denominator and the numerator are zero. The numerator doesn't cause a problem, but as you probably know, the denominator can't be zero (you can't divide by zero). By adding that small value to the denominator, this error message is avoided.
ikarus1969 wrote: ↑January 18th, 2021, 6:16 pm
So i thought you want white as the color when the percentage is below 75%.
But exactly this was asked:
Godsgrave wrote: ↑January 17th, 2021, 9:25 pm
Lets say on <=74 its white, >=75 its orange and on anything above 90 its red.