<?xml version="1.0"?>\r
-<Border BorderWidth="1" BorderColor="LightGray" Margin="0">\r
+<Border BorderWidth="1" BorderColor="White" Margin="0" CornerRadius="20">\r
<VerticalStack Height="0" Width="0" Margin="0">\r
- <Border BorderWidth="1" BorderColor="LightGray" Height="-1" Width="0" Background="BlueCrayola">\r
+ <Border BorderWidth="1" BorderColor="White" Height="-1" Width="0" Background="0,1;0,5;1,0;0,5">\r
<HorizontalStack Name="hs" Margin="1" Spacing="1" Height="-1" Width="0" Focusable="false" >\r
+ <GraphicObject Width="5" Height="0"/>\r
<Image Name="Image" Margin="1" Width="12" Height="12" Path="#go.Images.Icons.tetra.png"/>\r
- <Label Width="0" Name="Title" Margin="1" />\r
- <Image Focusable="true" Name="Image" Margin="1" Width="12" Height="12" Path="#go.Images.Icons.exit.svg"\r
- MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}" MouseClick="butQuitPress"/>\r
+ <Label Foreground="White" Width="0" Name="Title" Margin="1" TextAlignment="Center" />\r
+ <Border CornerRadius="6" BorderWidth="1" Margin="0" BorderColor="Transparent" Height="12" Width="12"\r
+ MouseEnter="{BorderColor=White}" MouseLeave="{BorderColor=Transparent}">\r
+ <Image Focusable="true" Name="Image" Margin="0" Width="0" Height="0" Path="#go.Images.Icons.exit2.svg"\r
+ MouseClick="butQuitPress"/>\r
+ </Border>\r
+ <GraphicObject Width="5" Height="0"/>\r
</HorizontalStack>\r
</Border>\r
<Container Name="Content" Margin="0" Width="0" Height="0"/>\r
void butQuitPress (object sender, MouseButtonEventArgs e)
{
- TopContainer.DeleteWidget (this);
+ ILayoutable parent = (sender as GraphicObject).Parent;
+ while(!(parent is Window))
+ parent = parent.Parent;
+ TopContainer.DeleteWidget (parent as GraphicObject);
}