From 025d71e7e8d479a6b07c421029542ca15049d653 Mon Sep 17 00:00:00 2001 From: lainsce Date: Tue, 6 Feb 2024 17:58:06 -0300 Subject: [PATCH] Restyle icon + add a rounded frame on the webview --- data/gresource.xml.in | 1 + data/icons/app.svg | 164 +++++++++++------------------------------- data/style.css | 4 ++ src/MainWindow.vala | 1 + 4 files changed, 49 insertions(+), 121 deletions(-) create mode 100644 data/style.css diff --git a/data/gresource.xml.in b/data/gresource.xml.in index 47c1370..e5eefd1 100644 --- a/data/gresource.xml.in +++ b/data/gresource.xml.in @@ -2,6 +2,7 @@ ui/mainwindow.ui + style.css icons/app.svg diff --git a/data/icons/app.svg b/data/icons/app.svg index c1efb22..958ee1e 100644 --- a/data/icons/app.svg +++ b/data/icons/app.svg @@ -1,121 +1,43 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/style.css b/data/style.css new file mode 100644 index 0000000..5b56d1b --- /dev/null +++ b/data/style.css @@ -0,0 +1,4 @@ +.framed { + border: 1px solid @borders; + border-radius: 2px; +} \ No newline at end of file diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 7c6552e..09a45bf 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -118,6 +118,7 @@ public class SkiffDesktop.MainWindow : He.ApplicationWindow { webview.create.connect (on_create); webview.vexpand = true; + webview.add_css_class ("framed"); main_box.append (webview); webview.load_uri (BASE_URL);