-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
119 lines (87 loc) · 6.62 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<Window x:Class="Java_Bytecode_Toolkit.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Java_Bytecode_Toolkit"
mc:Ignorable="d"
Title="{DynamicResource AppName}" Height="450" Width="800"
Background="{DynamicResource BackgroundColor1}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollViewer Name="Toolbar" Grid.Row="0" Grid.Column="0" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto" Background="{DynamicResource BackgroundColor2}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<Menu Name="ToolbarMenu" Grid.Row="0" Grid.Column="0" FontWeight="SemiBold" Foreground="{DynamicResource ForegroundColor1}">
<MenuItem Padding="10 6" Header="File">
<MenuItem Name="OpenFileMenuItem" Header="Open a File...">
<MenuItem.Icon>
<Image Source="/Assets/file-icon.svg"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Name="HomeMenuItem" Header="Home"/>
<MenuItem Name="SettingsMenuItem" Header="Settings"/>
<MenuItem Name="AboutMenuItem" Header="About"/>
<MenuItem Name="HelpMenuItem" Header="Help"/>
<MenuItem Header="Change Theme">
<MenuItem Name="LightThemeMenuItem" Header="Light Theme" Icon="{DynamicResource LightThemeIcon}"/>
<MenuItem Name="DarkThemeMenuItem" Header="Dark Theme" Icon="{DynamicResource DarkThemeIcon}"/>
</MenuItem>
</Menu>
<DockPanel Grid.Row="0" Grid.Column="1" LastChildFill="False">
<Button Name="GithubButton" Background="{DynamicResource BackgroundColor2}" Style="{DynamicResource ConcealedButtonStyle}">
<Button.ToolTip>
Follow us on Github
</Button.ToolTip>
<Path DockPanel.Dock="Left" Margin="4" Stretch="Uniform" Fill="{DynamicResource ForegroundColor2}" Width="24" Height="24" Data="M17.791,46.836C18.502,46.53,19,45.823,19,45v-5.4c0-0.197,0.016-0.402,0.041-0.61C19.027,38.994,19.014,38.997,19,39 c0,0-3,0-3.6,0c-1.5,0-2.8-0.6-3.4-1.8c-0.7-1.3-1-3.5-2.8-4.7C8.9,32.3,9.1,32,9.7,32c0.6,0.1,1.9,0.9,2.7,2c0.9,1.1,1.8,2,3.4,2 c2.487,0,3.82-0.125,4.622-0.555C21.356,34.056,22.649,33,24,33v-0.025c-5.668-0.182-9.289-2.066-10.975-4.975 c-3.665,0.042-6.856,0.405-8.677,0.707c-0.058-0.327-0.108-0.656-0.151-0.987c1.797-0.296,4.843-0.647,8.345-0.714 c-0.112-0.276-0.209-0.559-0.291-0.849c-3.511-0.178-6.541-0.039-8.187,0.097c-0.02-0.332-0.047-0.663-0.051-0.999 c1.649-0.135,4.597-0.27,8.018-0.111c-0.079-0.5-0.13-1.011-0.13-1.543c0-1.7,0.6-3.5,1.7-5c-0.5-1.7-1.2-5.3,0.2-6.6 c2.7,0,4.6,1.3,5.5,2.1C21,13.4,22.9,13,25,13s4,0.4,5.6,1.1c0.9-0.8,2.8-2.1,5.5-2.1c1.5,1.4,0.7,5,0.2,6.6c1.1,1.5,1.7,3.2,1.6,5 c0,0.484-0.045,0.951-0.11,1.409c3.499-0.172,6.527-0.034,8.204,0.102c-0.002,0.337-0.033,0.666-0.051,0.999 c-1.671-0.138-4.775-0.28-8.359-0.089c-0.089,0.336-0.197,0.663-0.325,0.98c3.546,0.046,6.665,0.389,8.548,0.689 c-0.043,0.332-0.093,0.661-0.151,0.987c-1.912-0.306-5.171-0.664-8.879-0.682C35.112,30.873,31.557,32.75,26,32.969V33 c2.6,0,5,3.9,5,6.6V45c0,0.823,0.498,1.53,1.209,1.836C41.37,43.804,48,35.164,48,25C48,12.318,37.683,2,25,2S2,12.318,2,25 C2,35.164,8.63,43.804,17.791,46.836z">
</Path>
</Button>
</DockPanel>
</Grid>
</ScrollViewer>
<ContentPresenter Name="MainContentPresenter" Grid.Row="1" Grid.Column="0">
</ContentPresenter>
<Grid Name="OpenFileLoadingPopup" Visibility="Collapsed" Grid.Row="0" Grid.Column="0" Grid.RowSpan="100" Grid.ColumnSpan="100">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Rectangle Grid.Row="0" Grid.Column="0" Grid.RowSpan="100" Grid.ColumnSpan="100" Fill="Black" Opacity="0.5">
</Rectangle>
<Border Grid.Row="0" Grid.Column="0" MinWidth="200" MinHeight="100" BorderBrush="{DynamicResource ForegroundColor2}" BorderThickness="1" Background="{DynamicResource BackgroundColor2}" CornerRadius="4" HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="10"/>
<RowDefinition Height="*"/>
<RowDefinition Height="10"/>
<RowDefinition Height="*"/>
<RowDefinition Height="10"/>
<RowDefinition Height="*"/>
<RowDefinition Height="10"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Name="OpenFileLoadingPopupTextBlock" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="10" TextWrapping="Wrap">Opening file(s). Please wait...</TextBlock>
<local:Spinner x:Name="OpenFileLoadingPopupSpinner" Grid.Row="3" Grid.Column="0" IsEnabled="True" Angle="0" Width="24" Height="24" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Button Name="OpenFileLoadingPopupCancelButton" Grid.Row="5" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="16 8 16 8">Cancel</Button>
</Grid>
</Border>
</Grid>
</Grid>
</Window>