From c0090cb1b5e12f0b656797e1d99fa36395ad3e68 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Mon, 7 Oct 2024 15:15:58 -0300 Subject: [PATCH] :sparkles: feat(swaync): add some padding to widget-title and widget-label --- swaync/config.json | 2 +- swaync/style.css | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/swaync/config.json b/swaync/config.json index cda5139..1707dc9 100644 --- a/swaync/config.json +++ b/swaync/config.json @@ -98,7 +98,7 @@ "type": "toggle", "active": false, "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && bluetoothctl power on || bluetoothctl power off'", - "update-command": "sh -c '[[ $(bluetoothctl show | grep Powered | sed 's/Powered: //') == yes ]] && echo true || echo false'" + "update-command": "sh -c '[[ $(bluetoothctl show | grep Powered | sed 's/Powered: //') == 'yes' ]] && echo 'true' || echo 'false''" }, { "label": "󰒲 DNDisturb", diff --git a/swaync/style.css b/swaync/style.css index b7f47c8..d3e422f 100644 --- a/swaync/style.css +++ b/swaync/style.css @@ -153,6 +153,10 @@ tooltip { padding: 1.5rem; } +.control-center .widget-title { + padding: 1rem .2rem; +} + .control-center .widget-title > label { color: @text; font-size: 1.6em; @@ -179,6 +183,16 @@ tooltip { font-weight: 600; } +.control-center .widget-label { + padding: .2rem; +} + +.control-center .widget-label > label { + color: @foreground; + font-weight: 600; + font-size: 1.6em; +} + .control-center-dnd { margin-top: 5px; border-radius: 8px; @@ -269,13 +283,6 @@ tooltip { background: #313244; } -.control-center .widget-label > label { - color: @foreground; - font-weight: 600; - font-size: 1.6em; -} - - .widget-buttons-grid { margin-top: 2px; margin-left: 5px;