O'Reilly logo

Developing an Electron Edge by Max Gfeller, Troy Mott, Adam Lynch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Platform Detection and Custom Frames

Now let’s take a look at what options we have when it comes to the chrome of our app. This includes how you can tweak the window frame, the controls, and more. To do this, you need to know about the environment our app is presently running in. In this chapter, we’ll be taking a dive into the world of platform-specific styles, custom HTML controls, the ease at which you can create a custom frame, and the downsides that come with it.

Custom window frame example on Windows

First though, we need to cover platform detection.

There are various reasons why you might want to detect which platform or operating system your app is currently running ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required