Ok, I'll take a look tomorrow. As you know here is...Pul53dr1v3r wrote: ↑April 9th, 2019, 8:23 pm 50/50. I succeed in getting the shape, but not in getting the bg scales according to the content at the bottom side when the graphs are on at any scales.
I'm also not quite sure is it the best way to get such a shape but everithyng else is working properly.
It is currently March 29th, 2024, 9:35 am
background image scaling
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: background image scaling
-
- Posts: 442
- Joined: July 30th, 2014, 10:30 am
Re: background image scaling
Np. I'm also about to lie down. See you next time. Noapte buna.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: background image scaling
Pul53dr1v3r wrote: ↑April 9th, 2019, 8:32 pm Np. I'm also about to lie down. See you next time. Noapte buna.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: background image scaling
Here is the (extremely late) solution. Please replace the [MeterBackground] meter with the following one:
Is it ok now?
Sorry being soooooo late with this solution.
Code: Select all
[MeterBackground]
Meter=Shape
X=2
Y=2
Shape=Rectangle 3,5,199,(91+35*#SkinState#),5 | Fill LinearGradient ShapeGradient | StrokeWidth 0.5 | Stroke Color 160,160,160,200
ShapeGradient=90 | 0,0,0,150 ; 0.69 | 0,0,0,180 ; 0.69
TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
Sorry being soooooo late with this solution.
-
- Posts: 442
- Joined: July 30th, 2014, 10:30 am
Re: background image scaling
Never mind. Yyes, it's ok but i have just changes some numbers because the bottom corners were sharp. So easy. I had my way solving this issue using 2 separate shape meters, 1st fot the state 0, the second for the state 1. So when one is shown the other is hidden. It works well, but a bit more complicated solution.balala wrote: ↑April 11th, 2019, 7:09 pm Here is the (extremely late) solution. Please replace the [MeterBackground] meter with the following one:Is it ok now?Code: Select all
[MeterBackground] Meter=Shape X=2 Y=2 Shape=Rectangle 3,5,199,(91+35*#SkinState#),5 | Fill LinearGradient ShapeGradient | StrokeWidth 0.5 | Stroke Color 160,160,160,200 ShapeGradient=90 | 0,0,0,150 ; 0.69 | 0,0,0,180 ; 0.69 TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
Sorry being soooooo late with this solution.
I also have full version of the skin where all the CPU cores are displayed and count automatically (thanks to you). It's very complicated. My method is not good idea there because i should make a lot of separate shapes for any core number from 1 -36...
Edit: this is the final version of the bg code as far as that skin is concerned(removed gradient for it is a bad solution for this case while the Combine is far better):
Code: Select all
[MeterBackground]
Meter=Shape
Shape=Rectangle 6,7,196,(86+35*#SkinState#),5 | Fill Color 0,0,0,150 | StrokeWidth 0.5 | Stroke Color 160,160,160,200
Shape2=Rectangle 6,7,196,25,5 | StrokeWidth 0 | Fill Color 0,0,0,60
Shape3=Rectangle 6,22,196,10
Shape4=Combine Shape2 | Union Shape3
TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
Last edited by pul53dr1v3r on April 11th, 2019, 8:04 pm, edited 2 times in total.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: background image scaling
Never do this. Doesn't worth. Setting dynamically the size of the shape seems a much better solution.Pul53dr1v3r wrote: ↑April 11th, 2019, 7:38 pm I had my way solving this issue using 2 seprata shape meters, 1st fot the state 0, the second for the state 1. So when one is shown the other is hidden. It work well, but a bit more complicated solution.
I also have a full version of the skin where all the CPU core are displayed and count automatically (thanks to you). It's very complicated. My method is not good idea there because i should make a lot of separate shapes for any core number from 1 -36...
So, does it work now as expected?
-
- Posts: 442
- Joined: July 30th, 2014, 10:30 am
Re: background image scaling
Okay. I just edited my previous reply with the final code for that part. Works like a swiss watch.
I'll see tomorrow what can i do with the second variant of the skin that is pretty harder in my view. My solution has been called off by any means.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: background image scaling
Good. Congratulations.
Please let us (me) know if you need further help.Pul53dr1v3r wrote: ↑April 11th, 2019, 8:14 pm I'll see tomorrow what can i do with the second variant of the skin that is pretty harder in my view. My solution has been called off by any means.
-
- Posts: 442
- Joined: July 30th, 2014, 10:30 am
Re: background image scaling
Ofc. Thx for all the help. I'll see what can i do by myself with that one... See you.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: background image scaling
Alright.Pul53dr1v3r wrote: ↑April 11th, 2019, 8:28 pm Ofc. Thx for all the help. I'll see what can i do by myself with that one... See you.