Skip to content

Conversation

@wash2
Copy link
Collaborator

@wash2 wash2 commented Oct 16, 2025

@wash2 wash2 requested review from a team October 16, 2025 14:30
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the padding before:

before - Screenshot_2025-10-17_11-16-34

This is after:

after - Screenshot_2025-10-17_11-31-50

@pop-os/ux Does this look good?

It looks like this doesn't fix the dock icon hover/active background not matching padding between the left and right side, but that's not a regression:

hover-left - Screenshot_2025-10-17_11-32-45 hover-right - Screenshot_2025-10-17_11-32-51

Adding & moving applets around still works as expected. I noticed after I added an App Tray that the app icons have less padding than the system tray icons on the right side of the dock:

tray vs tray - Screenshot_2025-10-17_11-35-46

...but again, that's not a regression. I can click applets with the mouse cursor in the corner as long as the panel's not configured to have a gap between it and the screen edge, which matches the behavior from before.

@wash2
Copy link
Collaborator Author

wash2 commented Oct 17, 2025

The padding applied here is not going to override the current user config, so I guess also the padding in your dock config also needs to be manually set to 4, or removed.

@jacobgkau
Copy link
Member

Here's what the padding looks like after removing ~/.config/cosmic (and setting the theme back to Light):

Compact:

Screenshot_2025-10-17_12-15-51

Comfortable (default):

Screenshot_2025-10-17_12-15-55

Spacious:

Screenshot_2025-10-17_12-15-59

(The top panel's spacing is the same between Comfortable and Spacious, while the dock's spacing is not. The dock icons are still not centered within the dock.)

On a second system where I know I've never modified any config files manually, I see the dock's vertical spacing is not being updated to the new look when I switch the Interface Density settings. It looks like clicking "Reset to Default" on the Dock page does update the dock's padding to the new values, as does doing that on the Panel page, although there's not actually a GUI setting for the padding on those pages, so there's no visual indicator of why resetting is needed or what it did, which isn't great.

@jacobgkau jacobgkau requested a review from a team October 17, 2025 18:28
@wash2
Copy link
Collaborator Author

wash2 commented Oct 17, 2025

Ya, settings also needs an update for the reset to default button to work. I'll do that now so that it is easier to test the new config values.

@maria-komarova
Copy link

What I see looks good.
I guess there are two things missing:

  • The empty space on the right of the dock that comes from the empty minimized windows applet needs to match the padding on the left of the dock (or not be there when there are no minimized windows).
  • "The top panel's spacing is the same between Comfortable and Spacious, while the dock's spacing is not. " So we need to figure out the spacing for density settings there. We're using custom padding there, not variables so I guess that's why we're not having a difference? It's not the same difference when we use variables between the two modes. But from the numbers we have "+4" for each padding for spacious mode should provide the difference.
    @wash2 what do you think?

@wash2
Copy link
Collaborator Author

wash2 commented Oct 17, 2025

  • "+4" for each padding for spacious mode should provide the difference.

I guess this would be the extra spacing for the dock and app tray then? I could apply the configured spacing to the app tray, and it should be in sync.

@maria-komarova
Copy link

I guess this would be the extra spacing for the dock and app tray then? I could apply the configured spacing to the app tray, and it should be in sync.

Maybe I misunderstood but I thought there was no difference between comfortable and spacious on the Panel. So this is where we might need additional spacing for the spacious mode on the applets?

@wash2
Copy link
Collaborator Author

wash2 commented Oct 17, 2025

Maybe I misunderstood but I thought there was no difference between comfortable and spacious on the Panel.

I don't believe there is right now, but the app tray didn't apply the adjusted spacing after these changes. It can just add spacing between the buttons, or increase padding by an amount equal to the spacing on the panel.

So this is where we might need additional spacing for the spacious mode on the applets?

Either extra padding or spacing is ok in my opinion, or just no difference is ok. I do need to make a change to settings in how it applies compactness changes to the dock config if padding should be used instead of spacing.

@maria-komarova
Copy link

maria-komarova commented Oct 17, 2025

Thanks for the clarification. I think we can stick with spacing and increase it a bit for the spacious mode. That way there will be no difference between comfortable and compact but we'll have increased spacing for the spacious mode. If we use @space_none.
I mean "space_none" is 0 for comfortable and compact but 4 for spacious so it will automatically increase if we stick to the spacing variables scale.

@wash2
Copy link
Collaborator Author

wash2 commented Oct 17, 2025

Ok, the settings branch should have the changes for the spacing now.

@jacobgkau
Copy link
Member

This is what the three modes look like now after clicking "Reset to default" on the Dock, Panel, and Appearance pages (I guess there's no way to avoid people having to do that).

Compact:

Screenshot_2025-10-20_08-41-28

Comfortable:

Screenshot_2025-10-20_08-41-34

Spacious:

Screenshot_2025-10-20_08-41-40

The spacing between app icons is now greater than it was before in the default "Comfortable" mode. It looks a little excessive to me, but if this is what UX wants, that's fine.

In the dock, it appears there's no difference in spacing between the app icons between compact/comfortable/spacious mode, but there is a difference in spacing between the first three icons (for the launcher/workspace/app menus). This doesn't visually make a whole lot of sense to me, as they all appear as icons in the dock. Is this intentional?

@maria-komarova
Copy link

The spacing between app icons is now greater than it was before in the default "Comfortable" mode. It looks a little excessive to me, but if this is what UX wants, that's fine.

It's difficult to me to tell the difference from the screenshots above, to see if the spacing is really excessive.

In the dock, it appears there's no difference in spacing between the app icons between compact/comfortable/spacious mode, but there is a difference in spacing between the first three icons (for the launcher/workspace/app menus). This doesn't visually make a whole lot of sense to me, as they all appear as icons in the dock. Is this intentional?

No, not intentional. We should match the spacing inside the applets with this between applets in the dock.

@wash2 wash2 force-pushed the shrinkable-applets branch from 63a8df2 to a3b58f6 Compare October 30, 2025 17:40
@wash2 wash2 force-pushed the shrinkable-applets branch from a3b58f6 to 200c3ee Compare October 31, 2025 13:06
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a bug. This is the default ("Comfortable") look with this branch:

Screenshot_2025-11-04_12-22-53

This is after changing to Compact:

Screenshot_2025-11-04_12-22-59

But if I change back to Comfortable, the dock remains with its "Compact" spacing:

Screenshot_2025-11-04_12-23-08

I have to go to the Dock page and click "Reset to Defaults" to get the dock to update back to the Comfortable spacing, even though I never changed any settings on the Dock page. (Same goes for the panel.)

maria-komarova
maria-komarova previously approved these changes Nov 4, 2025
Copy link

@maria-komarova maria-komarova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to merge on my side after the bug fixes.

@wash2
Copy link
Collaborator Author

wash2 commented Nov 4, 2025

Thanks for the clarification. I think we can stick with spacing and increase it a bit for the spacious mode. That way there will be no difference between comfortable and compact but we'll have increased spacing for the spacious mode. If we use @space_none. I mean "space_none" is 0 for comfortable and compact but 4 for spacious so it will automatically increase if we stick to the spacing variables scale.

@jacobgkau I believe that the behavior you are seeing in settings is correct, but I do need to install new defaults set to 0 so that it doesn't start with the wrong value.

@jacobgkau
Copy link
Member

I have the following versions installed now:

  • cosmic-panel: 6082070
  • cosmic-applets: 3daff12
  • cosmic-settings: 67213c0

Switching from Comfortable to Compact doesn't seem to do anything to the dock or panel. It sounds like that's expected.

Switching from Comfortable to Spacious on the Appearance page works, but presents me with Reset to default buttons on the Panel and Dock pages. Clicking them puts the panel & dock back to the Comfortable spacing even though I still have Spacious selected. This should not be happening. Is there a way to tell the Panel and Dock pages what the correct default is depending on what the density setting on the Appearance page is set to?

@wash2
Copy link
Collaborator Author

wash2 commented Nov 5, 2025

Switching from Comfortable to Spacious on the Appearance page works, but presents me with Reset to default buttons on the Panel and Dock pages. Clicking them puts the panel & dock back to the Comfortable spacing even though I still have Spacious selected. This should not be happening.

Thanks for catching that. I had implemented handling for this for the full reset, but not the per-dock / panel reset. I'lll fix that, and I'll see if I can make it so that the buttons don't appear when they shouldn't too.

@wash2
Copy link
Collaborator Author

wash2 commented Nov 6, 2025

Ok, I believe the latest commit in settings fixes the remaining reset issues.

mmstick
mmstick previously approved these changes Nov 6, 2025
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still getting the Reset to default button on the Dock page that resets the dock back to the Comfortable spacing when I have it set to Spacious. (This is with cosmic-panel 70c0ef9, cosmic-settings 91c817c, and cosmic-applets 3daff12.)

@jacobgkau
Copy link
Member

With the latest dock padding updates, it also looks like I have a similar issue with the roundness style-- switching to Square reduces the padding, but the dock page presents me with Reset to default, and clicking on that adds the padding back until I switch to one of the round options and then back to Square again.

@wash2
Copy link
Collaborator Author

wash2 commented Nov 7, 2025

With the latest dock padding updates, it also looks like I have a similar issue with the roundness style-- switching to Square reduces the padding, but the dock page presents me with Reset to default, and clicking on that adds the padding back until I switch to one of the round options and then back to Square again.

Ok, it was missing an update to the defaults on_enter for the dock page, so those should be fixed now, sorry that this has taken so many iterations to get right.

@jacobgkau
Copy link
Member

jacobgkau commented Nov 7, 2025

I'm seeing the dock default to having rounder corners if I remove ~/.config/cosmic/com.system76.CosmicPanel.Dock/. I have an initial Reset to default button in Settings that updates it to the newer less-rounded corners. Is there another place the default needs to be updated? I'm assuming removing the config files should end up with the same thing as resetting to default. (This is with cosmic-applets 187cb6e, cosmic-panel 70c0ef9, and cosmic-settings b4ad5a4.)

default border radius should be 12 because it is round with no anchor gap
@wash2 wash2 force-pushed the shrinkable-applets branch from 70c0ef9 to 40e6247 Compare November 7, 2025 21:22
@wash2
Copy link
Collaborator Author

wash2 commented Nov 7, 2025

Ya, an installed config file too

Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like if I switch from Comfortable to one of the other options and then click Reset to default, the reset works, but the selected option incorrectly stays at whatever was selected (it's not refreshed or updated to reflect the defaults that were loaded). However, it looks like that's not a regression; it also happens on b49f1d4 (current master) and e2bb9ad (current release) of cosmic-settings, and on another machine without the shrinkable-applets branch of anything added. I can open a COSMIC Settings issue for that separately if it's not fixed as part of the shrinkable-applets branch.

The Appearance page seems to always be showing a Reset to default button when it's launched, even after e.g. removing the config files before launch or clicking the button and immediately re-launching. That also does not seem to be a regression.

Those two things aside, everything else seems to be working as expected now. I'm not getting spurious Reset to default buttons on the Dock or Panel pages when making changes only on the Appearance page. Resetting after changing other settings on those pages resets to the correct values. All combinations of interface density & style are working as expected. The Appearance page is able to reset to the correct defaults, visual issue with the selected settings notwithstanding.

From what I understand, we'll need to merge this PR first, then pop-os/cosmic-settings#1496 and pop-os/cosmic-applets#1108 will need to be updated to reflect that they aren't depending on a branch anymore?

@wash2
Copy link
Collaborator Author

wash2 commented Nov 8, 2025

From what I understand, we'll need to merge this PR first, then pop-os/cosmic-settings#1496 and pop-os/cosmic-applets#1108 will need to be updated to reflect that they aren't depending on a branch anymore?

Yes, and a libcosmic change for the applets as well.

@wash2 wash2 requested a review from mmstick November 10, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants