forked from Shinonome/dots-hyprland
fix 1px gaps inconsistency
This commit is contained in:
@@ -211,7 +211,7 @@ export default () => {
|
|||||||
onSecondaryClickRelease: () => execAsync(['bash', '-c', 'playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` &']).catch(print),
|
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),
|
onMiddleClickRelease: () => execAsync('playerctl play-pause').catch(print),
|
||||||
child: Box({
|
child: Box({
|
||||||
className: 'spacing-h-5',
|
className: 'spacing-h-4',
|
||||||
children: [
|
children: [
|
||||||
SystemResourcesOrCustomModule(),
|
SystemResourcesOrCustomModule(),
|
||||||
BarGroup({ child: musicStuff }),
|
BarGroup({ child: musicStuff }),
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const BatBatteryProgress = () => {
|
|||||||
|
|
||||||
const BarClock = () => Widget.Box({
|
const BarClock = () => Widget.Box({
|
||||||
vpack: 'center',
|
vpack: 'center',
|
||||||
className: 'spacing-h-5 txt-onSurfaceVariant bar-clock-box',
|
className: 'spacing-h-4 txt-onSurfaceVariant bar-clock-box',
|
||||||
children: [
|
children: [
|
||||||
Widget.Label({
|
Widget.Label({
|
||||||
className: 'bar-clock',
|
className: 'bar-clock',
|
||||||
@@ -63,7 +63,7 @@ const UtilButton = ({ name, icon, onClicked }) => Button({
|
|||||||
|
|
||||||
const Utilities = () => Box({
|
const Utilities = () => Box({
|
||||||
hpack: 'center',
|
hpack: 'center',
|
||||||
className: 'spacing-h-5 txt-onSurfaceVariant',
|
className: 'spacing-h-4 txt-onSurfaceVariant',
|
||||||
children: [
|
children: [
|
||||||
UtilButton({
|
UtilButton({
|
||||||
name: 'Screen snip', icon: 'screenshot_region', onClicked: () => {
|
name: 'Screen snip', icon: 'screenshot_region', onClicked: () => {
|
||||||
@@ -136,7 +136,7 @@ const BatteryModule = () => Stack({
|
|||||||
transitionDuration: 150,
|
transitionDuration: 150,
|
||||||
children: {
|
children: {
|
||||||
'laptop': Box({
|
'laptop': Box({
|
||||||
className: 'spacing-h-5', children: [
|
className: 'spacing-h-4', children: [
|
||||||
BarGroup({ child: Utilities() }),
|
BarGroup({ child: Utilities() }),
|
||||||
BarGroup({ child: BarBattery() }),
|
BarGroup({ child: BarBattery() }),
|
||||||
]
|
]
|
||||||
@@ -145,7 +145,7 @@ const BatteryModule = () => Stack({
|
|||||||
child: Box({
|
child: Box({
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
hpack: 'center',
|
hpack: 'center',
|
||||||
className: 'spacing-h-5',
|
className: 'spacing-h-4',
|
||||||
children: [
|
children: [
|
||||||
MaterialIcon('device_thermostat', 'small'),
|
MaterialIcon('device_thermostat', 'small'),
|
||||||
Label({
|
Label({
|
||||||
@@ -219,7 +219,7 @@ export default () => Widget.EventBox({
|
|||||||
onScrollDown: (self) => switchToRelativeWorkspace(self, +1),
|
onScrollDown: (self) => switchToRelativeWorkspace(self, +1),
|
||||||
onPrimaryClick: () => App.toggleWindow('sideright'),
|
onPrimaryClick: () => App.toggleWindow('sideright'),
|
||||||
child: Widget.Box({
|
child: Widget.Box({
|
||||||
className: 'spacing-h-5',
|
className: 'spacing-h-4',
|
||||||
children: [
|
children: [
|
||||||
BarGroup({ child: BarClock() }),
|
BarGroup({ child: BarClock() }),
|
||||||
BatteryModule(),
|
BatteryModule(),
|
||||||
|
|||||||
Reference in New Issue
Block a user