feat: new UI !
Build / Flatpak (x86_64) (push) Successful in 20m58s Details

This commit is contained in:
0xMRTT 2023-06-16 23:13:57 +02:00
parent a74de76ae4
commit e72f68c9b3
Signed by: 0xMRTT
GPG Key ID: 910B287304120902
4 changed files with 78 additions and 10 deletions

26
Cargo.toml Normal file
View File

@ -0,0 +1,26 @@
[package]
name = "bavarder"
version = "0.1.0"
edition = "2021"
[dependencies]
env_logger = "0.10.0"
[dependencies.gtk]
package = "gtk4"
version = "0.6.2"
features = ["v4_10", "xml_validation"]
[dependencies.gio]
package = "gio"
version = "0.17.0"
features = ["v2_74"]
[dependencies.adw]
package = "libadwaita"
version = "0.4.1"
features = ["v1_4"]
[dependencies.gettext-rs]
version = "0.7.0"
features = ["gettext-system"]

View File

@ -21,3 +21,24 @@ scrolledwindow > viewport > clamp > box {
margin: 42px 12px;
border-spacing: 24px;
}
entry:disabled {
border-color: transparent;
color: @view_fg_color;
background: none;
}
entry textview {
color: @view_fg_color;
background: none;
}
entry text {
color: @view_fg_color;
background: none;
}
entry .inline-pill {
margin-bottom: -0.5em;
}

View File

@ -50,17 +50,17 @@ template $BavarderWindow : Adw.ApplicationWindow {
Box {
orientation: vertical;
Stack stack {
transition-type: crossfade;
styles [ "card"]
Gtk.StackPage {
name: "page_content";
child: Overlay overlay {
Adw.PreferencesGroup bot_group {
title: _("Response");
Box {
orientation: vertical;
hexpand: true;
@ -162,7 +162,7 @@ template $BavarderWindow : Adw.ApplicationWindow {
}
}
Separator {}
// Separator {}
Adw.Clamp {
vexpand: false;
@ -170,14 +170,16 @@ template $BavarderWindow : Adw.ApplicationWindow {
maximum-size: 750;
tightening-threshold: 550;
margin-top: 8;
margin-bottom: 8;
Box {
styles [ "toolbar" ]
// Button {
// valign: end;
// icon-name: "mail-attachment-symbolic";
// }
Button {
valign: end;
icon-name: "mail-attachment-symbolic";
}
ScrolledWindow {
vexpand: true;
@ -186,13 +188,19 @@ template $BavarderWindow : Adw.ApplicationWindow {
max-content-height: 200;
propagate-natural-height: true;
styles ["scrolled-window"]
styles [ "scrolled-window" ]
TextView prompt_text_view {
styles [ "entry "]
hexpand: true;
accepts-tab: false;
top-margin: 7;
bottom-margin: 7;
left-margin: 5;
right-margin: 5;
wrap-mode: word;
buffer: TextBuffer { };
}
@ -200,6 +208,8 @@ template $BavarderWindow : Adw.ApplicationWindow {
Button ask_button {
valign: end;
margin-start: 5;
icon-name: "paper-plane-symbolic";
tooltip-text: _("Ask");

11
meson_options.txt Normal file
View File

@ -0,0 +1,11 @@
option(
'profile',
type: 'combo',
description: 'The build profiles for the application. Use development or ci for the .Devel app ID. ci also produces optimized bundles.',
choices: [
'release',
'development',
'ci',
],
value: 'release'
)