summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2017-05-28 00:21:57 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-05-28 00:21:57 +0200
commit04faad945a56380d41cdf3757c23b918bedf1e9b (patch)
treebfc1654e4e1dab43da8f6fef81d6e41bf614f6cf /doc
parent21982db45041604b645f73dc0c9b8a3914adb49d (diff)
parentf1261e181c888c212c860dcd77a4f7ccb0053ffa (diff)
Merge branch 'master' into wip/meson
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/default_theme.rasi115
-rw-r--r--doc/old-theme-convert-input.theme15
-rw-r--r--doc/old-theme-convert-output.rasi115
-rw-r--r--doc/rofi-theme-manpage.markdown57
-rw-r--r--doc/rofi-theme.575
5 files changed, 357 insertions, 20 deletions
diff --git a/doc/default_theme.rasi b/doc/default_theme.rasi
new file mode 100644
index 00000000..23c33889
--- /dev/null
+++ b/doc/default_theme.rasi
@@ -0,0 +1,115 @@
+* {
+ foreground: rgba ( 0, 43, 54, 100 % );
+ selected-normal-foreground: @lightbg;
+ normal-foreground: @foreground;
+ red: rgba ( 220, 50, 47, 100 % );
+ alternate-normal-background: @lightbg;
+ blue: rgba ( 38, 139, 210, 100 % );
+ selected-urgent-foreground: @background;
+ urgent-foreground: @red;
+ alternate-urgent-background: @lightbg;
+ active-foreground: @blue;
+ lightbg: rgba ( 238, 232, 213, 100 % );
+ selected-active-foreground: @background;
+ alternate-normal-foreground: @foreground;
+ alternate-active-background: @lightbg;
+ bordercolor: @foreground;
+ background: rgba ( 253, 246, 227, 100 % );
+ normal-background: @background;
+ lightfg: rgba ( 88, 104, 117, 100 % );
+ selected-normal-background: @lightfg;
+ separatorcolor: @foreground;
+ spacing: 2;
+ urgent-background: @background;
+ alternate-urgent-foreground: @red;
+ selected-urgent-background: @red;
+ alternate-active-foreground: @blue;
+ selected-active-background: @blue;
+ active-background: @background;
+}
+#window {
+ border: 1;
+ foreground: @foreground;
+ background: rgba ( 0, 0, 0, 0 % );
+ padding: 5;
+}
+#window.box {
+ foreground: @bordercolor;
+ background: @background;
+}
+#window.mainbox {
+ border: 0;
+ padding: 0;
+}
+#window.mainbox.message.box {
+ border: 1px dash 0px 0px ;
+ foreground: @separatorcolor;
+ padding: 2px 0px 0px ;
+}
+#window.mainbox.message.normal {
+ foreground: @foreground;
+}
+#window.mainbox.listview {
+ fixed-height: 0;
+ border: 1px dash 0px 0px ;
+ padding: 2px 0px 0px ;
+}
+#window.mainbox.listview.element {
+ border: 0;
+}
+#window.mainbox.listview.element.normal.normal {
+ foreground: @normal-foreground;
+ background: @normal-background;
+}
+#window.mainbox.listview.element.normal.urgent {
+ foreground: @urgent-foreground;
+ background: @urgent-background;
+}
+#window.mainbox.listview.element.normal.active {
+ foreground: @active-foreground;
+ background: @active-background;
+}
+#window.mainbox.listview.element.selected.normal {
+ foreground: @selected-normal-foreground;
+ background: @selected-normal-background;
+}
+#window.mainbox.listview.element.selected.urgent {
+ foreground: @selected-urgent-foreground;
+ background: @selected-urgent-background;
+}
+#window.mainbox.listview.element.selected.active {
+ foreground: @selected-active-foreground;
+ background: @selected-active-background;
+}
+#window.mainbox.listview.element.alternate.normal {
+ foreground: @alternate-normal-foreground;
+ background: @alternate-normal-background;
+}
+#window.mainbox.listview.element.alternate.urgent {
+ foreground: @alternate-urgent-foreground;
+ background: @alternate-urgent-background;
+}
+#window.mainbox.listview.element.alternate.active {
+ foreground: @alternate-active-foreground;
+ background: @alternate-active-background;
+}
+#window.mainbox.listview.scrollbar {
+ border: 0;
+ padding: 0;
+}
+#window.mainbox.sidebar.box {
+ border: 1px dash 0px 0px ;
+}
+#window.mainbox.sidebar.button.selected {
+ foreground: @selected-normal-foreground;
+ background: @selected-normal-background;
+}
+#window.mainbox.inputbar {
+ spacing: 0;
+}
+#window.mainbox.inputbar.box {
+ border: 0px ;
+}
+#window.mainbox.inputbar.normal {
+ foreground: @foreground;
+}
diff --git a/doc/old-theme-convert-input.theme b/doc/old-theme-convert-input.theme
new file mode 100644
index 00000000..eb4d2d4d
--- /dev/null
+++ b/doc/old-theme-convert-input.theme
@@ -0,0 +1,15 @@
+! ------------------------------------------------------------------------------
+! ROFI Color theme
+! User: qball
+! Copyright: Dave Davenport
+! ------------------------------------------------------------------------------
+! "Color scheme for normal row" Set from: File
+rofi.color-normal: argb:00000000, #dbdfbc, argb:00000000, #dbdfbc, #02143f
+! "Color scheme for urgent row" Set from: File
+rofi.color-urgent: argb:00000000, #ff81ff, argb:00000000, #ff817f, #02143f
+! "Color scheme for active row" Set from: File
+rofi.color-active: argb:00000000, #8ac4ff, argb:00000000, #8ac4ff, #02143f
+! "Color scheme window" Set from: File
+rofi.color-window: argb:dd000021, #dbdfbc, #dbdfbc
+! "Separator style (none, dash, solid)" Set from: XResources
+rofi.separator-style: solid
diff --git a/doc/old-theme-convert-output.rasi b/doc/old-theme-convert-output.rasi
new file mode 100644
index 00000000..3d03e77c
--- /dev/null
+++ b/doc/old-theme-convert-output.rasi
@@ -0,0 +1,115 @@
+* {
+ foreground: rgba ( 219, 223, 188, 100 % );
+ selected-normal-foreground: rgba ( 2, 20, 63, 100 % );
+ normal-foreground: @foreground;
+ red: rgba ( 220, 50, 47, 100 % );
+ alternate-normal-background: rgba ( 0, 0, 0, 0 % );
+ blue: rgba ( 38, 139, 210, 100 % );
+ selected-urgent-foreground: rgba ( 2, 20, 63, 100 % );
+ urgent-foreground: rgba ( 255, 129, 255, 100 % );
+ alternate-urgent-background: rgba ( 0, 0, 0, 0 % );
+ active-foreground: rgba ( 138, 196, 255, 100 % );
+ lightbg: rgba ( 238, 232, 213, 100 % );
+ selected-active-foreground: rgba ( 2, 20, 63, 100 % );
+ alternate-normal-foreground: @foreground;
+ alternate-active-background: rgba ( 0, 0, 0, 0 % );
+ bordercolor: rgba ( 219, 223, 188, 100 % );
+ background: rgba ( 0, 0, 33, 87 % );
+ normal-background: rgba ( 0, 0, 0, 0 % );
+ lightfg: rgba ( 88, 104, 117, 100 % );
+ selected-normal-background: rgba ( 219, 223, 188, 100 % );
+ separatorcolor: rgba ( 219, 223, 188, 100 % );
+ spacing: 2;
+ urgent-background: rgba ( 0, 0, 0, 0 % );
+ alternate-urgent-foreground: @urgent-foreground;
+ selected-urgent-background: rgba ( 255, 129, 127, 100 % );
+ alternate-active-foreground: @active-foreground;
+ selected-active-background: rgba ( 138, 196, 255, 100 % );
+ active-background: rgba ( 0, 0, 0, 0 % );
+}
+#window {
+ border: 1;
+ foreground: @foreground;
+ background: rgba ( 0, 0, 0, 0 % );
+ padding: 5;
+}
+#window.box {
+ foreground: @bordercolor;
+ background: @background;
+}
+#window.mainbox {
+ border: 0;
+ padding: 0;
+}
+#window.mainbox.message.box {
+ border: 1px dash 0px 0px ;
+ foreground: @separatorcolor;
+ padding: 2px 0px 0px ;
+}
+#window.mainbox.message.normal {
+ foreground: @foreground;
+}
+#window.mainbox.listview {
+ fixed-height: 0;
+ border: 1px dash 0px 0px ;
+ padding: 2px 0px 0px ;
+}
+#window.mainbox.listview.element {
+ border: 0;
+}
+#window.mainbox.listview.element.normal.normal {
+ foreground: @normal-foreground;
+ background: @normal-background;
+}
+#window.mainbox.listview.element.normal.urgent {
+ foreground: @urgent-foreground;
+ background: @urgent-background;
+}
+#window.mainbox.listview.element.normal.active {
+ foreground: @active-foreground;
+ background: @active-background;
+}
+#window.mainbox.listview.element.selected.normal {
+ foreground: @selected-normal-foreground;
+ background: @selected-normal-background;
+}
+#window.mainbox.listview.element.selected.urgent {
+ foreground: @selected-urgent-foreground;
+ background: @selected-urgent-background;
+}
+#window.mainbox.listview.element.selected.active {
+ foreground: @selected-active-foreground;
+ background: @selected-active-background;
+}
+#window.mainbox.listview.element.alternate.normal {
+ foreground: @alternate-normal-foreground;
+ background: @alternate-normal-background;
+}
+#window.mainbox.listview.element.alternate.urgent {
+ foreground: @alternate-urgent-foreground;
+ background: @alternate-urgent-background;
+}
+#window.mainbox.listview.element.alternate.active {
+ foreground: @alternate-active-foreground;
+ background: @alternate-active-background;
+}
+#window.mainbox.listview.scrollbar {
+ border: 0;
+ padding: 0;
+}
+#window.mainbox.sidebar.box {
+ border: 1px dash 0px 0px ;
+}
+#window.mainbox.sidebar.button.selected {
+ foreground: @selected-normal-foreground;
+ background: @selected-normal-background;
+}
+#window.mainbox.inputbar {
+ spacing: 0;
+}
+#window.mainbox.inputbar.box {
+ border: 0px ;
+}
+#window.mainbox.inputbar.normal {
+ foreground: @foreground;
+}
diff --git a/doc/rofi-theme-manpage.markdown b/doc/rofi-theme-manpage.markdown
index 5a32f46e..f6eb2ef9 100644
--- a/doc/rofi-theme-manpage.markdown
+++ b/doc/rofi-theme-manpage.markdown
@@ -238,31 +238,66 @@ dynamic: false;
## Color
-* Format: `#{HEX}{6}`
-* Format: `#{HEX}{8}`
-* Format: `rgb({INTEGER},{INTEGER},{INTEGER})`
-* Format: `rgba({INTEGER},{INTEGER},{INTEGER}, {REAL})`
+**rofi** supports the color formats as specified in the CSS standard (1,2,3 and some of CSS 4)
+
+* Format: `#{HEX}{3}` (rgb)
+* Format: `#{HEX}{4}` (rgba)
+* Format: `#{HEX}{6}` (rrggbb)
+* Format: `#{HEX}{8}` (rrggbbaa)
+* Format: `rgb[a]({INTEGER},{INTEGER},{INTEGER}[, {PERCENTAGE}])`
+* Format: `rgb[a]({INTEGER}%,{INTEGER}%,{INTEGER}%[, {PERCENTAGE}])`
+* Format: `hsl[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [{PERCENTAGE}])`
+* Format: `hwb[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [{PERCENTAGE}])`
+* Format: `cmyk( {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE} ])`
+* Format: `{named-color} [ / {PERCENTAGE} ]`
+
+The in CSS 4 proposed white-space format is also supported.
+
+The different values are:
+
+ * `{HEX}` is a hexidecimal number ('0-9a-f' case insensitive).
+ * `{INTEGER}` value can be between 0 and 255 or 0-100 when representing percentage.
+ * `{ANGLE}` Angle on the color wheel, can be in `deg`, `rad`, `grad` or `turn`. When no unit is specified, degrees is assumed.
+ * `{PERCENTAGE}` Can be between 0-1.0, or 0%-100%
+ * `{named-color}` Is one of the following colors:
+
+ AliceBlue, AntiqueWhite, Aqua, Aquamarine, Azure, Beige, Bisque, Black, BlanchedAlmond, Blue, BlueViolet, Brown,
+ BurlyWood, CadetBlue, Chartreuse, Chocolate, Coral, CornflowerBlue, Cornsilk, Crimson, Cyan, DarkBlue, DarkCyan,
+ DarkGoldenRod, DarkGray, DarkGrey, DarkGreen, DarkKhaki, DarkMagenta, DarkOliveGreen, DarkOrange, DarkOrchid, DarkRed,
+ DarkSalmon, DarkSeaGreen, DarkSlateBlue, DarkSlateGray, DarkSlateGrey, DarkTurquoise, DarkViolet, DeepPink, DeepSkyBlue,
+ DimGray, DimGrey, DodgerBlue, FireBrick, FloralWhite, ForestGreen, Fuchsia, Gainsboro, GhostWhite, Gold, GoldenRod,
+ Gray, Grey, Green, GreenYellow, HoneyDew, HotPink, IndianRed, Indigo, Ivory, Khaki, Lavender, LavenderBlush, LawnGreen,
+ LemonChiffon, LightBlue, LightCoral, LightCyan, LightGoldenRodYellow, LightGray, LightGrey, LightGreen, LightPink,
+ LightSalmon, LightSeaGreen, LightSkyBlue, LightSlateGray, LightSlateGrey, LightSteelBlue, LightYellow, Lime, LimeGreen,
+ Linen, Magenta, Maroon, MediumAquaMarine, MediumBlue, MediumOrchid, MediumPurple, MediumSeaGreen, MediumSlateBlue,
+ MediumSpringGreen, MediumTurquoise, MediumVioletRed, MidnightBlue, MintCream, MistyRose, Moccasin, NavajoWhite, Navy,
+ OldLace, Olive, OliveDrab, Orange, OrangeRed, Orchid, PaleGoldenRod, PaleGreen, PaleTurquoise, PaleVioletRed,
+ PapayaWhip, PeachPuff, Peru, Pink, Plum, PowderBlue, Purple, RebeccaPurple, Red, RosyBrown, RoyalBlue, SaddleBrown,
+ Salmon, SandyBrown, SeaGreen, SeaShell, Sienna, Silver, SkyBlue, SlateBlue, SlateGray, SlateGrey, Snow, SpringGreen,
+ SteelBlue, Tan, Teal, Thistle, Tomato, Turquoise, Violet, Wheat, White, WhiteSmoke, Yellow, YellowGreen
-Where '{HEX}' is a hexidecimal number ('0-9a-f'). The '{INTEGER}' value can be between 0 and 255, the '{Real}' value
-between 0.0 and 1.0.
-
-The first formats specify the color as RRGGBB (R = red, G = green, B = Blue), the second adds an alpha (A) channel:
-AARRGGBB.
For example:
```
background: #FF0000;
foreground: rgba(0,0,1, 0.5);
+text: SeaGreen;
```
## Text style
-* Format: `(bold|italic|underline|none)`
+* Format: `(bold|italic|underline|strikethrough|none)`
-Text style indicates how the text should be displayed. None indicates no style
+Text style indicates how the highlighted text is emphasised. None indicates no emphasis
should be applied.
+ * `bold`: make the text thicker then the surrounding text.
+ * `italic`: put the highlighted text in script type (slanted).
+ * `underline`: put a line under the highlighted text.
+ * `strikethrough`: put a line through the highlighted text.
+ * `small caps`: emphasise the text using capitalization.
+
## Line style
* Format: `(dash|solid)`
diff --git a/doc/rofi-theme.5 b/doc/rofi-theme.5
index bbbe7241..21f8877c 100644
--- a/doc/rofi-theme.5
+++ b/doc/rofi-theme.5
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "ROFI\-THEME\-MANPAGE" "" "April 2017" "" ""
+.TH "ROFI\-THEME\-MANPAGE" "" "May 2017" "" ""
.
.SH "NAME"
\fBrofi\-theme\fR \- Rofi theme format files
@@ -360,26 +360,65 @@ dynamic: false;
.IP "" 0
.
.SH "Color"
+\fBrofi\fR supports the color formats as specified in the CSS standard (1,2,3 and some of CSS 4)
.
.IP "\(bu" 4
-Format: \fB#{HEX}{6}\fR
+Format: \fB#{HEX}{3}\fR (rgb)
.
.IP "\(bu" 4
-Format: \fB#{HEX}{8}\fR
+Format: \fB#{HEX}{4}\fR (rgba)
.
.IP "\(bu" 4
-Format: \fBrgb({INTEGER},{INTEGER},{INTEGER})\fR
+Format: \fB#{HEX}{6}\fR (rrggbb)
.
.IP "\(bu" 4
-Format: \fBrgba({INTEGER},{INTEGER},{INTEGER}, {REAL})\fR
+Format: \fB#{HEX}{8}\fR (rrggbbaa)
+.
+.IP "\(bu" 4
+Format: \fBrgb[a]({INTEGER},{INTEGER},{INTEGER}[, {PERCENTAGE}])\fR
+.
+.IP "\(bu" 4
+Format: \fBrgb[a]({INTEGER}%,{INTEGER}%,{INTEGER}%[, {PERCENTAGE}])\fR
+.
+.IP "\(bu" 4
+Format: \fBhsl[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [{PERCENTAGE}])\fR
+.
+.IP "\(bu" 4
+Format: \fBhwb[a]( {ANGLE}, {PERCENTAGE}, {PERCENTAGE} [{PERCENTAGE}])\fR
+.
+.IP "\(bu" 4
+Format: \fBcmyk( {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE}, {PERCENTAGE} [, {PERCENTAGE} ])\fR
+.
+.IP "\(bu" 4
+Format: \fB{named\-color} [ / {PERCENTAGE} ]\fR
.
.IP "" 0
.
.P
-Where \'{HEX}\' is a hexidecimal number (\'0\-9a\-f\')\. The \'{INTEGER}\' value can be between 0 and 255, the \'{Real}\' value between 0\.0 and 1\.0\.
+The in CSS 4 proposed white\-space format is also supported\.
.
.P
-The first formats specify the color as RRGGBB (R = red, G = green, B = Blue), the second adds an alpha (A) channel: AARRGGBB\.
+The different values are:
+.
+.IP "\(bu" 4
+\fB{HEX}\fR is a hexidecimal number (\'0\-9a\-f\' case insensitive)\.
+.
+.IP "\(bu" 4
+\fB{INTEGER}\fR value can be between 0 and 255 or 0\-100 when representing percentage\.
+.
+.IP "\(bu" 4
+\fB{ANGLE}\fR Angle on the color wheel, can be in \fBdeg\fR, \fBrad\fR, \fBgrad\fR or \fBturn\fR\. When no unit is specified, degrees is assumed\.
+.
+.IP "\(bu" 4
+\fB{PERCENTAGE}\fR Can be between 0\-1\.0, or 0%\-100%
+.
+.IP "\(bu" 4
+\fB{named\-color}\fR Is one of the following colors:
+.
+.IP
+AliceBlue, AntiqueWhite, Aqua, Aquamarine, Azure, Beige, Bisque, Black, BlanchedAlmond, Blue, BlueViolet, Brown, BurlyWood, CadetBlue, Chartreuse, Chocolate, Coral, CornflowerBlue, Cornsilk, Crimson, Cyan, DarkBlue, DarkCyan, DarkGoldenRod, DarkGray, DarkGrey, DarkGreen, DarkKhaki, DarkMagenta, DarkOliveGreen, DarkOrange, DarkOrchid, DarkRed, DarkSalmon, DarkSeaGreen, DarkSlateBlue, DarkSlateGray, DarkSlateGrey, DarkTurquoise, DarkViolet, DeepPink, DeepSkyBlue, DimGray, DimGrey, DodgerBlue, FireBrick, FloralWhite, ForestGreen, Fuchsia, Gainsboro, GhostWhite, Gold, GoldenRod, Gray, Grey, Green, GreenYellow, HoneyDew, HotPink, IndianRed, Indigo, Ivory, Khaki, Lavender, LavenderBlush, LawnGreen, LemonChiffon, LightBlue, LightCoral, LightCyan, LightGoldenRodYellow, LightGray, LightGrey, LightGreen, LightPink, LightSalmon, LightSeaGreen, LightSkyBlue, LightSlateGray, LightSlateGrey, LightSteelBlue, LightYellow, Lime, LimeGreen, Linen, Magenta, Maroon, MediumAquaMarine, MediumBlue, MediumOrchid, MediumPurple, MediumSeaGreen, MediumSlateBlue, MediumSpringGreen, MediumTurquoise, MediumVioletRed, MidnightBlue, MintCream, MistyRose, Moccasin, NavajoWhite, Navy, OldLace, Olive, OliveDrab, Orange, OrangeRed, Orchid, PaleGoldenRod, PaleGreen, PaleTurquoise, PaleVioletRed, PapayaWhip, PeachPuff, Peru, Pink, Plum, PowderBlue, Purple, RebeccaPurple, Red, RosyBrown, RoyalBlue, SaddleBrown, Salmon, SandyBrown, SeaGreen, SeaShell, Sienna, Silver, SkyBlue, SlateBlue, SlateGray, SlateGrey, Snow, SpringGreen, SteelBlue, Tan, Teal, Thistle, Tomato, Turquoise, Violet, Wheat, White, WhiteSmoke, Yellow, YellowGreen
+.
+.IP "" 0
.
.P
For example:
@@ -390,6 +429,7 @@ For example:
background: #FF0000;
foreground: rgba(0,0,1, 0\.5);
+text: SeaGreen;
.
.fi
.
@@ -398,12 +438,29 @@ foreground: rgba(0,0,1, 0\.5);
.SH "Text style"
.
.IP "\(bu" 4
-Format: \fB(bold|italic|underline|none)\fR
+Format: \fB(bold|italic|underline|strikethrough|none)\fR
.
.IP "" 0
.
.P
-Text style indicates how the text should be displayed\. None indicates no style should be applied\.
+Text style indicates how the highlighted text is emphasised\. None indicates no emphasis should be applied\.
+.
+.IP "\(bu" 4
+\fBbold\fR: make the text thicker then the surrounding text\.
+.
+.IP "\(bu" 4
+\fBitalic\fR: put the highlighted text in script type (slanted)\.
+.
+.IP "\(bu" 4
+\fBunderline\fR: put a line under the highlighted text\.
+.
+.IP "\(bu" 4
+\fBstrikethrough\fR: put a line through the highlighted text\.
+.
+.IP "\(bu" 4
+\fBsmall caps\fR: emphasise the text using capitalization\.
+.
+.IP "" 0
.
.SH "Line style"
.