feat: Style changes
This commit is contained in:
parent
703e315241
commit
ba723801c5
@ -1,8 +1,8 @@
|
|||||||
# Bavarder
|
# Bavarder
|
||||||
|
|
||||||
Ask GPT from GNOME
|
Simple way to ask GPT
|
||||||
|
|
||||||
![](./data/screenshots/languages.png)
|
![app-screenshot](./data/screenshots/quantum-computing.png)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -6,4 +6,7 @@
|
|||||||
<file preprocess="xml-stripblanks">ui/preferences.ui</file>
|
<file preprocess="xml-stripblanks">ui/preferences.ui</file>
|
||||||
<file>style.css</file>
|
<file>style.css</file>
|
||||||
</gresource>
|
</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>
|
</gresources>
|
||||||
|
2
data/icons/scalable/actions/paper-plane-symbolic.svg
Normal file
2
data/icons/scalable/actions/paper-plane-symbolic.svg
Normal file
@ -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 |
BIN
data/screenshots/quantum-computing.png
Normal file
BIN
data/screenshots/quantum-computing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
@ -4,10 +4,12 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scrolled-window undershoot.bottom {
|
.scrolled-window undershoot.top {
|
||||||
border-bottom: 1px solid #ededed;
|
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 {
|
.scrolled-window undershoot.bottom {
|
||||||
border-top: 1px solid #ededed;
|
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 {
|
template BavarderWindow : Adw.ApplicationWindow {
|
||||||
|
|
||||||
title: _("Bavarder");
|
title: _("Bavarder");
|
||||||
default-width: 650;
|
default-width: 350;
|
||||||
default-height: 250;
|
default-height: 500;
|
||||||
|
|
||||||
ShortcutController {
|
ShortcutController {
|
||||||
Shortcut {
|
Shortcut {
|
||||||
@ -26,6 +26,7 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||||||
icon-name: "open-menu-symbolic";
|
icon-name: "open-menu-symbolic";
|
||||||
tooltip-text: _("Main Menu");
|
tooltip-text: _("Main Menu");
|
||||||
}
|
}
|
||||||
|
styles ["flat"]
|
||||||
}
|
}
|
||||||
|
|
||||||
Box main {
|
Box main {
|
||||||
@ -39,7 +40,7 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||||||
spacing: 12;
|
spacing: 12;
|
||||||
|
|
||||||
Adw.PreferencesGroup prompt_group {
|
Adw.PreferencesGroup prompt_group {
|
||||||
title: _("Prompt");
|
title: _("Message");
|
||||||
|
|
||||||
Box {
|
Box {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
@ -53,9 +54,10 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||||||
margin-bottom:0;
|
margin-bottom:0;
|
||||||
margin-start:12;
|
margin-start:12;
|
||||||
margin-end:12;
|
margin-end:12;
|
||||||
|
styles ["scrolled-window"]
|
||||||
|
|
||||||
TextView prompt_text_view {
|
TextView prompt_text_view {
|
||||||
wrap-mode: char;
|
wrap-mode: word_char;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
buffer: TextBuffer { };
|
buffer: TextBuffer { };
|
||||||
@ -69,25 +71,25 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||||||
styles ["toolbar"]
|
styles ["toolbar"]
|
||||||
Button {
|
Button {
|
||||||
sensitive: false;
|
sensitive: false;
|
||||||
icon-name: "document-send-symbolic";
|
icon-name: "edit-copy-symbolic";
|
||||||
tooltip-text: _("Ask");
|
tooltip-text: _("Copy to Clipboard");
|
||||||
action-name: "app.ask";
|
action-name: "app.copy_prompt";
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
sensitive: false;
|
sensitive: false;
|
||||||
icon-name: "edit-copy-symbolic";
|
icon-name: "paper-plane-symbolic";
|
||||||
tooltip-text: _("Copy to Clipboard");
|
tooltip-text: _("Ask");
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
halign: end;
|
halign: end;
|
||||||
action-name: "app.copy_prompt";
|
action-name: "app.ask";
|
||||||
|
styles ["suggested-action", "circular"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.PreferencesGroup bot_group {
|
Adw.PreferencesGroup bot_group {
|
||||||
title: _("Bot");
|
title: _("Response");
|
||||||
|
|
||||||
Box {
|
Box {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
@ -101,9 +103,10 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||||||
margin-bottom:0;
|
margin-bottom:0;
|
||||||
margin-start:12;
|
margin-start:12;
|
||||||
margin-end:12;
|
margin-end:12;
|
||||||
|
styles ["scrolled-window"]
|
||||||
|
|
||||||
TextView bot_text_view {
|
TextView bot_text_view {
|
||||||
wrap-mode: char;
|
wrap-mode: word_char;
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
editable: false;
|
editable: false;
|
||||||
@ -119,7 +122,7 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||||||
label: _("Ready");
|
label: _("Ready");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
sensitive: false;
|
sensitive: false;
|
||||||
icon-name: "edit-copy-symbolic";
|
icon-name: "edit-copy-symbolic";
|
||||||
@ -129,12 +132,8 @@ template BavarderWindow : Adw.ApplicationWindow {
|
|||||||
action-name: "app.copy_bot";
|
action-name: "app.copy_bot";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user