Advertisement
hyperst

Custom Slideshow Frame - Rainmeter

Feb 20th, 2021 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. ;--------------------------
  2. ; Customize to your liking:
  3. ; Width, Height: Dimensions of the widget (excluding the drop shadow)
  4. ; FolderPath: Path to your image folder for this slideshow widget
  5. ; IncludeSubFolders: Set to 1 if you wanna include images in subfolders of 'FolderPath'
  6. ; Interval: Duration in seconds an image is displayed
  7. ; BorderWidth: Width of the frame (border) around the Image
  8. ; FrameColor: Color of the frame itself (usually white)
  9. ; InsetColor: Slightly dark 1px line around the image to visually separate it from the frame; set this to '0,0,0,0' if you want to use 'BorderWidth=0'!
  10. ; ShadowWidth: Static variable, please DO NOT change!
  11. ;---------------------------
  12.  
  13. [Variables]
  14. FolderPath="C:\Slideshow Images"
  15. IncludeSubFolders=0
  16. Interval=40
  17. Width=512
  18. Height=512
  19. BorderWidth=8
  20. ; Default InsetColor is '0,0,0,20'
  21. InsetColor=0,0,0,20
  22. FrameColor=255,255,255
  23. ; -- DO NOT CHANGE the values below! --
  24. ShadowWidth=3
  25. ImageWidth=(#Width#-2*#ShadowWidth#-2*#BorderWidth#)
  26. ImageHeight=(#Height#-2*#ShadowWidth#-2*#BorderWidth#)
  27.  
  28. [Rainmeter]
  29. Update=1000
  30.  
  31. [Metadata]
  32. Name=Custom Slideshow Frame
  33. Author=M4he
  34. Information=Highly customizable picture frame with subtle drop shadow that displays a picture slideshow of a specific folder. Please edit the skin for customization!
  35. Version=1.0
  36.  
  37. ;--------------------------------------------
  38.  
  39.  
  40. [MeterImage]
  41. Measure=Plugin
  42. Plugin=Plugins\QuotePlugin.dll
  43. PathName=C:\Users\stav\Pictures
  44. Subfolders=C:\Users\stav\Pictures
  45. FileFilter=*.jpg;*.jpeg;*.png;*.bmp
  46. UpdateDivider=#Interval#
  47.  
  48.  
  49. ;--------------------------------------------
  50.  
  51.  
  52. [DropShadow]
  53. Meter=IMAGE
  54. ImageName=#ROOTCONFIGPATH#\BG_shadow.png
  55. Tile=0
  56. PreserveAspectRatio=0
  57. ScaleMargins=#ShadowWidth#, #ShadowWidth#, #ShadowWidth#, #ShadowWidth#
  58. W=(#ImageWidth#+2*#ShadowWidth#+2*#BorderWidth#)
  59. H=(#ImageHeight#+2*#ShadowWidth#+2*#BorderWidth#)
  60.  
  61.  
  62. [Image]
  63. Meter=IMAGE
  64. MeasureName=MeterImage
  65. PreserveAspectRatio=2
  66. X=(#BorderWidth#+#ShadowWidth#)
  67. Y=(#BorderWidth#+#ShadowWidth#)
  68. W=#ImageWidth#
  69. H=#ImageHeight#
  70. LeftMouseUpAction=!Execute [explorer.exe "[MeterImage]"]
  71. MiddleMouseUpAction=!Execute [!RainmeterRefresh]
  72.  
  73. [OverlayBorderLeft]
  74. Meter=IMAGE
  75. SolidColor=#InsetColor#
  76. X=(#BorderWidth#+#ShadowWidth#)
  77. Y=(#BorderWidth#+#ShadowWidth#)
  78. W=1
  79. H=#ImageHeight#
  80.  
  81. [OverlayBorderTop]
  82. Meter=IMAGE
  83. SolidColor=#InsetColor#
  84. X=(#BorderWidth#+#ShadowWidth#+1)
  85. Y=(#BorderWidth#+#ShadowWidth#)
  86. W=(#ImageWidth#-2)
  87. H=1
  88.  
  89. [OverlayBorderRight]
  90. Meter=IMAGE
  91. SolidColor=#InsetColor#
  92. X=(#BorderWidth#+#ShadowWidth#+#ImageWidth#-1)
  93. Y=(#BorderWidth#+#ShadowWidth#)
  94. W=1
  95. H=#ImageHeight#
  96.  
  97. [OverlayBorderBottom]
  98. Meter=IMAGE
  99. SolidColor=#InsetColor#
  100. X=(#BorderWidth#+#ShadowWidth#+1)
  101. Y=(#BorderWidth#+#ShadowWidth#+#ImageHeight#-1)
  102. W=(#ImageWidth#-2)
  103. H=1
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement