mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Use compiled bindings.
This commit is contained in:
@@ -199,6 +199,8 @@ public sealed partial class DeviceInfoViewModel : ViewModelBase
|
||||
[ObservableProperty]
|
||||
bool _removable;
|
||||
[ObservableProperty]
|
||||
bool _removableChecked;
|
||||
[ObservableProperty]
|
||||
string _revision;
|
||||
[ObservableProperty]
|
||||
bool _saveUsbDescriptorsEnabled;
|
||||
@@ -213,6 +215,8 @@ public sealed partial class DeviceInfoViewModel : ViewModelBase
|
||||
[ObservableProperty]
|
||||
SdMmcInfo _sdMmcInfo;
|
||||
[ObservableProperty]
|
||||
string _sdMmcText;
|
||||
[ObservableProperty]
|
||||
string _secureDigital;
|
||||
[ObservableProperty]
|
||||
string _serial;
|
||||
|
||||
@@ -116,11 +116,11 @@ public sealed class SubdirectoryViewModel
|
||||
Name = dirent,
|
||||
Stat = stat,
|
||||
Color =
|
||||
new SolidColorBrush(Color.Parse(DirColorsParser.Instance.ExtensionColors
|
||||
.TryGetValue(Path.GetExtension(dirent),
|
||||
out string hex)
|
||||
? hex
|
||||
: DirColorsParser.Instance.NormalColor))
|
||||
new SolidColorBrush(Avalonia.Media.Color.Parse(DirColorsParser.Instance.ExtensionColors
|
||||
.TryGetValue(Path.GetExtension(dirent),
|
||||
out string hex)
|
||||
? hex
|
||||
: DirColorsParser.Instance.NormalColor))
|
||||
});
|
||||
}
|
||||
|
||||
@@ -130,6 +130,7 @@ public sealed class SubdirectoryViewModel
|
||||
public ObservableCollection<FileModel> Entries { get; }
|
||||
public List<FileModel> SelectedEntries { get; }
|
||||
public ICommand ExtractFilesCommand { get; }
|
||||
public IBrush Color { get; }
|
||||
|
||||
async Task ExtractFiles()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user