Skip to content

chore(appearance): make window gap and active hint size constraint consistent#1667

Open
hojjatabdollahi wants to merge 1 commit into
pop-os:masterfrom
hojjatabdollahi:hojjat/gap-size
Open

chore(appearance): make window gap and active hint size constraint consistent#1667
hojjatabdollahi wants to merge 1 commit into
pop-os:masterfrom
hojjatabdollahi:hojjat/gap-size

Conversation

@hojjatabdollahi
Copy link
Copy Markdown
Contributor

@hojjatabdollahi hojjatabdollahi commented Dec 18, 2025

[I created a separate PR for this, since I'm not sure if the current design is preferred.]

Keep the constraint consistent in both directions:

  • increasing active_hint may increase gaps (handled in set_active_hint)
  • decreasing gaps should also decrease active_hint if it would otherwise exceed gaps

…nsistent

Keep the constraint consistent in both directions:

- increasing active_hint may increase gaps (handled in set_active_hint)
- decreasing gaps should also decrease active_hint if it would otherwise
exceed gaps
let active_hint = self.builder().active_hint;
if gap < active_hint {
self.set_active_hint(gap)?;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It would be more consistent to move this check into ThemeCustomizer further down this file, since that's where the "Update the gap if it's less than the active hint" check is.

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.

2 participants