Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme engine #4

Open
rgooler opened this issue Dec 7, 2017 · 1 comment
Open

Theme engine #4

rgooler opened this issue Dec 7, 2017 · 1 comment

Comments

@rgooler
Copy link
Member

rgooler commented Dec 7, 2017

Need a basic theming engine for the app. Thinking folders like this:

themes/
  default/
    theme.css
    README.md
    index.html
    settings.html
    providers/
      steam/
        login.html
        get_api_key.html
        display.html

Where themes/default/index.html would have logic for, say, rotating what screens were displayed, themes/default/providers/steam/display.html would display steam stats post login, etc.

@rgooler
Copy link
Member Author

rgooler commented Dec 15, 2017

Might need this later:

const userDataPath = (electron.app || electron.remote.app).getPath('userData');
// this.path = path.join(userDataPath, 'user_preferences.json');
config.setBaseDir(userDataPath)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant