finished gui overhaul

This commit is contained in:
WeeXnes 2022-11-15 09:24:13 +01:00
parent 67a5085f9a
commit 623a8acdf7
4 changed files with 62 additions and 6 deletions

View file

@ -16,7 +16,7 @@ namespace WeeXnes.Core
public static string encryptionKey = "8zf5#RdyQ]$4x4_";
public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes");
public static string SettingsFileName = "settings.ini";
public static string version = "3.6.9";
public static string version = "3.7.0";
public static bool info_isRpcRunning = false;
public static bool info_RpcAutoStart;
public static string apiUrl = "https://api.github.com/repos/weexnes/weexnessuite/releases/latest";

View file

@ -162,9 +162,37 @@
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="0,0,50,0"
Background="#25272e"
Style="{StaticResource ModernMinimizeButton}"
Grid.Column="1"
Visibility="Hidden"/>
Visibility="Hidden"
Cursor="Hand">
<Button.Triggers>
<!-- Animate the button's Width property. -->
<EventTrigger RoutedEvent="Button.MouseEnter">
<BeginStoryboard>
<Storyboard>
<ColorAnimation
Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)"
To="#555555" Duration="0:0:00.1" AutoReverse="False"
/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="Button.MouseLeave">
<BeginStoryboard>
<Storyboard>
<ColorAnimation
Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)"
To="#25272e" Duration="0:0:00.1" AutoReverse="False"
/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Button>
<Button Width="50"
Height="23"
Name="CloseBtn"
@ -173,9 +201,37 @@
FontSize="11"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Background="#b82727"
Style="{StaticResource ModernCloseButton}"
Grid.Column="1"
Visibility="Hidden"/>
Visibility="Hidden"
Cursor="Hand">
<Button.Triggers>
<!-- Animate the button's Width property. -->
<EventTrigger RoutedEvent="Button.MouseEnter">
<BeginStoryboard>
<Storyboard>
<ColorAnimation
Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)"
To="#b85858" Duration="0:0:00.1" AutoReverse="False"
/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="Button.MouseLeave">
<BeginStoryboard>
<Storyboard>
<ColorAnimation
Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)"
To="#b82727" Duration="0:0:00.1" AutoReverse="False"
/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Button>
<DockPanel Grid.Column="1" Margin="0,5,5,5"
Height="23"
VerticalAlignment="Top"

View file

@ -7,7 +7,7 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border CornerRadius="0"
Background="#b82727">
Background="{TemplateBinding Property=Background}">
<Grid>
<Rectangle StrokeThickness="1"/>
<TextBlock Text="{TemplateBinding Property=Content}"
@ -33,7 +33,7 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border CornerRadius="0"
Background="#25272e">
Background="{TemplateBinding Property=Background}">
<Grid>
<Rectangle StrokeThickness="1"/>
<TextBlock Text="{TemplateBinding Property=Content}"

View file

@ -4,7 +4,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<Version>3.6.9</Version>
<Version>3.7.0</Version>
<ProjectGuid>{4B33CEE7-C74D-43B9-B99A-8B273D5195BC}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>WeeXnes</RootNamespace>