Skip to content

Commit e186c80

Browse files
authored
Merge pull request #4945 from egmontkob/4896_skin_readme
4896 skin readme
2 parents 042576f + 6e12997 commit e186c80

22 files changed

Lines changed: 586 additions & 430 deletions

doc/man/mc.1.in

Lines changed: 5 additions & 313 deletions
Original file line numberDiff line numberDiff line change
@@ -3649,9 +3649,8 @@ is used for popup menu title.
36493649
.PP
36503650
The possible colors are: black, gray, red, brightred, green,
36513651
brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
3652-
cyan, brightcyan, lightgray and white. And there is a special keyword
3653-
for transparent background. It is 'default'. The 'default' can only be
3654-
used for background color. Another special keyword "base" means mc's main
3652+
cyan, brightcyan, lightgray and white; as well as "default" for the terminal's
3653+
default foreground or background color. Another special keyword "base" means mc's main
36553654
colors. When 256 colors are available, they can be specified either as
36563655
color16 to color255, or as rgb000 to rgb555 and gray0 to gray23. Example:
36573656
.PP
@@ -3721,319 +3720,12 @@ or without it). Search of skin\-file will occur in (to the first one found):
37213720
.br
37223721

37233722
.PP
3724-
For getting extended info, refer to:
3725-
.IP
3726-
.\"LINK2"
3727-
Description of section and parameters
3728-
.\"Skins sections"
3729-
.br
3730-
.\"LINK2"
3731-
Color pair definitions
3732-
.\"Skins colors"
3733-
.br
3734-
.\"LINK2"
3735-
Color and attribute aliases
3736-
.\"Skins aliases"
3737-
.br
3738-
.\"LINK2"
3739-
Draw lines
3740-
.\"Skins lines"
3741-
.br
3742-
.\"LINK2"
3743-
Compatibility
3744-
.\"Skins oldcolors"
3745-
.br
3746-
3747-
.\"NODE " Skins sections"
3748-
.SH " Description of section and parameters"
3749-
3750-
Section
3751-
.B [skin]
3752-
contain metainfo for skin\-file. Parameter
3753-
.I description
3754-
contain short text about skin.
3755-
3756-
.PP
3757-
Section
3758-
.B [filehighlight]
3759-
contain descriptions of color pairs for filenames highlighting.
3760-
Name of parameters must be equal to names of sections into
3761-
filehighlight.ini file.
3762-
See
3763-
.\"LINK2"
3764-
Filenames Highlight
3765-
.\"Filenames Highlight"
3766-
for getting more info.
3767-
3768-
.PP
3769-
Section
3770-
.B [core]
3771-
describes the elements that are used everywhere.
3772-
.TP
3773-
.I _default_
3774-
Default color pair. Used in all other sections if they not contain
3775-
color definitions
3776-
.TP
3777-
.I selected
3778-
cursor
3779-
.TP
3780-
.I marked
3781-
selected data
3782-
.TP
3783-
.I markselect
3784-
cursor on selected data
3785-
.TP
3786-
.I gauge
3787-
color of the filled part of the progress bar
3788-
.TP
3789-
.I input
3790-
color of input lines used in query dialogs
3791-
.TP
3792-
.I inputmark
3793-
color of input selected text
3794-
.TP
3795-
.I inputunchanged
3796-
color of input text before first modification or cursor movement
3797-
.TP
3798-
.I commandlinemark
3799-
color of selected text in command line
3800-
.TP
3801-
.I reverse
3802-
reverse color
3803-
.PP
3804-
Section
3805-
.B [dialog]
3806-
describes the elements that are placed on dialog windows (except error dialogs).
3807-
.TP
3808-
.I _default_
3809-
Default color for this section. Used [core]._default_ if not specified
3810-
.TP
3811-
.I dfocus
3812-
Color of active element (in focus)
3813-
.TP
3814-
.I dhotnormal
3815-
Color of hotkeys
3816-
.TP
3817-
.I dhotfocus
3818-
Color of hotkeys in focused element
3819-
3820-
.PP
3821-
Section
3822-
.B [error]
3823-
describes the elements that are placed on error dialog windows
3824-
.TP
3825-
.I _default_
3826-
Default color for this section. Used [core]._default_ if not specified
3827-
.TP
3828-
.I errdhotnormal
3829-
Color of hotkeys
3830-
.TP
3831-
.I errdhotfocus
3832-
Color of hotkeys in focused element
3833-
3834-
.PP
3835-
Section
3836-
.B [menu]
3837-
describes the elements that are placed in menu. This section describes
3838-
system menu (called by F9) and user\-defined menus (called by F2 in panels
3839-
and by F11 in editor).
3840-
.TP
3841-
.I _default_
3842-
Default color for this section. Used [core]._default_ if not specified
3843-
.TP
3844-
.I entry
3845-
Color of menu items
3846-
.TP
3847-
.I menuhot
3848-
Color of menu hotkeys
3849-
.TP
3850-
.I menusel
3851-
Color of active menu item (in focus)
3852-
.TP
3853-
.I menuhotsel
3854-
Color of menu hotkeys in focused menu item
3855-
.TP
3856-
.I menuinactive
3857-
Color of inactive menu
3858-
3859-
.PP
3860-
Section
3861-
.B [help]
3862-
describes the elements that are placed on help window.
3863-
.TP
3864-
.I _default_
3865-
Default color for this section. Used [core]._default_ if not specified
3866-
.TP
3867-
.I helpitalic
3868-
Color pair for element with
3869-
.B italic
3870-
attribute
3871-
.TP
3872-
.I helpbold
3873-
Color pair for element with
3874-
.B bold
3875-
attribute
3876-
.TP
3877-
.I helplink
3878-
Color of links
3879-
.TP
3880-
.I helpslink
3881-
Color of active link (on focus)
3882-
3883-
.PP
3884-
Section
3885-
.B [editor]
3886-
describes the colors of elements placed in editor.
3887-
.TP
3888-
.I _default_
3889-
Default color for this section. Used [core]._default_ if not specified
3890-
.TP
3891-
.I editbold
3892-
Color pair for element with
3893-
.B bold
3894-
attribute
3895-
.TP
3896-
.I editmarked
3897-
Color of selected text
3898-
.TP
3899-
.I editwhitespace
3900-
Color of tabs and trailing spaces highlighting
3901-
.TP
3902-
.I editlinestate
3903-
Color for line state area
3904-
3905-
.PP
3906-
Section
3907-
.B [viewer]
3908-
describes the colors of elements placed in viewer.
3909-
.TP
3910-
.I viewunderline
3911-
Color pair for element with
3912-
.B underline
3913-
attribute
3914-
3915-
.\"NODE " Skins colors"
3916-
.SH " Color pair definitions"
3917-
Any parameter in skin\-file contain definition of color pair.
3918-
.PP
3919-
Color pairs described as two colors and the optional attributes
3920-
separated by ';'. First field sets the foreground color, second
3921-
field sets background color, third field sets the attributes.
3922-
Any of the fields may be omitted, in this case value will be
3923-
taken from default color pair (global color pair or from default
3924-
color pair of this section).
3925-
.PP
3926-
Example:
3927-
.br
3928-
.nf
3929-
[core]
3930-
# green on black
3931-
_default_=green;black
3932-
# green (default) on blue
3933-
selected=;blue
3934-
# yellow on black (default)
3935-
# underlined yellow on black (default)
3936-
marked=yellow;;underline
3937-
.fi
3723+
The format of skin files is described in
3724+
.BR %pkgdatadir%/skins/README.txt .
39383725

3939-
.PP
3940-
Possible colors (names) and attributes are described in
3941-
.\"LINK2"
3942-
Colors\&.
3943-
.\"Colors"
3944-
section.
3945-
3946-
.\"NODE " Skins aliases"
3947-
.SH " Color and attribute aliases"
3948-
This optional section might define aliases for single colors (not color pairs)
3949-
as well as combination of attributes; in other words, for semicolon\-separated
3950-
fragments of parameters. Aliases can refer to other aliases as long as they
3951-
don't form a loop.
3952-
.PP
3953-
Example:
3954-
.br
3955-
.nf
3956-
[aliases]
3957-
myfavfg=green
3958-
myfavbg=black
3959-
myfavattr=bold+italic
3960-
[core]
3961-
_default_=myfavfg;myfavbg;myfavattr
3962-
.fi
3963-
3964-
.\"NODE " Skins lines"
3965-
.SH " Draw lines"
3966-
Lines sets in section
3967-
.B [Lines]
3968-
into skin\-file. By default single lines are used, but you may redefine
3969-
to usage of any utf\-8 symbols (like to lines, for example).
3970-
3971-
.PP
3972-
Descriptions of parameters
3973-
.BR [Lines] :
3974-
.TP
3975-
.I lefttop
3976-
left\-top line fragment.
3977-
.TP
3978-
.I righttop
3979-
right\-top line fragment.
3980-
.TP
3981-
.I centertop
3982-
down branch of horizontal line
3983-
.TP
3984-
.I centerbottom
3985-
up branch of horizontal line
3986-
.TP
3987-
.I leftbottom
3988-
left\-bottom line fragment
3989-
.TP
3990-
.I rightbottom
3991-
right\-bottom line fragment
3992-
.TP
3993-
.I leftmiddle
3994-
right branch of vertical line
3995-
.TP
3996-
.I rightmiddle
3997-
left branch of vertical line
3998-
.TP
3999-
.I centermiddle
4000-
cross of lines
4001-
.TP
4002-
.I horiz
4003-
horizontal line
4004-
.TP
4005-
.I vert
4006-
vertical line
4007-
.TP
4008-
.I thinhoriz
4009-
thin horizontal line
4010-
.TP
4011-
.I thinvert
4012-
thin vertical line
4013-
4014-
4015-
.\"NODE " Skins oldcolors"
4016-
.SH " Compatibility"
4017-
4018-
Appointment of color by skin\-files fully compatible with
4019-
the appointment of the colors described in
4020-
.\"LINK2"
4021-
Colors\&.
4022-
.\"Colors"
4023-
section.
4024-
.PP
4025-
In this case, reassignment of colors has priority over the skin file and is
4026-
complementary.
4027-
4028-
.\"NODE "Filenames Highlight"
40293726
.SH "Filenames Highlight"
40303727
Section [filehighlight] in current skin\-file contains key names as
4031-
highlight groups and values as color pairs. Color pairs is documented
4032-
in
4033-
.\"LINK2"
4034-
Skins
4035-
.\"Skins"
4036-
section.
3728+
highlight groups and values as color pairs.
40373729
.PP
40383730
Rules of filenames highlight are placed in %pkgdatadir%/filehighlight.ini file
40393731
(~/.config/mc/filehighlight.ini).

misc/skins/Makefile.am

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
skindir = $(pkgdatadir)/skins
22

3-
skin_DATA = \
3+
SKINS = \
44
dark.ini \
55
darkfar.ini \
66
default.ini \
@@ -41,5 +41,9 @@ skin_DATA = \
4141
yadt256-defbg.ini \
4242
yadt256.ini
4343

44+
skin_DATA = \
45+
README.txt \
46+
$(SKINS)
47+
4448
EXTRA_DIST = \
45-
$(skin_DATA)
49+
$(skin_DATA)

0 commit comments

Comments
 (0)