Skip to content

Commit

Permalink
Merge pull request #49 from akshayr-mecha/fixes
Browse files Browse the repository at this point in the history
fix(status bar): fix padding issue in status bar icons
  • Loading branch information
shoaibmerchant authored Apr 18, 2024
2 parents fe1105d + 2134d77 commit 02f1cf2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions shell/status-bar/src/modules/battery/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use mctk_core::{
component::Component,
lay,
layout::Alignment,
node, size,
node, rect, size,
widgets::{Div, Svg},
Color, Node,
};
Expand All @@ -25,8 +25,9 @@ impl Component for BatteryComponent {
,
[
size: [24, 24],
cross_alignment: Alignment::Center,
axis_alignment: Alignment::Center,
// cross_alignment: Alignment::Center,
// axis_alignment: Alignment::Center,
padding: [1, 2, 1, 2]
],
)
.push(node!(
Expand Down
5 changes: 3 additions & 2 deletions shell/status-bar/src/modules/bluetooth/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ impl Component for BluetoothComponent {
,
[
size: [24, 24],
cross_alignment: Alignment::Center,
axis_alignment: Alignment::Center,
// cross_alignment: Alignment::Center,
// axis_alignment: Alignment::Center,
padding: [1, 2, 1, 2]
],
)
.push(node!(
Expand Down
5 changes: 3 additions & 2 deletions shell/status-bar/src/modules/wireless/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ impl Component for WirelessComponent {
,
[
size: [24, 24],
cross_alignment: Alignment::Center,
axis_alignment: Alignment::Center,
// cross_alignment: Alignment::Center,
// axis_alignment: Alignment::Center,
padding: [1, 2, 1, 2]
],
)
.push(node!(
Expand Down

0 comments on commit 02f1cf2

Please sign in to comment.