It is currently March 29th, 2024, 7:51 am

FolderView

Skins to open folders and launch applications and websites
User avatar
VyzerMusic
Posts: 8
Joined: April 10th, 2021, 6:29 pm
Location: USA

Re: FolderView

Post by VyzerMusic »

eclectic-tech wrote: April 10th, 2021, 7:15 pm Are asking to increase the size of the icons or the entire skin?
The icons are already using the large variant.
To enlarge the skin can be done by editing the "Scale" variable in "variables.inc" of any of the included config folders.

The number of items shown could be increased beyond 8-at-a-time (as it is now), but would require a lot of modifying of the code: FileView setting changes, plus new measures and meters.

That is not something I plan on doing :uhuh:
The skin can show an unlimited number of folders and files from any location, it simply limits to viewing 8 at any one time.
I'm thinking more like expanding the size to where it can show more rows and columns (using "small icons" mode). For example, like showing 8 (or maybe 9) files in a column, and a few rows (like probalby 3 or 4).

Also,is there a way to shrink the vertical size for when there isn't much in the folder (like let's say there's 3 files, so I'd want the folder to go down 3 files worth rather than 8).

Update: I figured out how to make it shorter, still trying to figure out how to make it longer.
User avatar
VyzerMusic
Posts: 8
Joined: April 10th, 2021, 6:29 pm
Location: USA

Re: FolderView

Post by VyzerMusic »

Ok so, I figured out pretty much everything, the last thing that I'm not sure how to do is get rid of the extra space where the PageUp, pageDown, etc used to be.
You do not have the required permissions to view the files attached to this post.
User avatar
VyzerMusic
Posts: 8
Joined: April 10th, 2021, 6:29 pm
Location: USA

Re: FolderView

Post by VyzerMusic »

Any update? I still haven't figured it out lol
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: FolderView

Post by eclectic-tech »

VyzerMusic wrote: April 30th, 2021, 7:23 pm Any update? I still haven't figured it out lol
Been busy with other projects.

In order to begin to help, post your modified code and explain exactly what you want to correct.

Once the code is here, someone may be able to suggest a solution.
User avatar
VyzerMusic
Posts: 8
Joined: April 10th, 2021, 6:29 pm
Location: USA

Re: FolderView

Post by VyzerMusic »

eclectic-tech wrote: May 1st, 2021, 1:16 am Been busy with other projects.

In order to begin to help, post your modified code and explain exactly what you want to correct.

Once the code is here, someone may be able to suggest a solution.
No problem, here's the 2 files I edited (I'm using the one where I have only 3 games/shortcuts in order to not make a huge post)

folderrollupdown edit:

Code: Select all

;----------------------------------------------------
; Variables
;----------------------------------------------------

[Variables]
@IncludeVariables=#CurrentPath#Variables.inc

; Values are '0' to disable or '1' to enable
ShowPrevious=0
ShowFolders=1
HideTips=0
HideInfo=1
HideExt=1

;SortBy value can equal: 'Name', 'Size', 'Type', or 'Date'
SortBy=Name
;SortData value can equal: 'Modified', 'Created', or 'Accessed'
SortData=Modified

;----------------------------------------------------
; Metadata Information
;----------------------------------------------------

[Metadata]
Name=FolderView
Author=Eclectic Tech
Information=Stationary or Roll Down/Roll Up Windows using Fileview plugin and Containers. Four preset styles: Light, Dark, Clear (Light Text), Clear (Dark Text). Widows can be based on either a Path (default mode) which allows all explorer features, or use a Custom Title (Edit "Variables.inc" in folder). Double-click Title to open current folder. Middle-click Title to manually enter a folder path. You can navigate in the window; ".." means previous folder, arrows will step through "pages" of the folder, scrolling will step 1 folder/file at a time. Scaler can be edited in "Variables.inc" in each folder. Three folders are included. To add a new FolderView simply copy any "Folder#", paste it, rename it, and refresh Rainmeter.
License=CC SA NC 4.0
Version=1.2020.12.22

;----------------------------------------------------
; Skin Settings
;----------------------------------------------------

[Rainmeter]
Update=50
DefaultUpdateDivider=20
AccurateText=1
Group=#RootConfig#
TooltipHidden=#HideTips#

MouseScrollUpAction=[!CommandMeasure mPath "IndexUp"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
;[!CommandMeasure mPath "PageUp"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
MouseScrollDownAction=[!CommandMeasure mPath "IndexDown"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
;[!CommandMeasure mPath "PageDown"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

OnCloseAction=[!WriteKeyValue Variables Path "[mPath]" "#CurrentPath#Variables.inc"]

;----------------------------------------------------
; Context Styles Menu
;----------------------------------------------------
RightMouseUpAction=[!SkinCustomMenu]

ContextTitle="[\x25cb] Small Icons"
ContextAction=[!WriteKeyValue Variables MenuType "SmallIcons" "#CurrentPath#Variables.inc"][!Refresh]
ContextTitle2="[\x25cb] Text Only"
ContextAction2=[!WriteKeyValue Variables MenuType "TextOnly" "#CurrentPath#Variables.inc"][!Refresh]
ContextTitle3="[\x25cb] Large Icons"
ContextAction3=[!WriteKeyValue Variables MenuType "LargeIcons" "#CurrentPath#Variables.inc"][!Refresh]
ContextTitle4="---"
ContextAction4=[]
ContextTitle5="[\x25cb] Light Theme"
ContextAction5=[!WriteKeyValue Variables BackColor #LightColor# "#CurrentPath#Variables.inc"][!WriteKeyValue Variables TextColor #DarkColor# "#CurrentPath#Variables.inc"][!Refresh]
ContextTitle6="[\x25cb] Dark Theme"
ContextAction6=[!WriteKeyValue Variables BackColor #DarkColor# "#CurrentPath#Variables.inc"][!WriteKeyValue Variables TextColor #LightColor# "#CurrentPath#Variables.inc"][!Refresh]
ContextTitle7="[\x25cb] Clear Theme (Dark Text)"
ContextAction7=[!WriteKeyValue Variables BackColor "0,0,0,16" "#CurrentPath#Variables.inc"][!WriteKeyValue Variables TextColor #DarkColor# "#CurrentPath#Variables.inc"][!Refresh]
ContextTitle8="[\x25cb] Clear Theme (Light Text)"
ContextAction8=[!WriteKeyValue Variables BackColor "0,0,0,16" "#CurrentPath#Variables.inc"][!WriteKeyValue Variables TextColor #LightColor# "#CurrentPath#Variables.inc"][!Refresh]
ContextTitle9="---"
ContextAction9=[]
ContextTitle10="Full Path Title Bar"
ContextAction10=[!SetOption Path MeasureName "mPath"][!UpdateMeter Path][!Redraw]
ContextTitle11="Folder Title Bar"
ContextAction11=[!SetOption Path MeasureName "mPathEnd"][!UpdateMeter Path][!Redraw]
ContextTitle12="---"
ContextAction12=[]
ContextTitle13="[\x25cb] Show Previous Folder"
ContextAction13=[!WriteKeyValue Variables ShowPrevious (1-#ShowPrevious#)][!Refresh]
ContextTitle14="[\x25cb] Show Folders"
ContextAction14=[!WriteKeyValue Variables ShowFolders (1-#ShowFolders#)][!Refresh]
ContextTitle15="[\x25cb] Tooltips"
ContextAction15=[!WriteKeyValue Variables HideTips (1-#HideTips#)][!Refresh]
ContextTitle16="[\x25cb] Statusbar"
ContextAction16=[!WriteKeyValue Variables HideInfo (1-#HideInfo#)][!Refresh]
ContextTitle17="[\x25cb] Extensions"
ContextAction17=[!WriteKeyValue Variables HideExt (1-#HideExt#)][!Refresh]
ContextTitle18="---"
ContextAction18=[]
ContextTitle19="Edit Folder Variables"
ContextAction19=["#CurrentPath##CurrentFile#]
ContextTitle20="---"
ContextAction20=[]
ContextTitle21="More actions >"
ContextAction21=[!SkinMenu]

;----------------------------------------------------
; Measures
;----------------------------------------------------

[mContextMenuType]
Measure=String
String=#MenuType#
IfMatch=(?i)SmallIcons
IfMatchAction=[!SetOption Rainmeter ContextTitle "[\x25c9] Small Icons"]
IfNotMatchAction=[!SetOption Rainmeter ContextTitle "[\x25cb] Small Icons"]
IfMatch2=(?i)TextOnly
IfMatchAction2=[!SetOption Rainmeter ContextTitle2 "[\x25c9] Text Only"]
IfNotMatchAction2=[!SetOption Rainmeter ContextTitle2 "[\x25cb] Text Only"]
IfMatch3=(?i)LargeIcons
IfMatchAction3=[!SetOption Rainmeter ContextTitle3 "[\x25c9] Large Icons"]
IfNotMatchAction3=[!SetOption Rainmeter ContextTitle3 "[\x25cb] Large Icons"]

[mContextMenuTheme]
Measure=String
String=#BackColor#:#TextColor#
IfMatch=(?i)#LightColor#:#DarkColor#
IfMatchAction=[!SetOption Rainmeter ContextTitle5 "[\x25c9] Light Theme"]
IfNotMatchAction=[!SetOption Rainmeter ContextTitle5 "[\x25cb] Light Theme"]
IfMatch2=(?i)#DarkColor#:#LightColor#
IfMatchAction2=[!SetOption Rainmeter ContextTitle6 "[\x25c9] Dark Theme"]
IfNotMatchAction2=[!SetOption Rainmeter ContextTitle6 "[\x25cb] Dark Theme"]
IfMatch3=(?i)0,0,0,16:#DarkColor#
IfMatchAction3=[!SetOption Rainmeter ContextTitle7 "[\x25c9] Clear Theme (Dark Text)"]
IfNotMatchAction3=[!SetOption Rainmeter ContextTitle7 "[\x25cb] Clear Theme (Dark Text)"]
IfMatch4=(?i)0,0,0,16:#LightColor#
IfMatchAction4=[!SetOption Rainmeter ContextTitle8 "[\x25c9] Clear Theme (Light Text)"]
IfNotMatchAction4=[!SetOption Rainmeter ContextTitle8 "[\x25cb] Clear Theme (Light Text)"]
DynamicVariables=1

[mContextToggles]
Measure=Calc
Formula=1
IfCondition=(#ShowPrevious#=1)
IfTrueAction=[!SetOption Rainmeter ContextTitle13 "[\x25c9] Show Previous Folder"]
IfFalseAction=[!SetOption Rainmeter ContextTitle13 "[\x25cb] Show Previous Folder"]
IfCondition2=(#ShowFolders#=1)
IfTrueAction2=[!SetOption Rainmeter ContextTitle14 "[\x25c9] Show Folders"]
IfFalseAction2=[!SetOption Rainmeter ContextTitle14 "[\x25cb] Show Folders"]
IfCondition3=(#HideTips#=1)
IfTrueAction3=[!SetOption Rainmeter ContextTitle15 "[\x25cb] Tooltips"]
IfFalseAction3=[!SetOption Rainmeter ContextTitle15 "[\x25c9] Tooltips"]
IfCondition4=(#HideInfo#=1)
IfTrueAction4=[!SetOption Rainmeter ContextTitle16 "[\x25cb] Statusbar"]
IfFalseAction4=[!SetOption Rainmeter ContextTitle16 "[\x25c9] Statusbar"]
IfCondition5=(#HideExt#=1)
IfTrueAction5=[!SetOption Rainmeter ContextTitle17 "[\x25cb] Extensions"]
IfFalseAction5=[!SetOption Rainmeter ContextTitle17 "[\x25c9] Extensions"]

[MeasureInputText]
Measure=Plugin
Plugin=InputText
InputLimit=0
InputNumber=0
X=1
FontSize=#TextSize#
Y=(2*#Scaler#)
W=#Width#
H=(23*#Scaler#)
Command1=[!WriteKeyValue Variables Path "$UserInput$" "#CurrentPath#Variables.inc"][!WriteKeyValue Variables "CustomTitle" "0" "#CurrentPath#Variables.inc"][!Refresh]
DefaultValue=Enter Path to Your Folder
OnDismissAction=[!EnableMouseAction Background "MouseOverAction"][!EnableMouseAction Background "MouseLeaveAction"]

[mPath]
Measure=Plugin
Plugin=FileView
Path="#Path#"
Count=3
Recursive=0
ShowDotDot=#ShowPrevious#
ShowFolder=#ShowFolders#
; SortType: Name, Size, Type, Date
SortType=#SortBy#
; SortDataType: Modified, Created, Accessed
SortDataType=#SortData#
HideExtensions=#HideExt#
UpdateDivider=5
OnUpdateAction=[!Setvariable Path "[mPath]"][!WriteKeyValue Variables Path [mPath] "#CurrentPath#Variables.inc"]

[mPathEnd]
Measure=String
String=[mPath]
RegExpSubstitute=1
Substitute="^.*:\\(?(?<=\\).*\\(.*)\\)":"\1","":"This PC"
DynamicVariables=1

[mFolderCount]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FolderCount
Group=Children

[mFileCount]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileCount
Group=Children

;----------------------------------------------------
; Index 1

[mIndex1Name]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=1
Group=Children
IfMatch=^$
IfMatchAction=[!HideMeterGroup Index1]
IfNotMatchAction=[!ShowMeterGroup Index1]
IfMatchMode=1

[mIndex1Icon]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Large
Index=1
Group=Children

;----------------------------------------------------
; Index 2

[mIndex2Name]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=2
Group=Children
IfMatch=^$
IfMatchAction=[!HideMeterGroup Index2]
IfNotMatchAction=[!ShowMeterGroup Index2]
IfMatchMode=1

[mIndex2Icon]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Large
Index=2
Group=Children

;----------------------------------------------------
; Index 3

[mIndex3Name]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=3
Group=Children
IfMatch=^$
IfMatchAction=[!HideMeterGroup Index3]
IfNotMatchAction=[!ShowMeterGroup Index3]
IfMatchMode=1

[mIndex3Icon]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Large
Index=3
Group=Children

;----------------------------------------------------
; Background and Top Meters
;----------------------------------------------------

[Background]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,#Width#,#ContainerH# | StrokeWidth 1 | Stroke Color #BorderColor# | Fill Color #BackColor#
DynamicVariables=1
MouseOverAction=[!ZPos +1][!EnableMouseAction Background "MouseLeaveAction"][!CommandMeasure Slider "Stop 2"][!CommandMeasure Slider "Execute 1"]
MouseLeaveAction=[!ZPos 0][!CommandMeasure Slider "Stop 1"][!CommandMeasure Slider "Execute 2"]

[Path]
Meter=String
StringAlign=CenterCenter
MeasureName=mPathEnd
MeterStyle=TextStyle
;Prefix="Path:"
StringCase=Proper
;Text="%1 "
X=([Background:W]*0.5)
Y=(12*#Scaler#)
ClipString=1
W=#Width#
H=(23*#Scaler#)
LeftMouseDoubleClickAction=["[mPath]"][!Refresh]
MiddleMouseUpAction=[!DisableMouseAction Background "MouseOverAction"][!DisableMouseAction Background "MouseLeaveAction"][!CommandMeasure "MeasureInputText" "ExecuteBatch 1"]
SolidColor=#HeaderColor#

;----------------------------------------------------
; RollDown/RollUp Measure
;----------------------------------------------------

[Slider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideDown,10,78
SlideDown=[!SetVariable ContainerH "(Clamp(#ContainerH#+10,(23*#Scaler#),(125*#Scaler#)))"]#U#
ActionList2=Repeat SlideUp,10,78
SlideUp=[!SetVariable ContainerH "(Clamp(#ContainerH#-10,(23*#Scaler#),(280*#Scaler#)))"]#U#
DynamicVariables=1
UpdateDivider=1

;----------------------------------------------------
; Container Meter
;----------------------------------------------------

[ContainerMeter]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,#Width#,#ContainerH# | StrokeWidth 1
DynamicVariables=1

@includeMeters="#CurrentPath##MenuType#.inc"

[FolderInfo]
Meter=String
MeterStyle=TextStyle
FontSize=(#TextSize#-2)
StringAlign=CenterCenter
StringCase=Proper
X=([Background:W]*0.5)
Y=(268*#Scaler#)
ClipString=1
W=#Width#
H=(23*#Scaler#)
MeasureName=mFolderCount
MeasureName2=mFileCount
Text=%1 Folders - %2 Files
SolidColor=#HeaderColor#
Hidden=#HideInfo#
SmallIcons edit:

Code: Select all

; Menu Meters ~ Icons and Text
;----------------------------------------------------
; Meter Styles
;----------------------------------------------------

[TextStyle]
FontSize=#TextSize#
FontColor=#TextColor#
AntiAlias=1
InlineSetting=Weight 600
DynamicVariables=1
Container=ContainerMeter

[IconStyle]
X=(5*#Scaler#)
Y=r
W=(23*#Scaler#)
H=(23*#Scaler#)
AntiAlias=1
DynamicVariables=1
Container=ContainerMeter

[HighlightStyle]
SolidColor=0,0,0,1
X=(5*#Scaler#)
Y=(6*#Scaler#)R
W=(#Width#*0.95)
H=([Index1Icon:H] > [Index1Info:H] ? [Index1Icon:H] : [Index1Info:H])
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "#HighlightColor#"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "0,0,0,1"][!UpdateMeter #CURRENTSECTION#][!Redraw]
Container=ContainerMeter

[InfoStyle]
X=(6*#Scaler#)R
Y=(2*#Scaler#)r
Text="%1"
ClipString=1
W=(#Width#*0.88)
AutoScale=1
AntiAlias=1
DynamicVariables=1
Container=ContainerMeter

;----------------------------------------------------
; Content Meters
;----------------------------------------------------

[Index1]
Meter=Image
MeterStyle=HighlightStyle
Group=Index1
Y=(48*#Scaler#)
LeftMouseDoubleClickAction=[!CommandMeasure mIndex1Name "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

[Index1Icon]
Meter=Image
MeasureName=mIndex1Icon
MeterStyle=IconStyle
Group=Index1

[Index1Info]
Meter=String
MeasureName=mIndex1Name
MeterStyle=TextStyle | InfoStyle
Group=Index1
RightMouseUpAction=[!DisableMouseAction Background "MouseLeaveAction"][!CommandMeasure "mIndex1Name" "ContextMenu"]

[Index2]
Meter=Image
MeterStyle=HighlightStyle
Group=Index2
LeftMouseDoubleClickAction=[!CommandMeasure mIndex2Name "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

[Index2Icon]
Meter=Image
MeasureName=mIndex2Icon
MeterStyle=IconStyle
Group=Index2

[Index2Info]
Meter=String
MeasureName=mIndex2Name
MeterStyle=TextStyle | InfoStyle
Group=Index2
RightMouseUpAction=[!DisableMouseAction Background "MouseLeaveAction"][!CommandMeasure "mIndex2Name" "ContextMenu"]

[Index3]
Meter=Image
MeterStyle=HighlightStyle
Group=Index3
LeftMouseDoubleClickAction=[!CommandMeasure mIndex3Name "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

[Index3Icon]
Meter=Image
MeasureName=mIndex3Icon
MeterStyle=IconStyle
Group=Index3

[Index3Info]
Meter=String
MeasureName=mIndex3Name
MeterStyle=TextStyle | InfoStyle
Group=Index3
RightMouseUpAction=[!DisableMouseAction Background "MouseLeaveAction"][!CommandMeasure "mIndex3Name" "ContextMenu"]
User avatar
VyzerMusic
Posts: 8
Joined: April 10th, 2021, 6:29 pm
Location: USA

Re: FolderView

Post by VyzerMusic »

And as for what I want to correct, I just want to remove this unneeded space where the "previous folder, page up/down, etc used to be:
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: FolderView

Post by eclectic-tech »

VyzerMusic wrote: May 1st, 2021, 2:06 am And as for what I want to correct, I just want to remove this unneeded space where the "previous folder, page up/down, etc used to be:
To change the space between the titlebar and the first item, change the Y value of [Index1] in the smallicon.inc file; I changed it from (48*#Scaler#) to (28*#Scaler#).

Code: Select all

[Index1]
Meter=Image
MeterStyle=HighlightStyle
Group=Index1
Y=(28*#Scaler#)
LeftMouseDoubleClickAction=[!CommandMeasure mIndex1Name "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

You would need to change that same section in the other menu style include files, if you plan to use "text only" or "large icon" styles.

I see you changed the clamp value in the action timer slider measure for the rollup action timer to 125. I would recommend changing that clamp value to 108 for both the rollup and rolldown actions. Also change the value of ContainerH in the "variables.inc" file to equal 108 (the clamp value used in the action timer slider).

Should look like this with those changes:
foldersmall3.gif
You do not have the required permissions to view the files attached to this post.
User avatar
VyzerMusic
Posts: 8
Joined: April 10th, 2021, 6:29 pm
Location: USA

Re: FolderView

Post by VyzerMusic »

eclectic-tech wrote: May 1st, 2021, 3:09 am To change the space between the titlebar and the first item, change the Y value of [Index1] in the smallicon.inc file; I changed it from (48*#Scaler#) to (28*#Scaler#).

Code: Select all

[Index1]
Meter=Image
MeterStyle=HighlightStyle
Group=Index1
Y=(28*#Scaler#)
LeftMouseDoubleClickAction=[!CommandMeasure mIndex1Name "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

You would need to change that same section in the other menu style include files, if you plan to use "text only" or "large icon" styles.

I see you changed the clamp value in the action timer slider measure for the rollup action timer to 125. I would recommend changing that clamp value to 108 for both the rollup and rolldown actions. Also change the value of ContainerH in the "variables.inc" file to equal 108 (the clamp value used in the action timer slider).

Should look like this with those changes:foldersmall3.gif
Awesome, thank you! I'll definitely try that out!
User avatar
VyzerMusic
Posts: 8
Joined: April 10th, 2021, 6:29 pm
Location: USA

Re: FolderView

Post by VyzerMusic »

Awesome, it works perfectly, thank you a lot for your hep, I appreciate it!
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: FolderView

Post by eclectic-tech »

Glad to help. :welcome: