Coder Social home page Coder Social logo

oliverschwendener / electron-fluent-ui Goto Github PK

View Code? Open in Web Editor NEW
53.0 4.0 11.0 11.91 MB

Template for developing Electron applications using TypeScript and Fluent UI React components

License: MIT License

TypeScript 78.76% HTML 2.50% JavaScript 18.75%
electron typescript fluentui react

electron-fluent-ui's Introduction

Electron + Fluent UI React

This is a repo to quickly start the development of an electron application with Fluent UI React.

Windows Light Windows Dark macOS Light macOS Dark

Development

  • Install dependencies

    $ npm install
    
  • Run app in dev mode

    $ npm run dev
    
  • Lint files

    $ npm run lint
    
  • Perform typecheck

    $ npm run typecheck
    
  • Run tests

    $ npm run test
    
  • Build and package app

    $ npm run build && npm run package
    

electron-fluent-ui's People

Contributors

dependabot[bot] avatar oliverschwendener avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

electron-fluent-ui's Issues

Can't Import any component from Electron

When I import { desktopCapturer } from "electron";
and use it like this:
desktopCapturer.getSources({ types: ['window', 'screen'] })
Uncaught ReferenceError: __dirname is not defined

Completely white background until window is resized

This seems to be an issue both in the release template executable, as well when running a clean install with "npm run dev", or in a built project packaged using a clean install of this project. The background stays completely white, ignoring the "backgroundMaterial: 'mica' or 'acryllic' attributes set on window creation. I have tried my best to find a fix for this issue, to no avail. I have replicated this issue on another machine running Windows 11 as well. Setting "frame: false" fixes the issue, although for most purposes having "frame: true" is important. Also launching the app on a secondary screen seems to fix the issue, for some reason. Although this isn't either a suitable solution to the problem. Doing something like "window.resizeBy(790,680);" works too, but again, not ideal.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.