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

Feature/custom user styles #80

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

Pjb518
Copy link
Collaborator

@Pjb518 Pjb518 commented Jul 14, 2021

Adds the ability for users to select custom colour schemes for the FateX interface. This is still a WIP, but it is mostly functional at the moment.

There are three known issues:

  1. I haven't yet added the full array of custom properties that users will be able to choose from. They currently have no control over much of the interface text colour, for example.

  2. There is a strange bug where user flags forget that they have been updated after reloading the game. Viewing the user flags in game shows that the values have been updated, but when the game is reloaded, sometimes one or two pieces of the interface show old colour choices, and the user flags seem to have reverted to their old values.

    I'm not sure if this is a Foundry bug, but DSN doesn't seem to have this problem, so maybe I'm overlooking a simple mistake.

  3. I'm not happy with the way that default values and custom properties are being stored in the config. Now that the feature is actually working, I'd like to go back and make the data easier to work with.

@Pjb518
Copy link
Collaborator Author

Pjb518 commented Jul 14, 2021

Should also mention that some of the type are not happy right now and I haven't got around to appeasing them 😄

Pjb518 added 11 commits July 16, 2021 22:53
…meConfig class for the new settings menu. Adds a new template for the custom theme app.
…ckground colour SCSS variable which links to a new custom property. Makes use of transparent in the headline linear gradients to better enable theming. Updates all uses of the sheet-background SCSS variable with the new fatex-sheet-background-color variable.
…affected. Removes a selector targeting the chat text area. Adds a new selector to target the chat header line. Adds a new SCSS variable for the scrollbar pill colour.
…ents which currently have CSS custom properties.
…class. Temporarily disables type checking on the ThemeConfiguration file. Updates the theme-config template to use initial values provided by the ThemeConfig class. Adds currently non-functional buttons for saving a theme, reverting to the default, and closing without making changes.
…at they can be easily referenced. Updates the getData method in the ThemeConfiguration, allowing it to set the current values for the colour pickers to the values of defined custom properties. If the custom properties are not set, the system falls back to the default styles defined in the global config.
… css Custom Property. Will be revisiting this, as I don't like that custom properties are defined in three places. Implements the activateListeners method on the ThemeConfig class. Adds an onChange method to update custom properties in real time as the user selects new colours. These changes currently do not persist after reload.
…er the user's updates should be saved. Implements the _updateObject method on the ThemeConfig class to store the user's colour settings as user flags. Adds listeners for the remaining buttons for the theme config app.
…e custom properties are still missing. There is currently a bug where sometimes one or two of the flags are not remembering their new values after reload. This causes old styles to resurface, and I haven't yet found the cause.
…stored in the global config, simplifying the way data is access in the ThemeConfig class. This should also be more robust as we no longer rely on indices.
@PatrickBauer PatrickBauer force-pushed the feature/custom-user-styles branch from 7fabced to 6ecdb06 Compare July 16, 2021 20:54
@Pjb518 Pjb518 marked this pull request as ready for review July 19, 2021 17:21
@Pjb518 Pjb518 requested a review from PatrickBauer July 19, 2021 17:21
…plementation similar to the TemplateActorsFeature.
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.

2 participants