You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -38,10 +42,14 @@ public class AvizoClient : GLib.Application
38
42
private static double _y_offset = 0.75;
39
43
private static int _padding = 24;
40
44
private static int _border_radius = 16;
45
+
private static int _border_width = 1;
41
46
private static int _block_height = 10;
42
47
private static int _block_spacing = 2;
43
48
private static int _block_count = 20;
49
+
private static double _fade_in = 0.2;
50
+
private static double _fade_out = 0.5;
44
51
private static string _background = "";
52
+
private static string _border_color = "";
45
53
private static string _bar_fg_color = "";
46
54
private static string _bar_bg_color = "";
47
55
@@ -60,10 +68,14 @@ public class AvizoClient : GLib.Application
60
68
{ "y-offset", 0, 0, OptionArg.DOUBLE, ref _y_offset, "Sets relative offset of the notification to the top of the screen, allowed values range from 0 (top) to 1.0 (bottom)", "DOUBLE" },
61
69
{ "padding", 0, 0, OptionArg.INT, ref _padding, "Sets the inner padding of the notification", "INT" },
62
70
{ "border-radius", 0, 0, OptionArg.INT, ref _border_radius, "Sets the border radius of the notification in px", "INT" },
71
+
{ "border-width", 0, 0, OptionArg.INT, ref _border_width, "Sets the border width of the notification in px", "INT" },
63
72
{ "block-height", 0, 0, OptionArg.INT, ref _block_height, "Sets the block height of the progress indicator", "INT" },
64
73
{ "block-spacing", 0, 0, OptionArg.INT, ref _block_spacing, "Sets the spacing between blocks in the progress indicator", "INT" },
65
74
{ "block-count", 0, 0, OptionArg.INT, ref _block_count, "Sets the amount of blocks in the progress indicator", "INT" },
75
+
{ "fade-in", 0, 0, OptionArg.DOUBLE, ref _fade_in, "Sets the fade in animation duration in seconds", "DOUBLE" },
76
+
{ "fade-out", 0, 0, OptionArg.DOUBLE, ref _fade_out, "Sets the fade out animation duration in seconds", "DOUBLE" },
66
77
{ "background", 0, 0, OptionArg.STRING, ref _background, "Sets the color of the notification background in format rgba([0, 255], [0, 255], [0, 255], [0, 1])", "STRING" },
78
+
{ "border-color", 0, 0, OptionArg.STRING, ref _border_color, "Sets the color of the notification border in format rgba([0, 255], [0, 255], [0, 255], [0, 1])", "STRING" },
67
79
{ "foreground", 0, 0, OptionArg.STRING, ref _bar_fg_color, "Deprecated alias for --bar-fg-color", "STRING" },
68
80
{ "bar-fg-color", 0, 0, OptionArg.STRING, ref _bar_fg_color, "Sets the color of the filled bar blocks in format rgba([0, 255], [0, 255], [0, 255], [0, 1])", "STRING" },
69
81
{ "bar-bg-color", 0, 0, OptionArg.STRING, ref _bar_bg_color, "Sets the color of the unfilled bar blocks in format rgba([0, 255], [0, 255], [0, 255], [0, 1])", "STRING" },
@@ -159,10 +171,14 @@ public class AvizoClient : GLib.Application
159
171
_service.padding = _padding;
160
172
_service.y_offset = _y_offset;
161
173
_service.border_radius = _border_radius;
174
+
_service.border_width = _border_width;
162
175
_service.block_height = _block_height;
163
176
_service.block_spacing = _block_spacing;
164
177
_service.block_count = _block_count;
165
178
179
+
_service.fade_in = _fade_in;
180
+
_service.fade_out = _fade_out;
181
+
166
182
if (_background !="")
167
183
{
168
184
var color = parse_rgba(_background);
@@ -178,6 +194,11 @@ public class AvizoClient : GLib.Application
0 commit comments