feat: Style changes
This commit is contained in:
parent
703e315241
commit
ba723801c5
|
@ -1,8 +1,8 @@
|
|||
# Bavarder
|
||||
|
||||
Ask GPT from GNOME
|
||||
Simple way to ask GPT
|
||||
|
||||
![](./data/screenshots/languages.png)
|
||||
![app-screenshot](./data/screenshots/quantum-computing.png)
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
|
@ -6,4 +6,7 @@
|
|||
<file preprocess="xml-stripblanks">ui/preferences.ui</file>
|
||||
<file>style.css</file>
|
||||
</gresource>
|
||||
<gresource prefix="/com/github/Bavarder/Bavarder/icons/scalable/actions/">
|
||||
<file preprocess="xml-stripblanks" alias="paper-plane-symbolic.svg">icons/scalable/actions/paper-plane-symbolic.svg</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 15 8 l -14 -7 v 6 l 8 1 l -8 1 v 6 z m 0 0" fill="#222222"/></svg>
|
After Width: | Height: | Size: 204 B |
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
|
@ -4,10 +4,12 @@
|
|||
color: inherit;
|
||||
}
|
||||
|
||||
.scrolled-window undershoot.bottom {
|
||||
border-bottom: 1px solid #ededed;
|
||||
.scrolled-window undershoot.top {
|
||||
box-shadow: inset 0 1px alpha(@shade_color, .75);
|
||||
background: linear-gradient(to bottom, alpha(@shade_color, .75), transparent 4px);
|
||||
}
|
||||
|
||||
.scrolled-window.top-undershoot undershoot.top {
|
||||
border-top: 1px solid #ededed;
|
||||
}
|
||||
.scrolled-window undershoot.bottom {
|
||||
box-shadow: inset 0 -1px alpha(@shade_color, .75);
|
||||
background: linear-gradient(to top, alpha(@shade_color, .75), transparent 4px);
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@ using Adw 1;
|
|||
template BavarderWindow : Adw.ApplicationWindow {
|
||||
|
||||
title: _("Bavarder");
|
||||
default-width: 650;
|
||||
default-height: 250;
|
||||
default-width: 350;
|
||||
default-height: 500;
|
||||
|
||||
ShortcutController {
|
||||
Shortcut {
|
||||
|
@ -26,6 +26,7 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||
icon-name: "open-menu-symbolic";
|
||||
tooltip-text: _("Main Menu");
|
||||
}
|
||||
styles ["flat"]
|
||||
}
|
||||
|
||||
Box main {
|
||||
|
@ -39,7 +40,7 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||
spacing: 12;
|
||||
|
||||
Adw.PreferencesGroup prompt_group {
|
||||
title: _("Prompt");
|
||||
title: _("Message");
|
||||
|
||||
Box {
|
||||
orientation: vertical;
|
||||
|
@ -53,9 +54,10 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||
margin-bottom:0;
|
||||
margin-start:12;
|
||||
margin-end:12;
|
||||
styles ["scrolled-window"]
|
||||
|
||||
TextView prompt_text_view {
|
||||
wrap-mode: char;
|
||||
wrap-mode: word_char;
|
||||
hexpand: true;
|
||||
vexpand: true;
|
||||
buffer: TextBuffer { };
|
||||
|
@ -69,25 +71,25 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||
styles ["toolbar"]
|
||||
Button {
|
||||
sensitive: false;
|
||||
icon-name: "document-send-symbolic";
|
||||
tooltip-text: _("Ask");
|
||||
action-name: "app.ask";
|
||||
icon-name: "edit-copy-symbolic";
|
||||
tooltip-text: _("Copy to Clipboard");
|
||||
action-name: "app.copy_prompt";
|
||||
}
|
||||
Button {
|
||||
sensitive: false;
|
||||
icon-name: "edit-copy-symbolic";
|
||||
tooltip-text: _("Copy to Clipboard");
|
||||
icon-name: "paper-plane-symbolic";
|
||||
tooltip-text: _("Ask");
|
||||
hexpand: true;
|
||||
halign: end;
|
||||
action-name: "app.copy_prompt";
|
||||
action-name: "app.ask";
|
||||
styles ["suggested-action", "circular"]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Adw.PreferencesGroup bot_group {
|
||||
title: _("Bot");
|
||||
title: _("Response");
|
||||
|
||||
Box {
|
||||
orientation: vertical;
|
||||
|
@ -101,9 +103,10 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||
margin-bottom:0;
|
||||
margin-start:12;
|
||||
margin-end:12;
|
||||
styles ["scrolled-window"]
|
||||
|
||||
TextView bot_text_view {
|
||||
wrap-mode: char;
|
||||
wrap-mode: word_char;
|
||||
hexpand: true;
|
||||
vexpand: true;
|
||||
editable: false;
|
||||
|
@ -119,7 +122,7 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||
label: _("Ready");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Button {
|
||||
sensitive: false;
|
||||
icon-name: "edit-copy-symbolic";
|
||||
|
@ -129,12 +132,8 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||
action-name: "app.copy_bot";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue