From 993fd2563d6e84eb79da84ca70cd0b051b01a657 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 19 Feb 2017 19:09:02 +0100 Subject: [PATCH] Move gradients into backgrounds (doc) --- doc/manual.html | 31 +++++++++++++++++++++---------- doc/tint2.1 | 33 ++++++++++++++++++++++----------- doc/tint2.md | 33 ++++++++++++++++++++++----------- 3 files changed, 65 insertions(+), 32 deletions(-) diff --git a/doc/manual.html b/doc/manual.html index 01c9998..1973ba3 100644 --- a/doc/manual.html +++ b/doc/manual.html @@ -288,14 +288,13 @@ task_active_background_id = 2 systray_background_id = 0 clock_background_id = 0 -

Identifier 0 refers to a special background which is fully transparent, identifier 1 applies the first background defined in the config file etc.

Gradients

(Available since 0.13.0)

Most of the panel elements that accept backgrounds also allow specifying -one or more gradient layers that are drawn on top of the solid color -background.

First the user must define one or more gradients in the config file, -each starting with gradient = TYPE. These should be added -ideally after backgrounds but before all the other options.

Then gradients can be added by index to elements, using *_gradient_id = INDEX, -where * is an element name, for example panel, and INDEX is -the gradient index, starting from 1. The *_gradient_id option can be repeated -for the same element, which results in multiple gradients +

Identifier 0 refers to a special background which is fully transparent, identifier 1 applies the first background defined in the config file etc.

Gradients

(Available since 0.13.0)

Backgrounds also allow specifying one or more gradient layers +that are drawn on top of the solid color background.

First the user must define one or more gradients in the config file, +each starting with gradient = TYPE. These must be added before backgrounds.

Then gradients can be added by index to backgrounds, +using the gradient_id = INDEX, hover_gradient_id = INDEX and +pressed_gradient_id = INDEX, where INDEX is +the gradient index, starting from 1. The *gradient_id option can be repeated +for the same background, which results in multiple gradients being drawn on top of each other in the given order.

Simple gradients

These are gradients that vary from fixed control points (top-to-bottom, left-to-right or center-to-corners). The user must specify the start and end colors, and can optionally add extra color stops in between.

Vertical gradient, with color varying from the top edge to the bottom edge, two colors
gradient = vertical
@@ -407,9 +406,21 @@ gradient = horizontal
 start_color = #111111 100
 end_color = #222222 100
 
-[....]
+# Background 1: Active desktop name
+rounded = 2
+border_width = 1
+border_sides = TBLR
+background_color = #555555 10
+border_color = #ffffff 60
+background_color_hover = #555555 10
+border_color_hover = #ffffff 60
+background_color_pressed = #555555 10
+border_color_pressed = #ffffff 60
+gradient_id = 3
+hover_gradient_id = 4
+pressed_gradient_id = 2
 
-panel_gradient_id = 5
+[...]
 

Panel