Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Bring activityBar style from vscode-titlebar-less-macos as option to customize-ui #17

Closed
lehni opened this issue Dec 18, 2019 · 14 comments

Comments

@lehni
Copy link

lehni commented Dec 18, 2019

First of all, congrats on making this extension! I have started using it since porting my vscode-titlebar-less-macos extension to the newVSCode would represent a massive rewrite.

One thing I am missing though is the style of the activity-bar on the side (reminiscent of how Slack handles the UI), and I was wondering if we could work together on bringing this to customize-ui?

I would suggest adding a third option for "customizeUI.activityBar", perhaps called "left-extended" or "left-unifed"? It would then have to take on the width of --traffict-lights-width, and extend all the way to the top:

preview

I would then discontinue the extension and recommend customize-ui instead.

@knopp
Copy link
Collaborator

knopp commented Dec 18, 2019

Hi,

I just published 0.1.29, it adds wide option to customizeUI.activityBar setting. Let me know if it does what you want it to.

I wanted to avoid including left in the name, as with this on, the activity bar will be wide regardless of whether the sidebar is on left or right.

@lehni
Copy link
Author

lehni commented Dec 18, 2019

Wow, you work fast! This is perfect, exactly what I was looking for, thank you!

@lehni lehni closed this as completed Dec 18, 2019
@lehni
Copy link
Author

lehni commented Dec 18, 2019

For the record: With these settings, I get the same behavior as vscode-titlebar-less-macos:

    "window.titleBarStyle": "native",
    "customizeUI.titleBar": "inline",
    "customizeUI.activityBar": "wide",

@lehni
Copy link
Author

lehni commented Dec 18, 2019

One detail that my extension was solving: When zooming in, the bar goes too wide:

image

I used to do this to correct that:

var factor = ${browser}.getZoomFactor();
var width = 78 / factor;
var height = 35 / factor;

@knopp
Copy link
Collaborator

knopp commented Dec 18, 2019

I'm aware of zooming issue. It will correct itself after reloading window. The width is dependent on zoom factor, but the layout is not updated when changing zoom.

@lehni
Copy link
Author

lehni commented Dec 18, 2019

Oh I see. I guess you could listen to the zoom event itself and update the sizes then, but it may not be worth the effort.

@lehni
Copy link
Author

lehni commented Dec 20, 2019

@knopp for better alignment of the badge in wide mode, I recommend adding this styling:

monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content: {
  left: calc(50% + 0.5em);
  right: auto;
}

I'm currently doing so through "customizeUI.stylesheet":

  "customizeUI.stylesheet": {
    ".monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content": "left: calc(50% + 0.5em); right: auto;"
  },

@knopp
Copy link
Collaborator

knopp commented Dec 20, 2019

Thanks. I've added it 6e08c7b

@lehni
Copy link
Author

lehni commented Dec 20, 2019

Perfect, thank you!

@knopp
Copy link
Collaborator

knopp commented Dec 20, 2019

Can you try 0.1.30 (should be published soon) and let me know if it works for you?

@lehni
Copy link
Author

lehni commented Dec 20, 2019

Yes i just did, works as expected. 🎉

image

@lehni
Copy link
Author

lehni commented Dec 20, 2019

I have deprecated and archived this now: https://github.com/lehni/vscode-titlebar-less-macos

@adrusi
Copy link

adrusi commented Nov 16, 2021

The activity bar seems to no longer be centered under the traffic light, I've added this to my stylesheet to achieve the look in the screenshots in this thread:

".monaco-workbench .activitybar>.content :not(.monaco-menu)>.monaco-action-bar .action-label.codicon": "width: 100%"

@lehni
Copy link
Author

lehni commented Nov 17, 2021

@adrusi see here: #94 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants