-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Remove title bar, put icon next to File button. Added icons to mo…
…st dropdown menu actions. Title bar content is now displayed when hovering the logo in the title bar.
- Loading branch information
Showing
21 changed files
with
382 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Avalonia.Data.Core; | ||
using Avalonia.Markup.Xaml; | ||
using Avalonia.Markup.Xaml.MarkupExtensions; | ||
using Avalonia.Markup.Xaml.MarkupExtensions.CompiledBindings; | ||
using System; | ||
|
||
namespace Ryujinx.Ava.Common.Icon | ||
{ | ||
internal class IconExtension(string iconString) : MarkupExtension | ||
{ | ||
private ClrPropertyInfo PropertyInfo | ||
=> new( | ||
"Item", | ||
_ => new Projektanker.Icons.Avalonia.Icon { Value = iconString }, | ||
null, | ||
typeof(Projektanker.Icons.Avalonia.Icon) | ||
); | ||
|
||
public override object ProvideValue(IServiceProvider serviceProvider) => | ||
new CompiledBindingExtension( | ||
new CompiledBindingPathBuilder() | ||
.Property(PropertyInfo, PropertyInfoAccessorFactory.CreateInpcPropertyAccessor) | ||
.Build() | ||
).ProvideValue(serviceProvider); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.