-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added settings - Add a config object - Add config UI - Update Nuget packages - Bug fixes - Introducing Font awesome icon * Feature:Added support for resize the panels (#53) * Update MainWindow.xaml Co-authored-by: Arman <[email protected]> Co-authored-by: Javier Camacho <[email protected]>
- Loading branch information
1 parent
ee5130c
commit d50838a
Showing
23 changed files
with
324 additions
and
187 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
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 @@ | ||
namespace PurpleExplorer.Models; | ||
|
||
public class AppSettings | ||
{ | ||
public int QueueListFetchCount { get; set; } = 100; | ||
public int QueueMessageFetchCount { get; set; } = 100; | ||
|
||
public int TopicListFetchCount { get; set; } = 100; | ||
public int TopicMessageFetchCount { get; set; } = 100; | ||
} |
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 |
---|---|---|
@@ -1,18 +1,26 @@ | ||
using System.Collections.ObjectModel; | ||
using System.Runtime.Serialization; | ||
using PurpleExplorer.ViewModels; | ||
|
||
namespace PurpleExplorer.Models | ||
{ | ||
[DataContract] | ||
public class AppState: IAppState | ||
public class AppState: ViewModelBase, IAppState | ||
{ | ||
[DataMember] public ObservableCollection<string> SavedConnectionStrings { get; set; } | ||
[DataMember] public ObservableCollection<SavedMessage> SavedMessages { get; set; } | ||
[DataMember] | ||
public ObservableCollection<string> SavedConnectionStrings { get; set; } | ||
|
||
[DataMember] | ||
public ObservableCollection<SavedMessage> SavedMessages { get; set; } | ||
|
||
[DataMember] | ||
public AppSettings AppSettings { get; set; } | ||
|
||
public AppState() | ||
{ | ||
SavedConnectionStrings = new ObservableCollection<string>(); | ||
SavedMessages = new ObservableCollection<SavedMessage>(); | ||
AppSettings = new AppSettings(); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
using System.Collections.ObjectModel; | ||
using PurpleExplorer.ViewModels; | ||
|
||
namespace PurpleExplorer.Models | ||
{ | ||
public interface IAppState | ||
{ | ||
public ObservableCollection<string> SavedConnectionStrings { get; set; } | ||
public ObservableCollection<SavedMessage> SavedMessages { get; set; } | ||
public AppSettings AppSettings { get; set; } | ||
} | ||
} |
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,18 @@ | ||
<Styles xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:i="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia"> | ||
<Style Selector="Button.topButton"> | ||
<Setter Property="Background" Value="Transparent" /> | ||
<Setter Property="Foreground" Value="White" /> | ||
<Setter Property="Margin" Value="1,0" /> | ||
<Setter Property="BorderThickness" Value="0,0,2,0" /> | ||
</Style> | ||
<Style Selector="Button.topButton i|Icon"> | ||
<Setter Property="Margin" Value="0,0,1,0" /> | ||
<Setter Property="Width" Value="20" /> | ||
<Setter Property="Height" Value="20" /> | ||
</Style> | ||
<Style Selector="Button.topButton TextBlock"> | ||
<Setter Property="Margin" Value="0,1,0,0" /> | ||
</Style> | ||
</Styles> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.