Skip to content

Polish affordance to maximize panel #22135

Closed

Description

  1. Add a default keybinding
  2. Add an icon in the panel header

Currently there is only the action View: Toggle Maximized Panel in the command palette

Activity

  1. added
    feature-request
    on Mar 7, 2017
  2. isidorn commented on Mar 8, 2017

    @isidorn
    Author
    1. I am planning to add keybinding in the likes of cmd + k p, or cmd + k m, both of these are free but I hit this issue Chords not working when terminal has focus #22211
    2. I plan to add an icon left of the close icon to all panels. Searched thorugh VS icons and I think we could use the following two (note that there are two states, so the icon would toggle)

    expand_16x
    collapse_16x

    These icons are currently in the VS style, I tried converting them to VS Code sytle icons but failed using Cherry Wang (@chryw) utils methods here. The scripts ask me for input and output for which I give absolute paths on my mac but this produces no effect. What am I doing wrong here?

    The downside of these icons is that the plus could be confused with the plus to add a terminal.
    An alternative set of icons could be the win native ones to maximize / restore window position. However I could not find those in the Visual Studio icon repository

    ping Benjamin Pasero (@bpasero) Daniel Imms (@Tyriar) Chris Dias (@chrisdias) Steven Clarke (@stevencl) for feedback

  3. bpasero commented on Mar 8, 2017

    @bpasero
    Contributor

    Sorry, but these icons do not imply to me a maximize/minimize behaviour at all. They look like icons used for trees to expand/collapse. Can we find something that is more typical, e.g. for window management where you have this typically:

    image

  4. isidorn commented on Mar 8, 2017

    @isidorn
    Author

    Yeah that idea I describe in my comment also in the last paragraph.
    And I agree that solution would be the most intuitive, however could not find anything like that on the vscode icons site so we might need custom icons.

  5. stevencl commented on Mar 8, 2017

    @stevencl
    Member

    Visual Studio uses the following when in maximised mode (minimise, restore to previous size, close)

    image

    And then these when not in maximised mode: (minimise, maximise, close)
    image

    I imagine that Christy could get these icons for us?

  6. bpasero commented on Mar 8, 2017

    @bpasero
    Contributor

    Do we want all three, I wonder. We already have actions there and would probably end up with more than 3...

  7. isidorn commented on Mar 8, 2017

    @isidorn
    Author

    We'll we do not want all three since minimize and close are the same in our context.

  8. bpasero commented on Mar 8, 2017

    @bpasero
    Contributor

    Ah ok I was thinking that minimize would put the panel into the minimal height it can have instead of closing.

  9. Tyriar commented on Mar 8, 2017

    @Tyriar
    Contributor

    Don't use cmd+k p, the ctrl variant is copy active file path on Linux and Windows, which I use 😄

    { "key": "ctrl+k p", "command": "workbench.action.files.copyPathOfActiveFile" }

    The VS icons are a much better choice than -/+. Another option is to use a the old close button v for restore and invert it for maximise ^.

    If we need I can write some SVGs in the style of the VS restore/maximise icon.

  10. isidorn commented on Mar 9, 2017

    @isidorn
    Author

    I actually like the idea of using v and ^ in this case. Though I still feel like those original icons we used might be a bit too heavy and we could experiment with making them just a bit lighter

  11. chryw commented on Mar 9, 2017

    @chryw
    Contributor

    I like ^ and v for expand/collapse a panel that's on the bottom. I can make the icons. Just want to double check (sorry not a frequent VS Code user), is the panel always docked to bottom?

    BTW Isidor Nikolic (@isidorn) the path didn't work probably because I used a dirty quick workaround to turn "" into "/" for Windows' sake. You can get rid of the replace if you're already on unix environment.
    gulp.src([${response.srcPath.replace('\\', '/') || 'src'}/**/*.svg]) -->
    gulp.src([${response.srcPath || 'src'}/**/*.svg])

  12. Tyriar commented on Mar 10, 2017

    @Tyriar
    Contributor

    Cherry Wang (@chryw) the panel is always docked to the bottom, however that may change in the coming months. If we did go with ^/v I expect we would rotate the icons 90° when the panel is vertical.

  13. isidorn commented on Mar 10, 2017

    @isidorn
    Author

    Cherry Wang (@chryw) I agree with Daniel Imms (@Tyriar) point about possibly rotating. So let's go ahead and create those icons. Keep in mind that we previously already had a v icon, but it was too thick and did not fit well with the rest of the icons used in the title bar imho. So we could use something similar but I would prefer if it fits a bit better with the following

    screen shot 2017-03-10 at 09 25 41
    screen shot 2017-03-10 at 09 25 46
    screen shot 2017-03-10 at 09 25 50

  14. chryw commented on Mar 10, 2017

    @chryw
    Contributor

    Isidor Nikolic (@isidorn)
    We have 2 sets of chevron icons. Do you think any of these works for the terminal panel?
    image
    945738_github_VSCodeTerminalExpandCollapse_Update1.zip

  15. Tyriar commented on Mar 10, 2017

    @Tyriar
    Contributor

    Cherry Wang (@chryw) Maybe the second one's size with the first one's weight?

    image

    image


    For reference here's a screenshot from an older version with the older icon:

    image

  16. chryw commented on Mar 10, 2017

    @chryw
    Contributor
  17. isidorn commented on Mar 14, 2017

    @isidorn
    Author

    After discussing with Daniel Imms (@Tyriar) we have agreed that no default keybinding is necessery especially since now the action is more visible.
    Cherry Wang (@chryw) thanks a lot for the icons, these work for me

    panel

  18. locked and limited conversation to collaborators on Nov 18, 2017
  19. added a commit that references this issue on Sep 6, 2026
    8a39872
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions