|
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | 6 | xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" |
7 | 7 | mc:Ignorable="d" |
8 | | - Title="iTunesRichPresence" Height="500" Width="450" ResizeMode="CanMinimize" ShowTitleBar="True" StateChanged="MetroWindow_StateChanged" Closing="MetroWindow_Closing"> |
| 8 | + Title="iTunesRichPresence" Height="500" Width="450" ResizeMode="CanMinimize" ShowTitleBar="True" StateChanged="MetroWindow_StateChanged" Closing="MetroWindow_Closing" RightWindowCommandsOverlayBehavior="HiddenTitleBar"> |
9 | 9 | <Grid> |
10 | | - <CheckBox x:Name="RunOnStartupCheckBox" Content="Run on startup" HorizontalAlignment="Left" Margin="10,443,0,0" VerticalAlignment="Top" Click="RunOnStartupCheckBox_OnClick"/> |
11 | 10 | <Label Content="Playing status" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/> |
12 | 11 | <TextBox x:Name="PlayingTopLineFormatTextBox" HorizontalAlignment="Left" Height="23" Margin="10,35,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="424" TextChanged="PlayingTopLineFormatTextBox_TextChanged" GotFocus="TextBox_GotFocus"/> |
13 | 12 | <TextBox x:Name="PlayingBottomLineFormatTextBox" HorizontalAlignment="Left" Height="23" Margin="10,66,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="424" TextChanged="PlayingBottomLineFormatTextBox_TextChanged" GotFocus="TextBox_GotFocus"/> |
|
33 | 32 | <Setter Property="Margin" Value="5,5,5,5" /> |
34 | 33 | </Style> |
35 | 34 | </Grid.Resources> |
36 | | - <Button x:Name="TrackButton" Content="Track" Click="TrackButton_Click" FontWeight="Normal" Grid.Column="0" Grid.Row="0"/> |
37 | | - <Button x:Name="ArtistButton" Content="Artist" Click="ArtistButton_Click" FontWeight="Normal" Grid.Column="1" Grid.Row="0"/> |
38 | | - <Button x:Name="PlaylistTypeButton" Content="Playlist type" Click="PlaylistTypeButton_Click" FontWeight="Normal" Grid.Column="0" Grid.Row="1"/> |
39 | | - <Button x:Name="PlaylistNameButton" Content="Playlist name" Click="PlaylistNameButton_Click" FontWeight="Normal" Grid.Column="1" Grid.Row="1"/> |
40 | | - <Button x:Name="AlbumButton" Content="Album" Click="AlbumButton_OnClick" FontWeight="Normal" Grid.Column="0" Grid.Row="2"/> |
| 35 | + <Button x:Name="TrackButton" Content="Track" Click="TrackButton_Click" Grid.Column="0" Grid.Row="0"/> |
| 36 | + <Button x:Name="ArtistButton" Content="Artist" Click="ArtistButton_Click" Grid.Column="1" Grid.Row="0"/> |
| 37 | + <Button x:Name="PlaylistTypeButton" Content="Playlist type" Click="PlaylistTypeButton_Click" Grid.Column="0" Grid.Row="1"/> |
| 38 | + <Button x:Name="PlaylistNameButton" Content="Playlist name" Click="PlaylistNameButton_Click" Grid.Column="1" Grid.Row="1"/> |
| 39 | + <Button x:Name="AlbumButton" Content="Album" Click="AlbumButton_OnClick" Grid.Column="0" Grid.Row="2"/> |
41 | 40 | </Grid> |
42 | 41 | </GroupBox> |
43 | | - <CheckBox x:Name="PlaybackDurationCheckBox" Content="Display playback duration" HorizontalAlignment="Left" Margin="117,443,0,0" VerticalAlignment="Top" Click="PlaybackDurationCheckBox_Click"/> |
| 42 | + <CheckBox x:Name="PlaybackDurationCheckBox" Content="Display playback duration" HorizontalAlignment="Left" Margin="12,443,0,0" VerticalAlignment="Top" Click="PlaybackDurationCheckBox_Click"/> |
44 | 43 | </Grid> |
45 | 44 | <controls:MetroWindow.RightWindowCommands> |
46 | 45 | <controls:WindowCommands> |
47 | 46 | <Button Name="UpdateButton" Content="new version available!" Click="UpdateButton_OnClick" Visibility="Hidden"/> |
| 47 | + <Button Name="SettingsButton" Content="settings" Click="SettingsButton_OnClick"/> |
48 | 48 | <Button Name="AboutButton" Content="about" Click="AboutButton_OnClick"/> |
49 | 49 | </controls:WindowCommands> |
50 | 50 | </controls:MetroWindow.RightWindowCommands> |
| 51 | + <controls:MetroWindow.Flyouts> |
| 52 | + <controls:FlyoutsControl> |
| 53 | + <controls:Flyout Name="SettingsFlyout" Header="Settings" Position="Right" Width="450" Theme="Light"> |
| 54 | + <Grid Margin="20,20,20,20" VerticalAlignment="Top"> |
| 55 | + <Grid.RowDefinitions> |
| 56 | + <RowDefinition/> |
| 57 | + <RowDefinition/> |
| 58 | + </Grid.RowDefinitions> |
| 59 | + <CheckBox x:Name="RunOnStartupCheckBox" Content="Run on startup" HorizontalAlignment="Left" Click="RunOnStartupCheckBox_OnClick" Grid.Row="0" Margin="0,0,0,15"/> |
| 60 | + <Grid Grid.Row="1" Margin="0,0,0,15"> |
| 61 | + <Grid.ColumnDefinitions> |
| 62 | + <ColumnDefinition Width="1*"/> |
| 63 | + <ColumnDefinition Width="3*"/> |
| 64 | + </Grid.ColumnDefinitions> |
| 65 | + <Label Content="Accent colour:" Grid.Column="0"/> |
| 66 | + <ComboBox Name="ThemeComboBox" SelectionChanged="ThemeComboBox_OnSelectionChanged" Grid.Column="1"/> |
| 67 | + </Grid> |
| 68 | + |
| 69 | + </Grid> |
| 70 | + </controls:Flyout> |
| 71 | + </controls:FlyoutsControl> |
| 72 | + </controls:MetroWindow.Flyouts> |
51 | 73 |
|
52 | 74 | </controls:MetroWindow> |
53 | 75 |
|
0 commit comments