fix 1px gaps inconsistency

This commit is contained in:
end-4 2024-03-03 01:20:30 +07:00
parent 4c0cc1237a
commit fefab9a791
2 changed files with 6 additions and 6 deletions

View file

@ -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 }),

View file

@ -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(),