Skip to content

An application that will work on all platforms with controls in their native visual style.

License

Notifications You must be signed in to change notification settings

AngelDTF/platform-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ WARNING! ⚠️
This project is still in early development stages!
Do not expect most features to work as expected.

platform-os

An application that will work on all platforms with controls in their native visual style.

What is platform-os?

This project, platform-os, was made to simulate visual styles from a variety of operating systems while still keeping main window controls (e.g. Buttons, Combo Boxes, etc.). The window controls are even functional through JavaScript.

How can I use platform-os?

Platform-os is built on HTML, JavaScript, and CSS, and was created using NodeJS and Electron.
I'm not here to show you how you could use this in your own project, but you can peek at the source code and use/modify it, it you feel like.
No guarantees it'll work on generic websites since the code includes Node functions. Should work fine if you're using it in an Electron project with Node integration.

Can I test the controls/styles?

Of course. We provide a demo that you can launch to mess around with or test with adding your own visual styles. To open the demo, follow these steps:

  • Prerequisite: Download and install the recomended version of NodeJS
  • Open Command Prompt (Windows) or Terminal (macOS/Linux)
  • Clone the repository by typing the following: git clone https://github.com/AngelDTF/platform-os.git
  • Change directory to the project directory by typing cd platform-os
  • Install the project dependencies with npm i
  • And finally, launch the demo with npm test

Can I add my own visual styles?

Yup! Platform-os is built to automatically search for visual styles in the right folder. Just follow these steps:

  • Optional: Fork this repository
  • Clone the repository to a local space on your drive
  • Change directory to platform-os/static/css/platforms
  • Go into the folder matching your platform. If it does not exist, you can create one
  • Create a new CSS file and rename it so the name matches up with the version number of the platform/style you're trying to replicate

So, how do I code my own visual style?

There's currently no documentation on it. I'd recommend looking at the existing visual styles and trying to learn off of those. Note: you should have a basic understanding of CSS before trying to get into this.

Well, I made a visual style. How do I test it?

It's pretty much the same way you test it in the section "Can I test the controls/styles?"
Here's a quick rundown:

  • Make sure you have the recommended version of NodeJS
  • Go to the root directory of the project
  • Open Command Prompt (Windows) or Terminal (macOS/Linux)
  • Install the project dependencies with npm i
  • Then open the project with npm test

About

An application that will work on all platforms with controls in their native visual style.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published