Skip to content

Commit

Permalink
chore: update cosmic-panel-config and friends...
Browse files Browse the repository at this point in the history
this commit updates cosmic-panel-config, which now has size_wings and size_center fields. these fields can be used to override the size of applets on any of the panel sides. the templates are updated to account for this, setting these values to None for cosmic, mac, and ubuntu, and for windows, it sets size_wings to Some((Some(XS), Some(XS))). if we don't want this, I can change those values to None as well, but I feel that it looks more windows-like to have those values set smaller than the app tray.

Signed-off-by: Ryan Brue <[email protected]>
  • Loading branch information
ryanabx committed Nov 2, 2024
1 parent bfbd3c9 commit fafaba8
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 30 deletions.
103 changes: 78 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions res/layouts/cosmic.ron
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Panel((
plugins_center: Some([
"com.system76.CosmicAppletTime",
]),
size_wings: None,
size_center: None,
expand_to_edges: true,
padding: 0,
spacing: 2,
Expand All @@ -53,6 +55,8 @@ Panel((
"com.system76.CosmicAppList",
"com.system76.CosmicAppletMinimize",
]),
size_wings: None,
size_center: None,
expand_to_edges: true,
padding: 0,
spacing: 4,
Expand Down
4 changes: 4 additions & 0 deletions res/layouts/mac.ron
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Panel((
"com.system76.CosmicAppletTime",
])),
plugins_center: Some([]),
size_wings: None,
size_center: None,
expand_to_edges: true,
padding: 4,
spacing: 4,
Expand All @@ -45,6 +47,8 @@ Panel((
"com.system76.CosmicPanelAppButton",
"com.system76.CosmicAppletMinimize",
]),
size_wings: None,
size_center: None,
expand_to_edges: false,
padding: 6,
spacing: 4,
Expand Down
10 changes: 7 additions & 3 deletions res/layouts/ubuntu.ron
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Panel((
plugins_center: Some([
"com.system76.CosmicAppletTime",
]),
size_wings: None,
size_center: None,
expand_to_edges: true,
padding: 0,
spacing: 2,
Expand All @@ -53,6 +55,8 @@ Panel((
"com.system76.CosmicAppletMinimize",
], [])),
plugins_center: Some([]),
size_wings: None,
size_center: None,
expand_to_edges: true,
padding: 0,
spacing: 4,
Expand All @@ -67,12 +71,12 @@ Panel((
panel_config_version: 1,
panel_button_config: (
configs: {
"Panel": (
force_presentation: None,
),
"Dock": (
force_presentation: Some(Icon),
),
"Panel": (
force_presentation: None,
),
},
),
panel_button_config_version: 1,
Expand Down
6 changes: 4 additions & 2 deletions res/layouts/windows.ron
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Panel((
"com.system76.CosmicPanelLauncherButton",
"com.system76.CosmicAppList",
]),
size_wings: Some((Some(XS), Some(XS))),
size_center: None,
expand_to_edges: true,
padding: 4,
spacing: 4,
Expand All @@ -38,10 +40,10 @@ Panel((
panel_config_version: 1,
panel_button_config: (
configs: {
"Dock": (
"Panel": (
force_presentation: Some(Icon),
),
"Panel": (
"Dock": (
force_presentation: Some(Icon),
),
},
Expand Down

0 comments on commit fafaba8

Please sign in to comment.