Skip to content

Commit 7ad609d

Browse files
b1.1.0
- Webhook messaging - Webhook massive messaging - Webhook deleting - Local avatar system - Avatar changing - Updater major update - Visibility fixes
1 parent 2456939 commit 7ad609d

4 files changed

Lines changed: 497 additions & 136 deletions

File tree

MainWindow.xaml

Lines changed: 187 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<StackPanel x:Name="side_panel" Margin="0,0,1060,0" Background="#FF131313">
1818
<Ellipse Height="50" Stroke="Black" StrokeThickness="0" Width="50" HorizontalAlignment="Center" Margin="0,20,0,20">
1919
<Ellipse.Fill>
20-
<ImageBrush x:Name="user_avatar" ImageSource="aiot.png"/>
20+
<ImageBrush x:Name="user_avatar" ImageSource="/defAvatar.png"/>
2121
</Ellipse.Fill>
2222
</Ellipse>
2323
<Button x:Name="dashboard_button" Height="50" FontFamily="Inter" FontWeight="Normal" FontSize="14" Cursor="Hand" Click="dashboard_button_Click" Width="48" HorizontalAlignment="Center">
@@ -76,7 +76,35 @@
7676
<Image x:Name="builder_image" Height="28" Width="28" Source="{StaticResource dToolDrawingImageEEE}"/>
7777
</Border>
7878
</Button>
79-
<Button x:Name="settings_button" Height="50" FontFamily="Inter" FontWeight="Normal" FontSize="14" Cursor="Hand" Width="48" VerticalAlignment="Bottom" Margin="0,380,0,0" Click="settings_button_Click">
79+
<Button x:Name="webhooks_button" Height="50" FontFamily="Inter" FontWeight="Normal" FontSize="14" Cursor="Hand" Click="webhooks_button_Click" Width="48" Margin="0,10,0,0">
80+
<Button.Resources>
81+
<Style TargetType="{x:Type Border}">
82+
<Setter Property="CornerRadius" Value="2"/>
83+
</Style>
84+
</Button.Resources>
85+
<Button.Style>
86+
<Style TargetType="{x:Type Button}">
87+
<Setter Property="Background" Value="Transparent"/>
88+
<Setter Property="Foreground" Value="White"/>
89+
<Setter Property="Template">
90+
<Setter.Value>
91+
<ControlTemplate TargetType="{x:Type Button}">
92+
<Border Background="{TemplateBinding Background}">
93+
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
94+
</Border>
95+
</ControlTemplate>
96+
</Setter.Value>
97+
</Setter>
98+
</Style>
99+
</Button.Style>
100+
<Border BorderThickness="0">
101+
<Border.Effect>
102+
<DropShadowEffect x:Name="webhooks_shadow" BlurRadius="40" Direction="-90" Color="#FF05FFAA" RenderingBias="Quality" ShadowDepth="0"/>
103+
</Border.Effect>
104+
<Image x:Name="webhooks_image" Height="28" Width="28" Source="{StaticResource webhook_ncolored}"/>
105+
</Border>
106+
</Button>
107+
<Button x:Name="settings_button" Height="50" FontFamily="Inter" FontWeight="Normal" FontSize="14" Cursor="Hand" Width="48" VerticalAlignment="Bottom" Margin="0,320,0,0" Click="settings_button_Click">
80108
<Button.Resources>
81109
<Style TargetType="{x:Type Border}">
82110
<Setter Property="CornerRadius" Value="2"/>
@@ -306,6 +334,158 @@
306334
</Button.Style>
307335
</Button>
308336
</Grid>
337+
<Grid x:Name="webhooks_site" Margin="110,28,10,28" d:IsHidden="True">
338+
<Button x:Name="webhook_button2" Content="C H E C K" BorderThickness="0" Margin="280,131,280,448" Cursor="Hand" FontFamily="Inter" Click="webhook_button2_Click">
339+
<Button.Resources>
340+
<Style TargetType="{x:Type Border}">
341+
<Setter Property="CornerRadius" Value="5"/>
342+
</Style>
343+
</Button.Resources>
344+
<Button.Style>
345+
<Style TargetType="{x:Type Button}">
346+
<Setter Property="Background" Value="#FF05FFAA"/>
347+
<Setter Property="Template">
348+
<Setter.Value>
349+
<ControlTemplate TargetType="{x:Type Button}">
350+
<Border Background="{TemplateBinding Background}">
351+
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Bottom"/>
352+
</Border>
353+
</ControlTemplate>
354+
</Setter.Value>
355+
</Setter>
356+
<Style.Triggers>
357+
<Trigger Property="IsMouseOver" Value="True">
358+
<Setter Property="Background" Value="#FF00AB71"/>
359+
</Trigger>
360+
</Style.Triggers>
361+
</Style>
362+
</Button.Style>
363+
</Button>
364+
<Border x:Name="webhook_back2" BorderThickness="1" Margin="23,100,23,462" CornerRadius="5,5,5,5" Background="#FF131313">
365+
<TextBox x:Name="webhook_input2" TextWrapping="Wrap" Foreground="#FF05FFAA" CaretBrush="#FF05FFAA" SelectionBrush="#FF00AB71" FontFamily="Inter" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20,0,0,0" Width="978"/>
366+
</Border>
367+
<Label x:Name="webhooks_site_title" Content="Webhook" FontFamily="Inter" FontSize="28" HorizontalAlignment="Left" Margin="10,20,0,0" VerticalAlignment="Top" Foreground="#FF05FFAA" FontWeight="Bold"/>
368+
<Label x:Name="webhook_label2" Content="WEBHOOK URL" FontFamily="Inter" FontSize="16" Foreground="#FF2B2B2B" Margin="23,73,804,503" FontWeight="Heavy"/>
369+
<Button x:Name="delete_wb_button" Content="D E L E T E" BorderThickness="0" Margin="615,468,25,94" Cursor="Hand" FontFamily="Inter" FontSize="18" Click="webhook_delete">
370+
<Button.Resources>
371+
<Style TargetType="{x:Type Border}">
372+
<Setter Property="CornerRadius" Value="5"/>
373+
</Style>
374+
</Button.Resources>
375+
<Button.Style>
376+
<Style TargetType="{x:Type Button}">
377+
<Setter Property="Background" Value="#FF05FFAA"/>
378+
<Setter Property="Template">
379+
<Setter.Value>
380+
<ControlTemplate TargetType="{x:Type Button}">
381+
<Border Background="{TemplateBinding Background}">
382+
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
383+
</Border>
384+
</ControlTemplate>
385+
</Setter.Value>
386+
</Setter>
387+
<Style.Triggers>
388+
<Trigger Property="IsMouseOver" Value="True">
389+
<Setter Property="Background" Value="#FF00AB71"/>
390+
</Trigger>
391+
</Style.Triggers>
392+
</Style>
393+
</Button.Style>
394+
</Button>
395+
<Border x:Name="msg_title_back" BorderThickness="1" Margin="23,228,537,334" CornerRadius="5,5,5,5" Background="#FF131313">
396+
<TextBox x:Name="msg_title_input" TextWrapping="Wrap" Foreground="#FF05FFAA" CaretBrush="#FF05FFAA" SelectionBrush="#FF00AB71" FontFamily="Inter" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20,0,0,0" Width="460"/>
397+
</Border>
398+
<Label x:Name="msg_title_label" Content="MESSAGE TITLE" FontFamily="Inter" FontSize="16" Foreground="#FF2B2B2B" Margin="23,201,804,375" FontWeight="Heavy"/>
399+
<Border x:Name="msg_desc_back" BorderThickness="1" Margin="23,348,537,214" CornerRadius="5,5,5,5" Background="#FF131313">
400+
<TextBox x:Name="msg_desc_input" TextWrapping="Wrap" Foreground="#FF05FFAA" CaretBrush="#FF05FFAA" SelectionBrush="#FF00AB71" FontFamily="Inter" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20,0,0,0" Width="460"/>
401+
</Border>
402+
<Label x:Name="msg_desc_label" Content="MESSAGE DESCRIPTION" FontFamily="Inter" FontSize="16" Foreground="#FF2B2B2B" Margin="23,321,804,255" FontWeight="Heavy"/>
403+
<Border x:Name="msg_user_back" BorderThickness="1" Margin="23,468,537,94" CornerRadius="5,5,5,5" Background="#FF131313">
404+
<TextBox x:Name="msg_user_input" TextWrapping="Wrap" Foreground="#FF05FFAA" CaretBrush="#FF05FFAA" SelectionBrush="#FF00AB71" FontFamily="Inter" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20,0,0,0" Width="460"/>
405+
</Border>
406+
<Label x:Name="msg_user_label" Content="MESSAGE USERNAME" FontFamily="Inter" FontSize="16" Foreground="#FF2B2B2B" Margin="23,441,804,135" FontWeight="Heavy"/>
407+
<Button x:Name="send_wb_button" Content="S E N D" BorderThickness="0" Margin="615,348,25,214" Cursor="Hand" FontFamily="Inter" FontSize="18" Click="webhook_send_msg">
408+
<Button.Resources>
409+
<Style TargetType="{x:Type Border}">
410+
<Setter Property="CornerRadius" Value="5"/>
411+
</Style>
412+
</Button.Resources>
413+
<Button.Style>
414+
<Style TargetType="{x:Type Button}">
415+
<Setter Property="Background" Value="#FF05FFAA"/>
416+
<Setter Property="Template">
417+
<Setter.Value>
418+
<ControlTemplate TargetType="{x:Type Button}">
419+
<Border Background="{TemplateBinding Background}">
420+
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
421+
</Border>
422+
</ControlTemplate>
423+
</Setter.Value>
424+
</Setter>
425+
<Style.Triggers>
426+
<Trigger Property="IsMouseOver" Value="True">
427+
<Setter Property="Background" Value="#FF00AB71"/>
428+
</Trigger>
429+
</Style.Triggers>
430+
</Style>
431+
</Button.Style>
432+
</Button>
433+
<Button x:Name="start_wb_button" Content="S T A R T" BorderThickness="0" Margin="615,228,235,334" Cursor="Hand" FontFamily="Inter" FontSize="18" Click="webhook_send_massive_msg">
434+
<Button.Resources>
435+
<Style TargetType="{x:Type Border}">
436+
<Setter Property="CornerRadius" Value="5"/>
437+
</Style>
438+
</Button.Resources>
439+
<Button.Style>
440+
<Style TargetType="{x:Type Button}">
441+
<Setter Property="Background" Value="#FF05FFAA"/>
442+
<Setter Property="Template">
443+
<Setter.Value>
444+
<ControlTemplate TargetType="{x:Type Button}">
445+
<Border Background="{TemplateBinding Background}">
446+
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
447+
</Border>
448+
</ControlTemplate>
449+
</Setter.Value>
450+
</Setter>
451+
<Style.Triggers>
452+
<Trigger Property="IsMouseOver" Value="True">
453+
<Setter Property="Background" Value="#FF00AB71"/>
454+
</Trigger>
455+
</Style.Triggers>
456+
</Style>
457+
</Button.Style>
458+
</Button>
459+
<Button x:Name="stop_wb_button" Content="S T O P P E D" BorderThickness="0" Margin="825,228,25,334" Cursor="Hand" FontFamily="Inter" FontSize="18" Click="webhook_stop_massive_msg">
460+
<Button.Resources>
461+
<Style TargetType="{x:Type Border}">
462+
<Setter Property="CornerRadius" Value="5"/>
463+
</Style>
464+
</Button.Resources>
465+
<Button.Style>
466+
<Style TargetType="{x:Type Button}">
467+
<Setter Property="Background" Value="#FF05FFAA"/>
468+
<Setter Property="Template">
469+
<Setter.Value>
470+
<ControlTemplate TargetType="{x:Type Button}">
471+
<Border Background="{TemplateBinding Background}">
472+
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
473+
</Border>
474+
</ControlTemplate>
475+
</Setter.Value>
476+
</Setter>
477+
<Style.Triggers>
478+
<Trigger Property="IsMouseOver" Value="True">
479+
<Setter Property="Background" Value="#FF00AB71"/>
480+
</Trigger>
481+
</Style.Triggers>
482+
</Style>
483+
</Button.Style>
484+
</Button>
485+
<Label x:Name="mas_msg_title" Content="MASSIVE MESSAGE" FontFamily="Inter" FontSize="16" Foreground="#FF2B2B2B" Margin="615,200,212,376" FontWeight="Heavy"/>
486+
<Label x:Name="send_msg_title" Content="SEND MESSAGE" FontFamily="Inter" FontSize="16" Foreground="#FF2B2B2B" Margin="615,321,212,255" FontWeight="Heavy"/>
487+
<Label x:Name="delete_wh_title" Content="DELETE WEBHOOK" FontFamily="Inter" FontSize="16" Foreground="#FF2B2B2B" Margin="615,441,212,135" FontWeight="Heavy"/>
488+
</Grid>
309489
<Label x:Name="version_label" Content="b1.0.0 A4316134HFJ151264" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,40,0" FontFamily="Inter" FontStyle="Italic" FontWeight="Regular" Foreground="#FF1F1F1F"/>
310490
<Button x:Name="exit_button" Content="X" HorizontalAlignment="Right" Cursor="Hand" BorderThickness="1" BorderBrush="#FF131313" Foreground="#FF05FFAA" Height="20" VerticalAlignment="Top" Width="20" Margin="0,1,1,0" Click="exit_button_Click">
311491
<Button.Style>
@@ -328,5 +508,10 @@
328508
</Style>
329509
</Button.Style>
330510
</Button>
511+
<Ellipse x:Name="hover_elipse" Height="50" Stroke="Black" StrokeThickness="0" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="25,20,0,0" MouseEnter="hover_elipse_MouseEnter" MouseLeave="hover_elipse_MouseLeave" MouseLeftButtonDown="hover_elipse_MouseLeftButtonDown">
512+
<Ellipse.Fill>
513+
<ImageBrush x:Name="avatar_hover" ImageSource="avatarhover.png"/>
514+
</Ellipse.Fill>
515+
</Ellipse>
331516
</Grid>
332517
</Window>

0 commit comments

Comments
 (0)