Tidying up workspace, creating new layers

This commit is contained in:
2025-09-18 07:14:29 +02:00
parent b5be0db52b
commit e65f6c94af
13 changed files with 76 additions and 72 deletions

View File

@@ -13,7 +13,7 @@
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="UI/MainWindow.xml" />
<EmbeddedResource Include="UI/MainWindow/MainWindow.xml" />
</ItemGroup>
</Project>

View File

@@ -1,6 +1,6 @@
using Microsoft.Extensions.DependencyInjection;
namespace App;
namespace Keychain;
class Program
{
@@ -13,7 +13,7 @@ class Program
var application = Adw.Application.New("org.typomustakes.keychain", Gio.ApplicationFlags.FlagsNone);
application.OnActivate += (sender, args) =>
{
var window = new App.UI.MainWindow().Window;
var window = new UI.MainWindow().Window;
window.Application = (Adw.Application)sender;
window.Show();
};
@@ -24,7 +24,7 @@ class Program
private static ServiceProvider SetupServices()
{
var services = new ServiceCollection();
services.AddTransient<IPasswordStoreService, PasswordStoreService>();
//services.AddTransient<IPasswordStoreService, PasswordStoreService>();
return services.BuildServiceProvider();
}
}

View File

@@ -1,7 +1,7 @@
using Adw;
using App.UI.ViewModels;
using Keychain.UI.ViewModels;
namespace App.UI;
namespace Keychain.UI;
public class MainWindow
{
@@ -11,7 +11,7 @@ public class MainWindow
public MainWindow()
{
var builder = new Gtk.Builder("App.UI.MainWindow.xml");
var builder = new Gtk.Builder("Keychain.UI.MainWindow.MainWindow.xml");
var window = builder.GetObject("main_window") as Window;
if (window == null)

View File

@@ -1,6 +1,6 @@
using System.ComponentModel;
namespace App.UI.ViewModels;
namespace Keychain.UI.ViewModels;
public class PasswordStoreShortcut : INotifyPropertyChanged
{

View File

@@ -1,4 +1,4 @@
namespace App.UI.ViewModels;
namespace Keychain.UI.ViewModels;
using Adw;
using Gtk;