From 6da11e6797123df627a02cefdd5d235f519197cc Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Tue, 11 Jun 2024 23:51:05 -0400 Subject: [PATCH] window: Rework properties adaptivity Ports the sidebar to AdwOverlaySplitView, and uses AdwMultiLayoutView to use a box at narrow sizes. A bottom sheet also overlays the content when the window is both narrow and short. --- data/resources/style-hc.css | 4 + data/resources/style.css | 6 +- src/widgets/properties_view.ui | 3 +- src/window.ui | 338 +++++++++++++++++++++------------ 4 files changed, 231 insertions(+), 120 deletions(-) diff --git a/data/resources/style-hc.css b/data/resources/style-hc.css index 53761468..a771f810 100644 --- a/data/resources/style-hc.css +++ b/data/resources/style-hc.css @@ -1,3 +1,7 @@ row.property label.title { opacity: 0.9; } + +.mobile-properties { + box-shadow: 0 -1px var(--border-color); +} diff --git a/data/resources/style.css b/data/resources/style.css index cdb1ad0a..83c4bd37 100644 --- a/data/resources/style.css +++ b/data/resources/style.css @@ -57,4 +57,8 @@ dropdown.flat button:not(:hover) { dialog.error-details textview { background: none; color: inherit; -} \ No newline at end of file +} + +.mobile-properties { + box-shadow: 0 -1px var(--headerbar-darker-shade-color); +} diff --git a/src/widgets/properties_view.ui b/src/widgets/properties_view.ui index 516f1936..e593e0d0 100644 --- a/src/widgets/properties_view.ui +++ b/src/widgets/properties_view.ui @@ -1,9 +1,10 @@