Add interface to manage accounts

This commit is contained in:
ranfdev
2023-11-13 19:58:26 +01:00
parent ba0a5a756c
commit 365244bd60
11 changed files with 581 additions and 4 deletions

View File

@ -5,6 +5,7 @@ blueprints = custom_target('blueprints',
'ui/window.blp',
'ui/shortcuts.blp',
'ui/subscription_info_dialog.blp',
'ui/preferences.blp',
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],

View File

@ -5,6 +5,7 @@
<file compressed="true" preprocess="xml-stripblanks" alias="gtk/help-overlay.ui">ui/shortcuts.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/window.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/subscription_info_dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/preferences.ui</file>
<file compressed="true">style.css</file>
<file compressed="true">com.ranfdev.Notify.metainfo.xml</file>
</gresource>

View File

@ -0,0 +1,35 @@
using Gtk 4.0;
using Adw 1;
template $NotifyPreferences : Adw.PreferencesWindow {
width-request: 240;
height-request: 360;
Adw.PreferencesPage {
title: "Accounts";
description: "Accounts to access protected topics";
Adw.PreferencesGroup {
title: "New Account";
Adw.EntryRow server_entry {
title: "server";
}
Adw.EntryRow username_entry {
title: "username";
}
Adw.PasswordEntryRow password_entry {
title: "password";
}
Gtk.Button add_btn {
margin-top: 8;
styles ["suggested-action"]
halign: end;
label: "Add";
}
}
Adw.PreferencesGroup added_accounts_group {
title: "Added";
Gtk.ListBox added_accounts {
styles ["boxed-list"]
}
}
}
}