Skip to content

Commit

Permalink
Add support for new Adw.Dialog and bottom sheets (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Sep 24, 2024
1 parent f054d90 commit b76dc06
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/stylesheet.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
<url type="bugtracker">https://github.com/elementary/stylesheet/issues</url>

<releases>
<release version="8.2.0" date="2024-09-24" urgency="medium">
<description>
<p>Improve support for LibAdwaita widgets:</p>
</description>
<issues>
<issue url="https://github.com/elementary/stylesheet/issues/1300">Add Support for new Adw.Dialog</issue>
</issues>
</release>

<release version="8.1.0" date="2024-07-30" urgency="medium">
<description>
<p>Improve support for LibAdwaita widgets:</p>
Expand Down
1 change: 1 addition & 0 deletions src/gtk-4.0/widgets/adw/AboutWindow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* AdwAboutWindow *
******************/

dialog.about,
window.about {
@extend .dialog;

Expand Down
23 changes: 23 additions & 0 deletions src/gtk-4.0/widgets/adw/Dialog.scss
Original file line number Diff line number Diff line change
@@ -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;
}
}
1 change: 1 addition & 0 deletions src/gtk-4.0/widgets/adw/_index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import 'AboutWindow.scss';
@import 'Dialog.scss';
@import 'List.scss';
@import 'MessageDialog.scss';
@import 'PreferencesWindow.scss';
Expand Down

0 comments on commit b76dc06

Please sign in to comment.