-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support equivalent of "customizeUI.activityBar": "wide" #52
Comments
@lehni, thank you for sharing your settings, my VS Code is beautiful again! Maybe maintaining those in a separate repo would make sense (as a custom setup of some sort for this extension)? |
If I understood correctly padding-top let's say it's a bug. extension does not hide host button (if it hides it is definitely a bug and I need a way to reproduce) |
@drcika yes I suppose that could work, if setting the items width to 48px would result in them being positioned the same way as VSCode does it by default (height 48px, no extra vertical padding).
But this also needs the |
Oh and you're right, the hosts button being hidden is not caused by APC, apologies for that mix-up. |
@lehni |
@drcika better, thanks! But I still need to reset the action items styling in the activity bar: Left: Cleared (same as default VSCode) The problems:
The settings I'm still using: ".custom-activitybar div.monaco-workbench div.activitybar > div.content div.monaco-action-bar ul.actions-container li.action-item": "margin-top: 0 !important;",
".custom-activitybar div.monaco-workbench div.activitybar > div.content div.monaco-action-bar ul.actions-container li.action-item a.action-label": "height: 48px; font-size: 24px; -webkit-mask-size: 1em;",
".custom-activitybar div.monaco-workbench div.activitybar > div.content div.monaco-action-bar ul.actions-container li.action-item .badge div.badge-content": "top: 24px; right: 8px;", |
In addition to these tweaks, I also still need to set this: // Don't indent the sidebar title.
".custom-sidebar-titlebar .sidebar .composite.title": "padding-left: 0;",
// Don't indent the statusbar items.
".monaco-workbench .part.statusbar>.items-container>.statusbar-item.left.first-visible-item": "padding-left: 0;", |
I'm curious about those, as it actually makes stuff unaligned compared to default settings. |
@lehni I have a different issue with your setup (and it was the same during Customize UI era): every time I reopen a VS Code window, it shrinks file explorer: Before closing VS Code/its window: After closing VS Code/its window: It's quite annoying since, after a couple of iterations, it makes the file explorer tiny. If it's something fixable in APC extension, I'll open another issue. |
@andreiborisov I never noticed this, mainly because I have VSCode always open, but now that you're mentioning it, I am actually seeing it too. And what's intersting is the math:
48: The default activity-bar width I think VSCode has |
unfortunately, in many, many places they have a hard-coded values :( I don't have much time to deal with this extension, I've been doing this for my own needs, |
@drcika the real bug in #52 (comment) is that the icons aren't all appearing with the same scale factor when using a item size that is different from the activity bar size, due to -webkit-mask-size: calc(var(--activity-bar-action-item-size) * 0.8) calc(var(--activity-bar-action-item-size) * 0.8); To compare, here with the Setting it to But I also think that there should be a value I can set |
I've looked ai bit more into this now. So I'd want to be able to set li.action-item {
margin-top: 0; /* instead of 3px, as hard-coded by APC */
}
a.action-label {
font-size: calc(var(--activity-bar-action-item-size) * 0.5); /* instead of * 0.6, as hard-coded by APC */
-webkit-mask-size: 1em; /* to fix the problem outlined above */
} The batches actually use the correct calculations for the default look already. And here the corresponding settings in the JSON: "apc.stylesheet": {
// Reset APC .activitybar styling back to VSCode defaults.
".custom-activitybar div.monaco-workbench div.activitybar > div.content div.monaco-action-bar ul.actions-container li.action-item": "margin-top: 0 !important;",
".custom-activitybar div.monaco-workbench div.activitybar > div.content div.monaco-action-bar ul.actions-container li.action-item a.action-label": "font-size: calc(var(--activity-bar-action-item-size) * 0.5); -webkit-mask-size: 1em;",
} |
unfortunately I don't have time to work on the extension right now, I would be very grateful if you could do a PR |
Relates to drcika#52
@drcika wow that was fast, thank you for merging both PRs so quickly! A new release with these two features in would be lovely! ;-) |
Closing this since all required PRs were merged. @andreiborisov could you create a separate issue for this? #52 (comment) |
With v0.2.9 released, my settings above can now be simplified to this: {
"window.titleBarStyle": "native",
"window.customTitleBarVisibility": "never",
"window.density.editorTabHeight": "compact",
"apc.electron": {
"titleBarStyle": "hiddenInset",
},
"apc.header": {
"height": 37
},
"apc.sidebar.titlebar": {
"height": 37
},
"apc.activityBar": {
"size": 77,
"itemSize": 48,
"itemMargin": 0
}
} |
First of all, thank you for making this great extension! I'm the author of the original vscode-titlebar-less-macos, which I discontinued when the great Customize UI by @iocave came long, and in the past months I have been maintaining a custom version of it that would keep working on VSCodium, as the only viable solution to still get my desired UX layout:
iocave/customize-ui#156 (comment)
iocave/customize-ui#170 (comment)
But your APC extension has come to rescue and really looks like a solid path forward!
The only bit missing for me right now is the style where the activity bar will match the width of the traffic lights for macOS inline menu bar, and align the activity bar items underneath, as shown in the screenshot above.
After a lot of fiddling around with the settings, I have managed to achieve this look with APC using some custom CSS, but I need to undo a lot of APC's
.activitybar
styling that affects position and sizing of the action items, and I'm hoping there will be a better way to achieve this more easily.Also, I don't think APC should hide the host button in the bottom left corner by default. It could expose this through an option? I can create a second issue for that.
My current settings are:
Without the custom CSS settings, the activity bar looks as follows, which I am sure you'll agree, is far from ideal :)
The text was updated successfully, but these errors were encountered: