It is currently March 28th, 2024, 8:57 pm

background image scaling

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

Post by balala »

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.
Ok, I'll take a look tomorrow. As you know here is...
User avatar
pul53dr1v3r
Posts: 442
Joined: July 30th, 2014, 10:30 am

Re: background image scaling

Post by pul53dr1v3r »

balala wrote: April 9th, 2019, 8:27 pm Ok, I'll take a look tomorrow. As you know here is...
Np. I'm also about to lie down. See you next time. Noapte buna.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

Post by balala »

Pul53dr1v3r wrote: April 9th, 2019, 8:32 pm Np. I'm also about to lie down. See you next time. Noapte buna.
:welcome:
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

Post by balala »

Here is the (extremely late) solution. Please replace the [MeterBackground] meter with the following one:

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#
Is it ok now?
Sorry being soooooo late with this solution.
User avatar
pul53dr1v3r
Posts: 442
Joined: July 30th, 2014, 10:30 am

Re: background image scaling

Post by pul53dr1v3r »

balala wrote: April 11th, 2019, 7:09 pm Here is the (extremely late) solution. Please replace the [MeterBackground] meter with the following one:

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#
Is it ok now?
Sorry being soooooo late with this solution.
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.
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... :o

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.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

Post by balala »

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... :o
Never do this. Doesn't worth. Setting dynamically the size of the shape seems a much better solution.
So, does it work now as expected?
User avatar
pul53dr1v3r
Posts: 442
Joined: July 30th, 2014, 10:30 am

Re: background image scaling

Post by pul53dr1v3r »

balala wrote: April 11th, 2019, 8:01 pm
Never do this. Doesn't worth. Setting dynamically the size of the shape seems a much better solution.
So, does it work now as expected?
Okay. I just edited my previous reply with the final code for that part. Works like a swiss watch.
Image
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.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

Post by balala »

Pul53dr1v3r wrote: April 11th, 2019, 8:14 pm Works like a swiss watch.
Good. Congratulations. :thumbup:
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.
Please let us (me) know if you need further help.
User avatar
pul53dr1v3r
Posts: 442
Joined: July 30th, 2014, 10:30 am

Re: background image scaling

Post by pul53dr1v3r »

balala wrote: April 11th, 2019, 8:17 pm

Ofc. Thx for all the help. I'll see what can i do by myself with that one... See you.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

Post by balala »

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.
Alright. :great: