-
Notifications
You must be signed in to change notification settings - Fork 16
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
Theming whitelabel.py script #214
Theming whitelabel.py script #214
Conversation
@shafqat-muneer will be reviewing this PR from Axinite's side. |
PR review is in progress from my side. |
After running this command on terminal:
Got this error:
Resolved the issue by installing
Suggestion: I think we should document every dependency in |
We utilize distinct bundle identifiers for our Development (Dev), Staging (Stage), and Production (Prod) environments. Is it possible to modify the bundle identifiers for all environments simultaneously, or do we need to execute the script multiple times to update each environment's bundle identifier individually? |
The `whitelabel.py` theming script requires the following Python dependencies to be installed: | ||
- `pip install coloredlogs` | ||
- `pip install pillow` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to execute the following command for installing dependencies. I believe it would be beneficial to include these statements as well.
pip3 install coloredlogs
pip3 install pillow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added to documentation all dependencies which are not default python's libs
- `pip install pillow` | ||
|
||
## How to Run the Script | ||
The theming script `whitelabel.py` can be ran from the OpenEdX iOS root project folder with the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: can be ran
to can be run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
config_script/whitelabel.py
Outdated
EXAMPLE_CONFIG_FILE = """ | ||
--- | ||
# Notes: | ||
# Config file can contain next optins: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: optins
to options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Review is in progress. |
@rnr Getting
Error Details:
|
@shafqat-muneer Could you show what is content of whitelabel.yaml file for this error please |
@rnr I tried it with just
I also checked with same sample file content in config repo, it's also giving error. With
|
@shafqat-muneer added extra escaping to regex inside python script. should be fine now. please check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello everyone! I was wondering if we are waiting for @eyatsenkoperpetio review before merging this PR, or if we can go ahead and merge it now? |
Hello @volodymyr-chekyrta |
Added the theming
whitelabel.py
scriptThis script can override Assets (images, colors, app Icon) and change project settings (app bundle ID and development team ID). Please follow this documentation to install Python dependencies if needed and to read how to work/configure.
Changes
1) Allocated colors for more flexibility:
loginNavigationText
loginBackground
accentButtonColor
SplashBackground
2) Added
ThemeConfig
for feature flags related to Theming3) Changed
textInputShape
andbuttonShape
to support rounded and rectangle corners.Custom edX theme example
Clone
https://github.com/edx/edx-mobile-config
into the OpenEdX root folder and switch to theanton/openedX-theming
branch.From the OpenEdX root folder, run the script as:
All possible config parameters are described in this documentation