Add interface to manage accounts
This commit is contained in:
@ -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@'],
|
||||
|
||||
@ -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>
|
||||
|
||||
35
data/resources/ui/preferences.blp
Normal file
35
data/resources/ui/preferences.blp
Normal 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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user