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

exclude from theme api #222

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

exclude from theme api #222

wants to merge 1 commit into from

Conversation

mouse0270
Copy link

  • added game.modules.get('pf2e-dorako-ui').api.registerExcludeApplication('WindowTabs'); api call to exclude instances from recieving the dorako-ui class
  • Added check for Windows to self exclude from dark mode. Include dorakoDarkMode: false when declaring your window settings to force window to never be in dark mode.
new WindowTabs({
  id: `window-tabs-${collectionName}`,
  template: `modules/${MODULE.ID}/templates/window-tabs.hbs`,
  classes: ['window-tabs-app', `${MODULE.setting('cleanHeaderButtons') ? 'clean-header-buttons' : ''}`],
  resizable: true,
  height: height,
  width: sheetApp?.options?.width ?? 800, 
  dorakoDarkTheme: false
}).render(true);

- added `game.modules.get('pf2e-dorako-ui').api.registerExcludeApplication('WindowTabs');` api call to exclude instances from recieving the `dorako-ui` class
- Added check for Windows to self exclude from dark mode. Include `dorakoDarkMode: false` when declaring your window settings to force window to never be in dark mode.
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

Successfully merging this pull request may close these issues.

1 participant