mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 02:21:27 -07:00
Fix drag bug, fix sizing (because matt sucks at ui design), fix header colour being shown
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Media;
|
|
using Wpf.Ui.Appearance;
|
|
|
|
namespace Bloxstrap.UI.ViewModels.Bootstrapper
|
|
{
|
|
public class FluentDialogViewModel : BootstrapperDialogViewModel
|
|
{
|
|
public BackgroundType WindowBackdropType { get; set; } = BackgroundType.Mica;
|
|
|
|
public SolidColorBrush BackgroundColourBrush { get; set; } = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0));
|
|
|
|
[Obsolete("Do not use this! This is for the designer only.", true)]
|
|
public FluentDialogViewModel() : base()
|
|
{ }
|
|
|
|
public FluentDialogViewModel(IBootstrapperDialog dialog, bool aero) : base(dialog)
|
|
{
|
|
const int alpha = 128;
|
|
|
|
WindowBackdropType = aero ? BackgroundType.Aero : BackgroundType.Mica;
|
|
|
|
if (aero)
|
|
{
|
|
BackgroundColourBrush = App.Settings.Prop.Theme.GetFinal() == Enums.Theme.Light ?
|
|
new SolidColorBrush(Color.FromArgb(alpha, 225, 225, 225)) :
|
|
new SolidColorBrush(Color.FromArgb(alpha, 30, 30, 30));
|
|
}
|
|
}
|
|
}
|
|
}
|