@@ -32,33 +32,41 @@ const `slide`
3232
3333## ` width* `
3434
35- ** \* Thickness\* ** of the widget , from screen edge to the screen center.
35+ ** \* Thickness\* ** of the button , from screen edge to the screen center.
3636
3737Support relative value, ** _ but don't recommend using relative value for this property_ ** .
3838
39+ _ Type: ` int | string ` _
40+
3941## ` height* `
4042
41- Length of the widget .
43+ Length of the button .
4244
43- Support relative value, ** _ but don't recommend using relative value for this property_ ** .
45+ Support relative value.
46+
47+ _ Type: ` int | string ` _
4448
4549## ` frame_rate `
4650
4751Frame rate per second, won't hurt if over screen refresh rate.
4852
49- Default: ` 60 `
53+ _ Type: ` int ` _
54+ _ Default: ` 60 ` _
5055
5156## ` transition_duration `
5257
53- Time cost of showing the widget from the edge. millisecond.
58+ Time cost of showing the widget from the edge.
59+ Millisecond.
5460
55- Default: ` 100 `
61+ _ Type: ` int ` _
62+ _ Default: ` 100 ` _
5663
5764## ` extra_trigger_size `
5865
5966Extra mouse event input region of the widget, if ` 0 ` then the widget won't be shown by mouse hover.
6067
61- Default: ` 5 `
68+ _ Type: ` int | string ` _
69+ _ Default: ` 5 ` _
6270
6371## ` event_map `
6472
@@ -74,85 +82,108 @@ Default mouse keys:
7482- ` 3 ` - Right button
7583- ...others you need to test on your self by passing ` --mouse-debug ` : ` way-edges daemon --mouse-debug `
7684
85+ _ Type: ` [[int, string]...] ` _
86+ _ Default: ` [] ` _
87+
7788## ` on_change `
7889
79- Command to execute, replace '{progress}' with the progress from 0-1.
90+ Command to execute, replace '{progress}' with the progress from 0-1.
91+ Example: ` notify-send {progress} `
8092
81- Default: empty string
93+ _ Type: ` null | string ` _
94+ _ Default: ` null ` _
8295
8396## ` draggable `
8497
8598Is progress in slide changeable by mouse left click drag.
8699
87- Default: ` true `
100+ _ Type: ` bool ` _
101+ _ Default: ` true ` _
88102
89103## ` update_with_interval_ms `
90104
91105Array of tuples. each tuple contains ` millisecond ` and ` shell command ` :
92- ` [<millisecond>, <shell_command>] `
106+ ` [<millisecond>, <shell_command>] `
107+ Example: ` [1000, \"echo 0.2333\"] `
93108
94109For ` shell command ` , the returned value must be a number within ` [0, 1] ` .
95110
96- Example: ` [1000, \"echo 0.2333\"] `
111+ _ Type: ` [[int, string]...] ` _
112+ _ Default: ` [] ` _
97113
98114## ` bg_color `
99115
100- Color of the background of widget, support: ` #rgb ` / ` #rrggbb ` / ` #rrrgggbbb ` / ` rgb(r, g, b) ` / ` rgba(r, g, b, a) ` .. .
116+ Color of the background of widget.
101117
118+ Support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
102119For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
103120
104- Default: ` #808080 `
121+ _ Type: ` string ` _
122+ _ Default: ` #808080 ` _
105123
106124## ` fg_color `
107125
108- Color of the foreground of widget, support: ` #rgb ` / ` #rrggbb ` / ` #rrrgggbbb ` / ` rgb(r, g, b) ` / ` rgba(r, g, b, a) ` .. .
126+ Color of the foreground of widget.
109127
128+ Support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
110129For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
111130
112- Default: ` #FFB847 `
131+ _ Type: ` string ` _
132+ _ Default: ` #FFB847 ` _
113133
114134## ` border_color `
115135
116- Color of the border of widget, support: ` #rgb ` / ` #rrggbb ` / ` #rrrgggbbb ` / ` rgb(r, g, b) ` / ` rgba(r, g, b, a) ` .. .
136+ Color of the border of widget.
117137
138+ Support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
118139For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
119140
120- Default: ` #646464 `
141+ _ Type: ` string ` _
142+ _ Default: ` #646464 ` _
121143
122144## ` text_color `
123145
124- Color of the text of widget, support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
146+ Color of the text of widget.
147+
148+ For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
125149
150+ Support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
126151For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
127152
128- Default: ` #000000 `
153+ _ Type: ` string ` _
154+ _ Default: ` #000000 ` _
129155
130156## ` preview_size `
131157
132158How much area should the widget reveal when hidden
133159
134- Default: ` 3 `
160+ _ Type: ` int ` _
161+ _ Default: ` 3 ` _
135162
136163## ` progress_direction `
137164
138165Progress bar: ` Forward/Backward `
139166
140- Default: ` Forward `
167+ _ Type: ` string ` _
168+ _ Default: ` Forward ` _
141169
142170## ` is_text_position_start `
143171
144172Which side percentage info at, start or end of the widget
145173
146- Default: ` true `
174+ _ Type: ` bool ` _
175+ _ Default: ` true ` _
147176
148177## ` obtuse_angle `
149178
150179The 2 obtuse angle in trapezoid, set it within ` [90, 180) ` , when ` 90 ` , you'll get a square.
151180
152- Default: ` 120 `
181+ _ Type: ` int ` _
182+ _ Default: ` 120 ` _
153183
154184## ` radius `
155185
156186Radius of the rounded corners for 2 obtuse angle in trapezoid.
157187
158- Default: ` 20 `
188+ _ Type: ` int ` _
189+ _ Default: ` 20 ` _
0 commit comments