File Menu - project-owner/Peppy.doc GitHub Wiki

It's possible to adjust the file menu appearance and behavior by adjusting different properties in the file.browser section of the config/txt file:

[file.browser]
...
hide.folder.name = False
image.area = 18
image.size = 90
image.size.without.label = 96
icon.size = 60
padding = 2
rows = 5
columns = 2
alignment = left
sort.by.type = False
wrap.lines = False
horizontal.layout = True
font.height = 38

The same properties can be changed using the Configuration Web UI:

The following images show the meaning of the dimension properties.

The rest properties will be explained in the following sections.

Default / Hidden Folder Name / Original

The following table shows how the file menu looks like with default parameters, with hidden folder names and the look & feel of the original file menu.

Type Properties Screenshot
Default hide.folder.name = Falseimage.area = 18image.size = 90image.size.without.label = 96icon.size = 60padding = 2rows = 5columns = 2alignment = leftsort.by.type = Falsewrap.lines = Falsehorizontal.layout = Truefont.height = 38
Hide folder name hide.folder.name = Truerows = 2columns = 5font.height = 14
Original image.area = 74rows = 3columns = 3alignment = centerfont.height = 50

Alignment

The label and icon alignments can be changed by means of the alignment parameter.

Type Properties Screenshot
Left (default) image.area = 18rows = 5columns = 2alignment = leftfont.height = 38
Center image.area = 74rows = 3columns = 3alignment = centerfont.height = 50
Right image.area = 18rows = 5columns = 2alignment = rightfont.height = 38

Sorting

The file menu items can be sorted either alphabetically or by item type. There are such types as files, playlists and folders. If menu was sorted by type then the folders will be displayed first, then playlists and then files.

Type Properties Screenshot
Alphabetical (default) sort.by.type = False
Sort by type sort.by.type = True

Wrapping

The default setting is No Wrapping. It makes long strings appear as truncated and with the ellipsis at the end.

Type Properties Screenshot
No Wrapping (default) wrap.lines = False
Wrapping wrap.lines = True

Layout

The horizontal layout is the default one.

Type Properties Screenshot
Horizontal (default) horizontal.layout = True
Vertical horizontal.layout = False

<<Previous | Next>>