Skip to content

Commit

Permalink
Version 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EverMeme1138 committed Aug 29, 2024
1 parent 20a5146 commit 8936e1d
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 34 deletions.
14 changes: 8 additions & 6 deletions @Resources/IncludeVariables.inc
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[Variables]
MainColor=26,36,55,255
SecondaryColor=201,220,255,255
Custom_MainColor=30,30,30,120
Custom_SecondaryColor=255,255,255
MainColor=125,35,35,255
SecondaryColor=191,157,113,255
Custom_MainColor=0,0,0
Custom_SecondaryColor=255,255,255,200
Shadow=1
NOT_Shadow=0
BarHeight=40
Scale=0.8
Background_Blur=1
NOT_Background_Blur=0
BarHeight=30
Scale=0.65
FontSize=12
36 changes: 29 additions & 7 deletions Box/Box.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,41 @@ Buffer_string=default.jpg

[Background]
Meter=Shape
Shape=Rectangle 5,5,(#Image_X#*2 + [Image:W]),(([Image:Y]*2) + [Image:H] - #BarHeight#) | Extend Modifier
Shape2=Line 5,(#BarHeight# + 5),(#Image_X#*2 + [Image:W] + 5),(#BarHeight# + 5) | Extend Modifier
Shape=Rectangle 2,2,(#Image_X#*2 + [Image:W]),(([Image:Y]*2) + [Image:H] - #BarHeight#) | Extend Modifier
Shape2=Line 2,(#BarHeight# + 5),(#Image_X#*2 + [Image:W] + 2),(#BarHeight# + 5) | Extend Modifier
Modifier=StrokeColor #SecondaryColor# | FillColor #MainColor# | StrokeWidth 4
DynamicVariables=1

[Background_Image]
X=5
Y=(5 + #BarHeight#)
X=2
Y=(2 + #BarHeight#)
W=(#Image_X#*2 + [Image:W])
H=([Image:H]*([Background_Image:W]/[Image:W]))
Meter=Image
ImageName=#@#\Images\Background.png
DynamicVariables=1

[Meter_Container_Image]
X=37
Y=([Image:H]*(#Image_X#/[Image:W]) + 2 + #BarHeight#)
Meter=Shape
Shape=Rectangle 0,0,(550*#Scale#),[Image:H],5,5 | FillColor 255,0,0
DynamicVariables=1

[Image]
X=40
X=0
Y=0
W=(550*#Scale#)
Y=([Image:H]*(#Image_X#/[Image:W]) + 5 + #BarHeight#)
Meter=Image
ImageName=#Buffer#
PreserveAspectRatio=1
DynamicVariables=1
Container=Meter_Container_Image

[String_FileName]
X=10
Y=((10 + #BarHeight#)/2)
W=(400*#Scale#)
Meter=String
Text=Picture - #Buffer_string#
StringAlign=LeftCenter
Expand All @@ -58,10 +67,12 @@ FontFace=IBM Plex Mono
FontWeight=400
FontColor=#SecondaryColor#
FontSize=#FontSize#
ClipString=1
DynamicVariables=1

[Exit_button]
X=(#Image_X#*2 + [Image:W] - 45)
Y=((10 + #BarHeight# - #FontSize#*(15/8))/2)
Y=((10 + #BarHeight# - #FontSize#*1.875)/2)
Meter=Shape
Shape=Rectangle 0,0,(30*(#FontSize#/16)),(30*(#FontSize#/16)) | StrokeWidth (2*(#FontSize#/16)) | StrokeColor #SecondaryColor# | FillColor 255,255,255,1
Shape2=Line 0,0,(30*(#FontSize#/16)),(30*(#FontSize#/16)) | StrokeWidth (2*(#FontSize#/16)) | StrokeColor #SecondaryColor#
Expand All @@ -83,3 +94,14 @@ DynamicVariables=1
IfCondition=#Shadow# = 1
IfTrueAction=[!ShowMeter Background_Image]
IfFalseAction=[!HideMeter Background_Image]
IfCondition2=#Background_Blur# = 1
IfTrueAction2=[!CommandMeasure "FrostedGlass" "SetBlur 2"]
IfFalseAction2=[!CommandMeasure "FrostedGlass" "SetBlur 0"]

[FrostedGlass]
Measure = Plugin
Plugin = FrostedGlass
Type = Acrylic
Border = All
Backdrop = Light
VisibleBorder= 0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Inspired by the work of [KazukiGames82](https://github.com/KazukiGames82).\
Special thanks to people on [Rainmeter discord server](https://discord.gg/rainmeter) who helped me with this project.\
Font used: [IBM Plex Mono](https://fonts.google.com/specimen/IBM+Plex+Mono)

version 1.2
Version 1.2
42 changes: 32 additions & 10 deletions Rounded/Rounded.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,45 @@ Buffer_string=default.jpg

[Background]
Meter=Shape
Shape=Rectangle 5,5,(#Image_X#*2 + [Image:W]),(([Image:Y]*2) + [Image:H] - #BarHeight#),10,10 | FillColor #MainColor# | StrokeWidth 0
Shape2=Rectangle 5,(5 + #BarHeight#),(#Image_X#*2 + [Image:W]),(([Image:Y]*2) + [Image:H] - #BarHeight#*2) | FillColor #SecondaryColor# | StrokeWidth 0
Shape=Rectangle 0,0,(#Image_X#*2 + [Image:W]),(5 + #BarHeight#) | FillColor #MainColor# | StrokeWidth 0
Shape2=Rectangle 0,(5 + #BarHeight#),(#Image_X#*2 + [Image:W]),(([Image:Y]*2) + [Image:H] - #BarHeight#*2) | FillColor #SecondaryColor# | StrokeWidth 0
Container=Meter_Container
DynamicVariables=1

[Meter_Container]
Meter=Shape
Shape=Rectangle 5,5,(#Image_X#*2 + [Image:W]),(([Image:Y]*2) + [Image:H] - #BarHeight#),10,10
Shape=Rectangle 0,0,(#Image_X#*2 + [Image:W]),(([Image:Y]*2) + [Image:H] - #BarHeight#),6,6
DynamicVariables=1

[Background_Image]
X=5
Y=(5 + #BarHeight#)
Y=(#BarHeight#)
W=(#Image_X#*2 + [Image:W])
H=([Image:H]*([Background_Image:W]/[Image:W]))
Meter=Image
ImageName=#@#\Images\Background.png
DynamicVariables=1

[Meter_Container_Image]
X=35
Y=([Image:H]*(#Image_X#/[Image:W]) + #BarHeight#)
Meter=Shape
Shape=Rectangle 0,0,(550*#Scale#),[Image:H],5,5 | FillColor 255,0,0
DynamicVariables=1

[Image]
X=40
X=0
Y=0
W=(550*#Scale#)
Y=([Image:H]*(#Image_X#/[Image:W]) + 5 + #BarHeight#)
Meter=Image
ImageName=#Buffer#
PreserveAspectRatio=1
DynamicVariables=1
Container=Meter_Container_Image

[String_FileName]
X=10
Y=((10 + #BarHeight#)/2)
Y=((6 + #BarHeight#)/2)
W=(400*#Scale#)
Meter=String
Text=Picture - #Buffer_string#
StringAlign=LeftCenter
Expand All @@ -63,13 +71,15 @@ FontFace=IBM Plex Mono
FontWeight=400
FontColor=#SecondaryColor#
FontSize=#FontSize#
ClipString=1
DynamicVariables=1

[Exit_button]
X=(#Image_X#*2 + [Image:W] - 40)
Y=0
Meter=Shape
Shape=Ellipse 12,((10 + #BarHeight#)/2),(12*(#FontSize#/16)) | FillColor #SecondaryColor# | StrokeWidth 0
Shape=Ellipse 12,((8 + #BarHeight#)/2),(12*(#FontSize#/16)) | FillColor #SecondaryColor# | StrokeWidth 0
LeftMouseUpAction=[!DeactivateConfig]
DynamicVariables=1

;;==========================================
;;Measures
Expand All @@ -85,3 +95,15 @@ DynamicVariables=1
IfCondition=#Shadow# = 1
IfTrueAction=[!ShowMeter Background_Image]
IfFalseAction=[!HideMeter Background_Image]
IfCondition2=#Background_Blur# = 1
IfTrueAction2=[!CommandMeasure "FrostedGlass" "SetBlur 2"]
IfFalseAction2=[!CommandMeasure "FrostedGlass" "SetBlur 0"]

[FrostedGlass]
Measure = Plugin
Plugin = FrostedGlass
Type = Acrylic
Border = All
Corner = Round
Backdrop = Light
VisibleBorder= 0
50 changes: 40 additions & 10 deletions Setting.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Update_Skins=[!Refresh "Picture_display\Rounded"][!Refresh "Picture_display\Box"
X=5
Y=5
Meter=Shape
Shape=Rectangle 0,0,460,530,10,10 | FillColor #MainColor# | StrokeWidth 4 | StrokeColor #SecondaryColor#
Shape=Rectangle 0,0,460,565,10,10 | FillColor #MainColor# | StrokeWidth 4 | StrokeColor #SecondaryColor#
Shape2=Line 0,50,460,50 | StrokeWidth 4 | StrokeColor #SecondaryColor#

[Exit_button]
Expand Down Expand Up @@ -287,10 +287,40 @@ FontWeight=400
FontColor=#MainColor#
FontSize=16

[String_Barheight]
[String_Background_Blur]
X=80
Y=410
Meter=String
Text=Background Blur ---
AntiAlias=1
FontFace=IBM Plex Mono
FontWeight=400
FontColor=#SecondaryColor#
FontSize=16

[String_Background_Blur_Toggle_Background]
X=340
Y=410
Meter=Shape
Shape=Rectangle 0,0,([String_Shadow_Toggle:W]),([String_Shadow_Toggle:H]) | FillColor #SecondaryColor# | StrokeWidth 0
LeftMouseUpAction=[!WriteKeyValue Variables Background_Blur #NOT_Background_Blur# "#@#\IncludeVariables.inc"][!WriteKeyValue Variables NOT_Background_Blur #Background_Blur# "#@#\IncludeVariables.inc"]#Update_Skins#
DynamicVariables=1

[String_Background_Blur_Toggle]
X=340
Y=410
Meter=String
Text=[TOGGLE]
AntiAlias=1
FontFace=IBM Plex Mono
FontWeight=400
FontColor=#MainColor#
FontSize=16

[String_Barheight]
X=80
Y=445
Meter=String
Text=BarHeight ---------
AntiAlias=1
FontFace=IBM Plex Mono
Expand All @@ -300,15 +330,15 @@ FontSize=16

[String_Barheight_Background]
X=340
Y=410
Y=445
Meter=Shape
Shape=Rectangle 0,0,([String_Barheight_Input:W]),([String_Barheight_Input:H]) | FillColor #SecondaryColor# | StrokeWidth 0
LeftMouseUpAction=[!SetOption MeasureInputNumbers Y 410][!CommandMeasure "MeasureInputNumbers" "ExecuteBatch 1"]
DynamicVariables=1

[String_Barheight_Input]
X=340
Y=410
Y=445
Meter=String
Text=#BarHeight#
AntiAlias=1
Expand All @@ -320,7 +350,7 @@ InlineSetting=Underline

[String_FontSize]
X=80
Y=445
Y=480
Meter=String
Text=Font/Button Size --
AntiAlias=1
Expand All @@ -331,15 +361,15 @@ FontSize=16

[String_FontSize_Background]
X=340
Y=445
Y=480
Meter=Shape
Shape=Rectangle 0,0,([String_Barheight_Input:W]),([String_Barheight_Input:H]) | FillColor #SecondaryColor# | StrokeWidth 0
LeftMouseUpAction=[!SetOption MeasureInputNumbers Y 445][!CommandMeasure "MeasureInputNumbers" "ExecuteBatch 2"]
DynamicVariables=1

[String_FontSize_Input]
X=340
Y=445
Y=480
Meter=String
Text=#FontSize#
AntiAlias=1
Expand All @@ -351,7 +381,7 @@ InlineSetting=Underline

[String_Scale]
X=80
Y=480
Y=515
Meter=String
Text=Scale -------------
AntiAlias=1
Expand All @@ -362,15 +392,15 @@ FontSize=16

[String_Scale_Background]
X=340
Y=480
Y=515
Meter=Shape
Shape=Rectangle 0,0,([String_Scale_Input:W]),([String_Scale_Input:H]) | FillColor #SecondaryColor# | StrokeWidth 0
LeftMouseUpAction=[!SetOption MeasureInputNumbers Y 480][!CommandMeasure "MeasureInputNumbers" "ExecuteBatch 3"]
DynamicVariables=1

[String_Scale_Input]
X=340
Y=480
Y=515
Meter=String
Text=#Scale#
AntiAlias=1
Expand Down

0 comments on commit 8936e1d

Please sign in to comment.