-
Notifications
You must be signed in to change notification settings - Fork 36
Annoucement: Customize UI is probably not going to work anymore #156
Comments
This is the PR that broke Customize UI, possibly forever It was fun while it lasted. |
Hi VS Code PM here 👋 More details about this change and the motivation be found here microsoft/vscode-discussions#257 Thanks |
Hi @isidorn, thank you for stopping by! CustomizeUI is basically a pile of hacks that works by monkey-patching javascript in browser and main processes, which is something that regular extensions can not do, and probably for a good reason :) Still, the problem the extension is solving is quite real and a lot of people seem to find it useful. The primary reason why I wrote the extension was to be able to customize the user interface font and spacing. This is a feature that has been requested for a long time, the issue has over 2000 likes, and sadly it doesn't seem to be addressed any time soon. Somewhat less important is to customize the rest of user interface. Right now the activity bar and titlebar are taking significant amount of space, especially on laptop screen, being able to do something like this (tabs in title bar and horizontal activity bar) is quite nice: (sorry for the old screenshot) And being able to modify the javascript directly allowed me to prototype user interface changes that would have very little chance to actually land in VSCode itself. Even crazy things, like status bar on top (it's actually surprisingly practical...) |
FWIW this was the main reason I was using this extension. At least on macOS the default layout wastes a good amount of vertical space. |
@knopp thanks for providing more details and for explaining the use case. As for the customising Font Size in the workbench - we are aware of this highly upvoted request, however there are technical limitations that @bpasero explained in that issue. What I would like to understand better is what is the main thing your users gain with being able to configure fonts that "Zoom In" does not give them? In what part of the UI are they most impacted with not being able to configure the font size? Pinging @daviddossett our lead designer to consider some of the learnings from your extension. |
For me, I largely used Customize UI to move the status bar to the top and inject custom CSS to make some personal preference tweaks to the sizing of items in the UI. I think adding support for custom CSS as a user preference would go a long way toward alleviating the pain of breaking this extension. I also used |
Back when I wrote customize-ui zoom-in resulted in really bad wobble effect during scrolling for both the sidebar and text editor. That seems to be improved now. |
My usage of the extension is about changing font family in the interface (SegoeUI to Google Sans). What led me to this issue is that I found my overwritten ff is no longer applied for the context menu. |
The activity bar just takes up a lot of space and clutters the UX for me, Having it be at the top (or bottom as some people like that too) is much cleaner. I'm also linking this issue here, where it's already being requested. microsoft/vscode#118692 At least I know I don't have to update my VSCode anymore after the current version until either a workaround is found, or the extremely slim chance this gets implemented. |
"Inline titlebar on macOS" is the best feature! |
Agreed! There's a pretty popular issue for that request in the vscode repo: microsoft/vscode#12377 |
@isidorn sorry but Boooo Microsoft. I'm a hard core dev and this extension makes VSCode usuable for me. A whole range of reasons, some already expressed here. Ability to move the activity bar to the top for extra real estate, ability to change the spacing in the sidebar, ability to the change the font of the overall UI, and on and on. I, like others, will have to stay on 1.73 until I can't stand it any more but without the level of customization this extension provides I find VSCode personally not usable. I guess will need to go look at what Fleet offers as an alternative. |
At this moment monkeyPatch/customize-ui is broken on VSCODE 1.74 |
What if you want to change the font of the context now |
FWIW, my reason to use MonkeyPatch is the Swipe-To-Navigate extension, which enables back/forward navigation methods like the 3-finger swipe in MacOS: https://github.com/seivan/swipe-to-navigate |
Like @hmijail I need monkey-patching to have 3-finger swipe on macOS |
Personally, I used monkeypatch and customize-ui to fix both of those highly upvoted issues Pin tab on a second row like full VS: Make tabs vertically smaller because it's just a bunch of wasted space: |
I cannot live anymore without a wider list row height (28px, which fits my font size -- I made every text 1px bigger). I'd stick with VSCode 1.73.1 for now. |
That's too sad. How about build a unofficial vscode version? |
+1 to "Boooo Microsoft", you could do better! The best thing about vscode - extensions and customization. Due to limited vscode UI customization for several years I've been using customize-ui to have the editor that I wanted. Top priority features that I use - font customization (size, font-family, lines spacing, letters spacing) in all parts of vscode (including menu) and ability to make vscode frameless (without title bar). Sticking to 1.73.1 for now. |
You mean https://vscodium.com ? |
Before customize-ui, there was vscode-titlebar-less-macos of which I am the author, and already then there were discussions with @bpasero to bring this into VSCode properly: lehni/vscode-titlebar-less-macos#34 I still believe that this should be the default VSCode style on Mac, it makes sense on any kind of 16:9 / 16:10 format screen. Happy to be of help if I can. Until then, I will be sticking to version 1.73.1. |
Thanks! I used this technique and it works for now. just added the class selector so that the editor font can be monospace and different to that of the ui.
|
Hey guys, here are the mangled names: https://gist.github.com/giovanicascaes/5afbfdaa8e07edaa9b25acfb55a175a5 I took from the mangler class in VSCode repository inserting logs in the middle of the code and running the build process. I tried to implement a fix, no luck though. When applying Monkey Patch on a regular VSCode app copy they turn it into VSCode OSS and things get messed up. I'm letting the name list here with the hope someone can figure out a fix, otherwise I'll try again when I have more time |
I am looking for help for further development who wants to test |
Is this a continuation of Customize UI fixing that issue? |
yes this is based on Customize UI |
@drcika Seems like white space become very wield after enabling the extension. |
I doubt that mapping works for the official Microsoft VSCode builds since it'll differ for each build; Microsoft needs to provide an open way to access sourcemaps. Furthermore, since each build probably has different mappings, you either have to store and bundle all stable version's sourcemaps with the extension, or download them at runtime. |
At least some source maps available from the following paths:
where |
The giga-chad. Just installed this and added this code in my "apc.electron": {
"titleBarStyle": "hidden"
},
"window.titleBarStyle": "native" Edit: After disabling this extension, the titlebar is still gone. I don't know what you did but that nightmare is gone for me. |
you need to run command "Disable Apc extension" i order to revert patch |
@drcika Is there any way to use web font or |
Refused to load the stylesheet 'vscode-file://test.css' because it violates the following Content Security Policy directive: "style-src 'self' when I solve that part I will add that a separate file can also be used |
@drcika Thanks. Can you add a way to write CSS by text instead of by object? Seems that it is the only way for having multiple Also, is changes of white space intended? Is it possible to use the extension without changing white space? |
some part is fixed, will be in next update |
@drcika What an amazing extension, thank you for the work! |
Ha! In the newest version of vscode insiders at least, the title bar returns. Perhaps Microsoft "patched" apc-extension? It could just be that something changed and the extension no longer works, but at this point it almost feels like they see the title bar as a non-negotiable for mac users, though for the life of me I can't see why. |
|
Might be useful to add the same thing monkeypatch did and see the update and advise you to rerun the action. |
Man I'm dumb. That worked, thanks! |
The previous one was broken by new updates in VSCode iocave/customize-ui#156
Hey fellow customizers, This is particularly true for the inline titlebar, as there is no dedicated extension for Windows. Take a peek at my VSCode setup ;) |
does not necessarily mean tell me how you manage without it menubar? |
@drcika thanks for creating APC! It works really well, and with a bit of fiddling, I was even able to get the wide activity bar look on macOS working, see: |
VSCode added a build step that mangles all typescript private fields so they can't be reasonably accessed by Customize UI. This greatly reduces hooks that customize-ui can intercept and methods it can call.
It might still be possible to change font size, but other layout changes are probably gone. Or at least made much more difficult.
The text was updated successfully, but these errors were encountered: