mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Workshop - Fixed uploading layouts trying to write a ZIP file to desktop
UI - Always show user icon regardless of window
This commit is contained in:
1 parent
17bd62e673
commit
6364ce3fc4
7 files changed
+30
-42
No files matched your search
@@ -8,7 +8,15 @@
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:DataType="root:DefaultTitleBarViewModel"
|
||||
x:Class="Artemis.UI.Screens.Root.DefaultTitleBarView">
|
||||
<Button Classes="title-bar-button" Command="{CompiledBinding ShowDebugger}" VerticalAlignment="Top" HorizontalAlignment="Right" windowing:AppWindow.AllowInteractionInTitleBar="True" >
|
||||
<avalonia:MaterialIcon Kind="Bug"></avalonia:MaterialIcon>
|
||||
</Button>
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Height="42">
|
||||
<ContentControl Width="28"
|
||||
Height="28"
|
||||
Margin="0 0 29 0"
|
||||
VerticalAlignment="Center"
|
||||
Content="{CompiledBinding CurrentUserViewModel}"
|
||||
windowing:AppWindow.AllowInteractionInTitleBar="True" />
|
||||
<Button Classes="title-bar-button" Command="{CompiledBinding ShowDebugger}" windowing:AppWindow.AllowInteractionInTitleBar="True" VerticalAlignment="Top">
|
||||
<avalonia:MaterialIcon Kind="Bug"></avalonia:MaterialIcon>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
@@ -1,4 +1,5 @@
|
||||
using Artemis.UI.Services.Interfaces;
|
||||
using Artemis.UI.Screens.Workshop.CurrentUser;
|
||||
using Artemis.UI.Services.Interfaces;
|
||||
using Artemis.UI.Shared;
|
||||
|
||||
namespace Artemis.UI.Screens.Root;
|
||||
@@ -7,11 +8,14 @@ public class DefaultTitleBarViewModel : ViewModelBase
|
||||
{
|
||||
private readonly IDebugService _debugService;
|
||||
|
||||
public DefaultTitleBarViewModel(IDebugService debugService)
|
||||
public DefaultTitleBarViewModel(IDebugService debugService, CurrentUserViewModel currentUserViewModel)
|
||||
{
|
||||
_debugService = debugService;
|
||||
CurrentUserViewModel = currentUserViewModel;
|
||||
}
|
||||
|
||||
public CurrentUserViewModel CurrentUserViewModel { get; }
|
||||
|
||||
public void ShowDebugger()
|
||||
{
|
||||
_debugService.ShowDebugger();
|
||||
|
||||
Reference in new issue
Block a user