mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 10:51:52 -05:00
Add native menubar on mac n' cheese
This commit is contained in:
parent
c9a659248c
commit
da4dd3d76d
3 changed files with 36 additions and 9 deletions
Binary file not shown.
|
@ -38,6 +38,29 @@
|
|||
<vm:MainWindowViewModel/>
|
||||
</Design.DataContext>
|
||||
|
||||
<NativeMenu.Menu>
|
||||
<NativeMenu>
|
||||
<NativeMenuItem Header="File">
|
||||
<NativeMenu>
|
||||
<NativeMenuItem Header="Open..." Command="{Binding OpenTrackCommand}"/>
|
||||
<NativeMenuItemSeperator/>
|
||||
<NativeMenuItem Header="Import Tracks" Command="{Binding BrowseTracksCommand}"/>
|
||||
<NativeMenuItem Header="Import Folders" Command="{Binding BrowseFoldersCommand}"/>
|
||||
<NativeMenuItem Header="Import Playlist Files" Command="{Binding BrowsePlaylistFilesCommand}"/>
|
||||
</NativeMenu>
|
||||
</NativeMenuItem>
|
||||
<NativeMenuItem Header="Playback">
|
||||
<NativeMenu>
|
||||
<NativeMenuItem Header="What could go here!"/>
|
||||
</NativeMenu>
|
||||
</NativeMenuItem>
|
||||
<NativeMenuItem Header="About">
|
||||
<NativeMenu>
|
||||
<NativeMenuItem Header="About FRESHMusicPlayer" Command="{Binding AboutFMPCommand}"/>
|
||||
</NativeMenu>
|
||||
</NativeMenuItem>
|
||||
</NativeMenu>
|
||||
</NativeMenu.Menu>
|
||||
<Panel>
|
||||
<StackPanel Background="Transparent" Orientation="Horizontal" ZIndex="1" Height="50" Margin="0,0,10,0" VerticalAlignment="Top" HorizontalAlignment="Right">
|
||||
<Button Margin="0,5">
|
||||
|
@ -119,6 +142,9 @@
|
|||
</WrapPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
|
||||
|
||||
<TabControl DockPanel.Dock="Top" SelectedIndex="{Binding SelectedTab}">
|
||||
<TabItem Header="Tracks">
|
||||
<DockPanel>
|
||||
|
|
|
@ -30,15 +30,16 @@ namespace FRESHMusicPlayer.Views
|
|||
|
||||
private void DoStuff()
|
||||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
new MessageBox().SetStuff("Did you download the wrong thing?",
|
||||
$"This is FRESHMusicPlayer for Mac and Linux. {Environment.NewLine}" +
|
||||
"Although you're free to keep using this version (we won't bother you again), " +
|
||||
"you'll get a better experience if you grab the Windows version from" +
|
||||
"https://github.com/royce551/freshmusicplayer/releases/latest. " +
|
||||
"If there's something you think was done better here, let us know in the issue tracker!").ShowDialog(this);
|
||||
}
|
||||
// TODO: reimplement as notification
|
||||
//if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
//{
|
||||
// new MessageBox().SetStuff("Did you download the wrong thing?",
|
||||
// $"This is FRESHMusicPlayer for Mac and Linux. {Environment.NewLine}" +
|
||||
// "Although you're free to keep using this version (we won't bother you again), " +
|
||||
// "you'll get a better experience if you grab the Windows version from" +
|
||||
// "https://github.com/royce551/freshmusicplayer/releases/latest. " +
|
||||
// "If there's something you think was done better here, let us know in the issue tracker!").ShowDialog(this);
|
||||
//}
|
||||
}
|
||||
|
||||
private void OnClosing(object sender, CancelEventArgs e)
|
||||
|
|
Loading…
Reference in a new issue