From 5d17a024a721f78dace06733eff9bebf0add49e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 24 Sep 2024 12:49:02 -0700 Subject: [PATCH 1/2] Add support for new Adw.Dialog and bottom sheets --- src/gtk-4.0/widgets/adw/AboutWindow.scss | 1 + src/gtk-4.0/widgets/adw/Dialog.scss | 23 +++++++++++++++++++++++ src/gtk-4.0/widgets/adw/_index.scss | 1 + 3 files changed, 25 insertions(+) create mode 100644 src/gtk-4.0/widgets/adw/Dialog.scss diff --git a/src/gtk-4.0/widgets/adw/AboutWindow.scss b/src/gtk-4.0/widgets/adw/AboutWindow.scss index 09d8e001..19a939b8 100644 --- a/src/gtk-4.0/widgets/adw/AboutWindow.scss +++ b/src/gtk-4.0/widgets/adw/AboutWindow.scss @@ -2,6 +2,7 @@ * AdwAboutWindow * ******************/ +dialog.about, window.about { @extend .dialog; diff --git a/src/gtk-4.0/widgets/adw/Dialog.scss b/src/gtk-4.0/widgets/adw/Dialog.scss new file mode 100644 index 00000000..a6fbcb3d --- /dev/null +++ b/src/gtk-4.0/widgets/adw/Dialog.scss @@ -0,0 +1,23 @@ +bottom-sheet, +floating-sheet { + > dimming { + background: rgba(black, 0.4); + } + + sheet { + @extend window, .dialog, .csd; + } +} + +bottom-sheet sheet { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + + > stack > widget > drag-handle { + background: rgba($fg-color, 0.5); + min-width: 3em; + min-height: 0.5em; + margin: 1em; + border-radius: 1em; + } +} diff --git a/src/gtk-4.0/widgets/adw/_index.scss b/src/gtk-4.0/widgets/adw/_index.scss index 9de6ee97..675aa5c0 100644 --- a/src/gtk-4.0/widgets/adw/_index.scss +++ b/src/gtk-4.0/widgets/adw/_index.scss @@ -1,4 +1,5 @@ @import 'AboutWindow.scss'; +@import 'Dialog.scss'; @import 'List.scss'; @import 'MessageDialog.scss'; @import 'PreferencesWindow.scss'; From 8526fb7c2aca3e7c81c6b8d777bc7dc427fb9a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 24 Sep 2024 12:50:45 -0700 Subject: [PATCH 2/2] Update stylesheet.appdata.xml.in --- data/stylesheet.appdata.xml.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/stylesheet.appdata.xml.in b/data/stylesheet.appdata.xml.in index c237e870..b39ae1d5 100644 --- a/data/stylesheet.appdata.xml.in +++ b/data/stylesheet.appdata.xml.in @@ -23,6 +23,15 @@ https://github.com/elementary/stylesheet/issues + + +

Improve support for LibAdwaita widgets:

+
+ + Add Support for new Adw.Dialog + +
+

Improve support for LibAdwaita widgets: