59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $Preferences : Adw.PreferencesWindow {
|
|
title: _("Preferences");
|
|
default-height: 400;
|
|
default-width: 600;
|
|
modal: true;
|
|
|
|
Adw.PreferencesPage general_page {
|
|
title: _("Models");
|
|
icon-name: "brain-augemnted-symbolic";
|
|
|
|
Adw.PreferencesGroup provider_group {
|
|
title: _("Providers");
|
|
}
|
|
|
|
Adw.PreferencesGroup model_group {
|
|
title: _("Models");
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesPage {
|
|
title: _("Preferences");
|
|
icon-name: "settings-symbolic";
|
|
|
|
Adw.PreferencesGroup miscellaneous_group {
|
|
title: _("Miscellaneous");
|
|
|
|
Adw.ActionRow {
|
|
title: _("Clear all threads");
|
|
|
|
Button clear_all_chats_button {
|
|
valign: center;
|
|
label: _("Clear");
|
|
tooltip-text: _("This will clear all threads from the database.");
|
|
clicked => $clear_all_chats_clicked();
|
|
styles ["destructive-action"]
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesGroup {
|
|
title: _("Names");
|
|
|
|
Adw.EntryRow bot_name {
|
|
title: _("Bot name");
|
|
show-apply-button: true;
|
|
apply => $on_bot_entry_apply();
|
|
}
|
|
|
|
Adw.EntryRow user_name {
|
|
title: _("User name");
|
|
show-apply-button: true;
|
|
apply => $on_user_entry_apply();
|
|
}
|
|
}
|
|
}
|
|
} |