@@ -32,33 +32,41 @@ const `slide`
32
32
33
33
## ` width* `
34
34
35
- ** \* Thickness\* ** of the widget , from screen edge to the screen center.
35
+ ** \* Thickness\* ** of the button , from screen edge to the screen center.
36
36
37
37
Support relative value, ** _ but don't recommend using relative value for this property_ ** .
38
38
39
+ _ Type: ` int | string ` _
40
+
39
41
## ` height* `
40
42
41
- Length of the widget .
43
+ Length of the button .
42
44
43
- Support relative value, ** _ but don't recommend using relative value for this property_ ** .
45
+ Support relative value.
46
+
47
+ _ Type: ` int | string ` _
44
48
45
49
## ` frame_rate `
46
50
47
51
Frame rate per second, won't hurt if over screen refresh rate.
48
52
49
- Default: ` 60 `
53
+ _ Type: ` int ` _
54
+ _ Default: ` 60 ` _
50
55
51
56
## ` transition_duration `
52
57
53
- Time cost of showing the widget from the edge. millisecond.
58
+ Time cost of showing the widget from the edge.
59
+ Millisecond.
54
60
55
- Default: ` 100 `
61
+ _ Type: ` int ` _
62
+ _ Default: ` 100 ` _
56
63
57
64
## ` extra_trigger_size `
58
65
59
66
Extra mouse event input region of the widget, if ` 0 ` then the widget won't be shown by mouse hover.
60
67
61
- Default: ` 5 `
68
+ _ Type: ` int | string ` _
69
+ _ Default: ` 5 ` _
62
70
63
71
## ` event_map `
64
72
@@ -74,85 +82,108 @@ Default mouse keys:
74
82
- ` 3 ` - Right button
75
83
- ...others you need to test on your self by passing ` --mouse-debug ` : ` way-edges daemon --mouse-debug `
76
84
85
+ _ Type: ` [[int, string]...] ` _
86
+ _ Default: ` [] ` _
87
+
77
88
## ` on_change `
78
89
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} `
80
92
81
- Default: empty string
93
+ _ Type: ` null | string ` _
94
+ _ Default: ` null ` _
82
95
83
96
## ` draggable `
84
97
85
98
Is progress in slide changeable by mouse left click drag.
86
99
87
- Default: ` true `
100
+ _ Type: ` bool ` _
101
+ _ Default: ` true ` _
88
102
89
103
## ` update_with_interval_ms `
90
104
91
105
Array of tuples. each tuple contains ` millisecond ` and ` shell command ` :
92
- ` [<millisecond>, <shell_command>] `
106
+ ` [<millisecond>, <shell_command>] `
107
+ Example: ` [1000, \"echo 0.2333\"] `
93
108
94
109
For ` shell command ` , the returned value must be a number within ` [0, 1] ` .
95
110
96
- Example: ` [1000, \"echo 0.2333\"] `
111
+ _ Type: ` [[int, string]...] ` _
112
+ _ Default: ` [] ` _
97
113
98
114
## ` bg_color `
99
115
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.
101
117
118
+ Support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
102
119
For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
103
120
104
- Default: ` #808080 `
121
+ _ Type: ` string ` _
122
+ _ Default: ` #808080 ` _
105
123
106
124
## ` fg_color `
107
125
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.
109
127
128
+ Support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
110
129
For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
111
130
112
- Default: ` #FFB847 `
131
+ _ Type: ` string ` _
132
+ _ Default: ` #FFB847 ` _
113
133
114
134
## ` border_color `
115
135
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.
117
137
138
+ Support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
118
139
For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
119
140
120
- Default: ` #646464 `
141
+ _ Type: ` string ` _
142
+ _ Default: ` #646464 ` _
121
143
122
144
## ` text_color `
123
145
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 )
125
149
150
+ Support: ` #rgb ` /` #rrggbb ` /` #rrrgggbbb ` /` rgb(r, g, b) ` /` rgba(r, g, b, a) ` ...
126
151
For full info, check [ RGBA] ( https://gtk-rs.org/gtk4-rs/stable/latest/docs/src/gdk4/rgba.rs.html#205 )
127
152
128
- Default: ` #000000 `
153
+ _ Type: ` string ` _
154
+ _ Default: ` #000000 ` _
129
155
130
156
## ` preview_size `
131
157
132
158
How much area should the widget reveal when hidden
133
159
134
- Default: ` 3 `
160
+ _ Type: ` int ` _
161
+ _ Default: ` 3 ` _
135
162
136
163
## ` progress_direction `
137
164
138
165
Progress bar: ` Forward/Backward `
139
166
140
- Default: ` Forward `
167
+ _ Type: ` string ` _
168
+ _ Default: ` Forward ` _
141
169
142
170
## ` is_text_position_start `
143
171
144
172
Which side percentage info at, start or end of the widget
145
173
146
- Default: ` true `
174
+ _ Type: ` bool ` _
175
+ _ Default: ` true ` _
147
176
148
177
## ` obtuse_angle `
149
178
150
179
The 2 obtuse angle in trapezoid, set it within ` [90, 180) ` , when ` 90 ` , you'll get a square.
151
180
152
- Default: ` 120 `
181
+ _ Type: ` int ` _
182
+ _ Default: ` 120 ` _
153
183
154
184
## ` radius `
155
185
156
186
Radius of the rounded corners for 2 obtuse angle in trapezoid.
157
187
158
- Default: ` 20 `
188
+ _ Type: ` int ` _
189
+ _ Default: ` 20 ` _
0 commit comments