From ee86b164fb13e4236201dddfdfa770935c85bf6a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 3 Mar 2024 01:20:30 +0700 Subject: [PATCH] fix 1px gaps inconsistency --- .config/ags/modules/bar/normal/music.js | 2 +- .config/ags/modules/bar/normal/system.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/ags/modules/bar/normal/music.js b/.config/ags/modules/bar/normal/music.js index 0d96b6b1..13ec6c71 100644 --- a/.config/ags/modules/bar/normal/music.js +++ b/.config/ags/modules/bar/normal/music.js @@ -211,7 +211,7 @@ export default () => { onSecondaryClickRelease: () => execAsync(['bash', '-c', 'playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` &']).catch(print), onMiddleClickRelease: () => execAsync('playerctl play-pause').catch(print), child: Box({ - className: 'spacing-h-5', + className: 'spacing-h-4', children: [ SystemResourcesOrCustomModule(), BarGroup({ child: musicStuff }), diff --git a/.config/ags/modules/bar/normal/system.js b/.config/ags/modules/bar/normal/system.js index d2d4ee87..4e9c248c 100644 --- a/.config/ags/modules/bar/normal/system.js +++ b/.config/ags/modules/bar/normal/system.js @@ -30,7 +30,7 @@ const BatBatteryProgress = () => { const BarClock = () => Widget.Box({ vpack: 'center', - className: 'spacing-h-5 txt-onSurfaceVariant bar-clock-box', + className: 'spacing-h-4 txt-onSurfaceVariant bar-clock-box', children: [ Widget.Label({ className: 'bar-clock', @@ -63,7 +63,7 @@ const UtilButton = ({ name, icon, onClicked }) => Button({ const Utilities = () => Box({ hpack: 'center', - className: 'spacing-h-5 txt-onSurfaceVariant', + className: 'spacing-h-4 txt-onSurfaceVariant', children: [ UtilButton({ name: 'Screen snip', icon: 'screenshot_region', onClicked: () => { @@ -136,7 +136,7 @@ const BatteryModule = () => Stack({ transitionDuration: 150, children: { 'laptop': Box({ - className: 'spacing-h-5', children: [ + className: 'spacing-h-4', children: [ BarGroup({ child: Utilities() }), BarGroup({ child: BarBattery() }), ] @@ -145,7 +145,7 @@ const BatteryModule = () => Stack({ child: Box({ hexpand: true, hpack: 'center', - className: 'spacing-h-5', + className: 'spacing-h-4', children: [ MaterialIcon('device_thermostat', 'small'), Label({ @@ -219,7 +219,7 @@ export default () => Widget.EventBox({ onScrollDown: (self) => switchToRelativeWorkspace(self, +1), onPrimaryClick: () => App.toggleWindow('sideright'), child: Widget.Box({ - className: 'spacing-h-5', + className: 'spacing-h-4', children: [ BarGroup({ child: BarClock() }), BatteryModule(),