From bb9b834a223e9179b3e2bc28d1e98ceb18b76504 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 | 348 +++++++++++++++++++++------------ 4 files changed, 236 insertions(+), 125 deletions(-) diff --git a/data/resources/style-hc.css b/data/resources/style-hc.css index 5376146..f8748e2 100644 --- a/data/resources/style-hc.css +++ b/data/resources/style-hc.css @@ -1,3 +1,7 @@ row.property label.title { opacity: 0.9; } + +.properties-border { + color: var(--headerbar-border-color); +} diff --git a/data/resources/style.css b/data/resources/style.css index cdb1ad0..83c4bd3 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 516f193..e593e0d 100644 --- a/src/widgets/properties_view.ui +++ b/src/widgets/properties_view.ui @@ -1,9 +1,10 @@