From c74d28009c62bfc888933edd52b10b5b47abf30a Mon Sep 17 00:00:00 2001 From: Adrien Plazas Date: Mon, 18 Feb 2019 15:01:04 +0100 Subject: [PATCH] sound: Make the panel adaptive Use a HdyColumn and ellipsize same labels so the panel can fit in narrower windows. --- panels/sound/cc-device-combo-box.ui | 4 +++- panels/sound/cc-sound-button.ui | 1 + panels/sound/cc-sound-panel.ui | 29 +++++++++++++++-------------- panels/sound/cc-stream-row.ui | 2 ++ 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/panels/sound/cc-device-combo-box.ui b/panels/sound/cc-device-combo-box.ui index 22d45da9f..e54f292f0 100644 --- a/panels/sound/cc-device-combo-box.ui +++ b/panels/sound/cc-device-combo-box.ui @@ -12,7 +12,9 @@ - + + end + 0 diff --git a/panels/sound/cc-sound-button.ui b/panels/sound/cc-sound-button.ui index 64db54121..1bce20f65 100644 --- a/panels/sound/cc-sound-button.ui +++ b/panels/sound/cc-sound-button.ui @@ -19,6 +19,7 @@ True True + word-char diff --git a/panels/sound/cc-sound-panel.ui b/panels/sound/cc-sound-panel.ui index a6ce920b2..31175cff6 100644 --- a/panels/sound/cc-sound-panel.ui +++ b/panels/sound/cc-sound-panel.ui @@ -8,19 +8,18 @@ True never - + True - - - True - True - - + 600 + 400 + 32 + 32 + 12 + 12 True vertical - 32 12 True @@ -90,6 +89,7 @@ True + end 0 Output Device @@ -143,6 +143,7 @@ True + end 0 Configuration @@ -175,6 +176,7 @@ True + end 0 Balance @@ -201,6 +203,7 @@ True + end 0 Fade @@ -227,6 +230,7 @@ True + end 0 Subwoofer @@ -275,6 +279,7 @@ True + end 0 Input Device @@ -315,6 +320,7 @@ True + end 0 Configuration @@ -347,6 +353,7 @@ True + end 0 Volume @@ -384,12 +391,6 @@ - - - True - True - - diff --git a/panels/sound/cc-stream-row.ui b/panels/sound/cc-stream-row.ui index 6571b8c95..8930f4fda 100644 --- a/panels/sound/cc-stream-row.ui +++ b/panels/sound/cc-stream-row.ui @@ -19,6 +19,8 @@ True + end + 0