[gnome-boxes/port-assistant-widgets-to-hdy: 1/8] preferences, style: Round our in-house Toast widget
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/port-assistant-widgets-to-hdy: 1/8] preferences, style: Round our in-house Toast widget
- Date: Thu, 9 Dec 2021 13:48:10 +0000 (UTC)
commit db0283857efd439e046639c36c48b99b67af54fd
Author: Felipe Borges <felipeborges gnome org>
Date: Thu Dec 9 10:59:15 2021 +0100
preferences, style: Round our in-house Toast widget
Hopefully we will drop this when we port to libadwaita.
data/gtk-style.css | 5 +++++
data/ui/preferences/preferences-toast.ui | 3 +++
2 files changed, 8 insertions(+)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index e3d0cc85..a9f24ae4 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -107,6 +107,11 @@ separator {
/* Adds a border to the ISOs lists top undershoot */
.boxes-menu-scrolled.undershoot.top { border-top: 1px solid @borders; }
+/* This is to be removed once we port to AdwToast */
+.boxes-toast {
+ border-radius: 2em;
+}
+
/* Screenshot flash */
@keyframes flash_animation {
50% {
diff --git a/data/ui/preferences/preferences-toast.ui b/data/ui/preferences/preferences-toast.ui
index 75306c09..911f7253 100644
--- a/data/ui/preferences/preferences-toast.ui
+++ b/data/ui/preferences/preferences-toast.ui
@@ -6,6 +6,7 @@
<property name="valign">end</property>
<style>
<class name="app-notification"/>
+ <class name="boxes-toast"/>
</style>
<child>
@@ -15,12 +16,14 @@
<property name="hexpand">True</property>
<property name="wrap">True</property>
<property name="lines">2</property>
+ <property name="margin">5</property>
</object>
</child>
<child>
<object class="GtkButton" id="button">
<property name="visible">True</property>
+ <property name="valign">center</property>
<property name="label" translatable="yes">Undo</property>
<signal name="clicked" handler="on_undo_button_clicked"/>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]