any way to force borderless apps to show border [closed]
Asked Answered
R

1

8

I have noticed recent tendency with new windows apps to not have borders. Github Desktop, MS Teams, VS Code. It hurts my brain and eyes to make out edges of the applications every single time. There is literally no borders, no shadows, not a single pixel line, nothing at all.

Am I missing something? Am I not doing something correctly? Am I the only one who get that feeling of frustration?

Does anyone know and can explain why and how that is done? Does anyone know any workarounds or a ways to force some kind of a border (even a shadow will work)?

Reduplication answered 9/11, 2018 at 15:32 Comment(2)
Great question. Just not a coding question, I suppose. Is there an exchange for "quality of programmer life" questions? :--)Hopscotch
You are not alone in this woe, brother. I think the reason is that young designers ignore wisdom from travelled paths, they don't honor ideas behind Windows 95 UI and UX, fools!Magdeburg
B
3

I can only offer an answer for VS Code. You need to set the value of "Title Bar Style" (in the "Window" section of settings) to "native", and allow the application to restart. You can find that setting easily by hitting [Ctrl + ,] to open the settings window, and then using the "search settings" feature at the top to search for "title bar style".

I found this by looking through the VS Code source code for occurrences of the "frame" option for Electron (which is the framework that VS Code is built with). The snippet I found in src/vs/code/electron-main/window.ts is:

if (useCustomTitleStyle) {
    options.titleBarStyle = 'hidden';
    this.hiddenTitleBarStyle = true;
    if (!isMacintosh) {
        options.frame = false;
    }
}

It's slightly odd that it only turns the frame off on a non-Macintosh OS. It might be better if that setting for options.frame was settable separately to the useCustomTitleStyle setting.

Github Desktop and MS Teams (as far as I can tell by a quick search) also use the Electron framework, so perhaps there is a similar way to enable the frame for those too.

Brno answered 15/2, 2019 at 23:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.