-
Notifications
You must be signed in to change notification settings - Fork 2
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
Customize the ERC View Theme to Match the Rest of the OJS Theme #6
Comments
Maybe the option would be possible to access e.g. the header color that is currently used by the current theme. So you have to look which theme is currently activated by the user (so look in the database in the table A concrete example would probably be to get the Thus, for now, the decision is that the user sets the color himself in the settings. |
In OJS there is no general baseColour that can be used for this purpose. It is only defined per theme plugin by some plugins, but NOT all (compare comment in the PKP Community Forum). So you can't always refer to this colour. So the procedure now is to use the baseColour of the default theme plugin as a basis (if available and no other theme plugin is installed), otherwise the predefined default color of OJS. But the user has the possibility to change the main color of the ERC Galley in the ojs-erc-plugin settings. Unfortunately, the predefined colorPicker from OJS cannot be used (compare comment in the PKP Community Forum), so we use the predefined one from HTML5. The corresponding main implementation can be found here:
|
The idea is to reuse the theme used in OJS, in the o2r galley. Of course it would be nice to adopt as much as possible, but the goal of this issue is that the user gets a few colors suggested for the o2r galley in the plugin settings, selects one and it is then applied accordingly in the o2r galley.
related to o2r-project/o2r-UI#197
The text was updated successfully, but these errors were encountered: