This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fileiconservice + dynamic folder loading
- Loading branch information
1 parent
335e0f5
commit b03c21a
Showing
14 changed files
with
62 additions
and
124 deletions.
There are no files selected for viewing
43 changes: 0 additions & 43 deletions
43
src/OneWare.Essentials/Converters/FileExtensionIconConverter.cs
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
src/OneWare.Essentials/Converters/FileExtensionIconConverterObservable.cs
This file was deleted.
Oops, something went wrong.
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
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,27 @@ | ||
using System.Collections.ObjectModel; | ||
using System.ComponentModel; | ||
using Avalonia.Media; | ||
|
||
namespace OneWare.Essentials.Models; | ||
|
||
/// <summary> | ||
/// Node displayed in the project explorer | ||
/// </summary> | ||
public interface IProjectExplorerNode : ICanHaveIcon, INotifyPropertyChanged | ||
{ | ||
public string Header { get; } | ||
|
||
public IProjectExplorerNode? Parent { get; } | ||
|
||
public ObservableCollection<IProjectExplorerNode> Children { get; } | ||
|
||
public ObservableCollection<IImage> IconOverlays { get; } | ||
|
||
public bool IsExpanded { get; set; } | ||
|
||
public IBrush Background { get; set; } | ||
|
||
public FontWeight FontWeight { get; set; } | ||
|
||
public float TextOpacity { get; } | ||
} |
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,10 @@ | ||
using Avalonia.Media; | ||
|
||
namespace OneWare.Essentials.Services; | ||
|
||
public interface IFileIconService | ||
{ | ||
public void RegisterFileIcon(IObservable<IImage> icon, params string[] extensions); | ||
public void RegisterFileIcon(string resourceName, params string[] extensions); | ||
public IObservable<IImage> GetFileIcon(string extension); | ||
} |
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