Skip to content

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented May 30, 2022

  • Keep neat illustrations while adding explicit labels for each combobox
  • Solves a problem in Stack Switcher → SettingsSidebar #299 where this view forces the width of the window to increase
  • Add a scrollbox so we don't force the height of the window either

@danirabbit danirabbit requested a review from a team May 30, 2022 19:36
@treppenwitz03 treppenwitz03 mentioned this pull request Jun 10, 2022
9 tasks
@jeremypw
Copy link
Collaborator

Screenshot from 2022-06-30 19 10 51

@jeremypw
Copy link
Collaborator

My initial reaction is that the comboboxes are a lot wider than the text therein, which looks a bit odd.

@jeremypw
Copy link
Collaborator

Should #299 be merged first - I guess this layout works better with that design?

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Code looks good.Just left a comment about appearance.

Also it looks like the settings and gala has the ability to have different custom commands assigned to different corners. As you can choose "custom command" for more than one corner it would make sense to have separate entries for each command command rather than an obscure way of entering multiple commands into one entry. This layout would facilitate that.

@danirabbit
Copy link
Member Author

You're right! I didn't realize that was possible. I'll update this branch to take advantage of that. From gsettings:

If you just put a single command, it will be used for every hot corner assigned to 'custom-command'. If you instead use the pattern 'hotcorner-topleft:command;;hotcorner-bottomright:command' the specific commands will be used per hotcorner. Possible identifiers are 'hotcorner-[topleft; topright; bottomleft; bottomright]' followed by a ':' and then the command. ';;' is used as delimiter between command definitions.

@danirabbit
Copy link
Member Author

@jeremypw okay you should be able to set per-corner custom commands now!

Screenshot from 2022-06-30 16 28 56

@jeremypw
Copy link
Collaborator

jeremypw commented Jul 1, 2022

Yeah, I did not know until I saw the description of the setting - not exactly discoverable!

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Looks good now. Just a couple of bits of residual debugging code (lines 94, 210).

It might be better to use a variant array to store the custom commands, like Files tab info does, rather than manipulating strings but that can be considered later.

@danirabbit
Copy link
Member Author

Yeah I think ideally this should probably be a string array in Gala's gsettings. It's pretty ugly like you said doing this string manipulation

@jeremypw jeremypw merged commit fae9ebf into master Jul 1, 2022
@jeremypw jeremypw deleted the redesign-multitasking branch July 1, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants