From 905eeb7e4de11cc45214fd067ed99eaeb0975c40 Mon Sep 17 00:00:00 2001 From: meshkatshb Date: Wed, 8 Jan 2025 19:32:48 +0330 Subject: [PATCH 1/3] feat: add virtual environment to gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c45cf01..b271790 100644 --- a/.gitignore +++ b/.gitignore @@ -176,4 +176,7 @@ cookies.json AgentHistory.json cv_04_24.pdf AgentHistoryList.json -*.gif \ No newline at end of file +*.gif + +# Myself +myenv/ \ No newline at end of file From 27bb6480b026c4d7dcd081516b19946263758808 Mon Sep 17 00:00:00 2001 From: meshkatshb Date: Wed, 8 Jan 2025 20:00:52 +0330 Subject: [PATCH 2/3] feat: add theme and dark-mode arguments in readme file. --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/README.md b/README.md index 9d9eb6c..1ebee46 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,44 @@ playwright install - Open the WebUI in a non-Chrome browser, such as Firefox or Edge. This is important because the persistent browser context will use the Chrome data when running the agent. - Check the "Use Own Browser" option within the Browser Settings. +### Options: + +### `--theme` + +- **Type**: `str` +- **Default**: `Ocean` +- **Description**: Specifies the theme for the user interface. +- **Options**: + The available themes are defined in the `theme_map` dictionary. Below are the options you can choose from: + - **Default**: The standard theme with a balanced design. + - **Soft**: A gentle, muted color scheme for a relaxed viewing experience. + - **Monochrome**: A grayscale theme with minimal color for simplicity and focus. + - **Glass**: A sleek, semi-transparent design for a modern appearance. + - **Origin**: A classic, retro-inspired theme for a nostalgic feel. + - **Citrus**: A vibrant, citrus-inspired palette with bright and fresh colors. + - **Ocean** (default): A blue, ocean-inspired theme providing a calming effect. + +**Example**: + +```bash +python webui.py --ip 127.0.0.1 --port 7788 --theme Glass +``` + +### `--dark-mode` + +- **Type**: `boolean` +- **Default**: Disabled +- **Description**: Enables dark mode for the user interface. This is a simple toggle; including the flag activates dark mode, while omitting it keeps the interface in light mode. +- **Options**: + - **Enabled (`--dark-mode`)**: Activates dark mode, switching the interface to a dark color scheme for better visibility in low-light environments. + - **Disabled (default)**: Keeps the interface in the default light mode. + +**Example**: + +```bash +python webui.py --ip 127.0.0.1 --port 7788 --dark-mode +``` + ## (Optional) Configure Environment Variables Copy `.env.example` to `.env` and set your environment variables, including API keys for the LLM. With From a2f6a2a103abb4b60b819973ba9536b641c620bc Mon Sep 17 00:00:00 2001 From: meshkatshb Date: Wed, 8 Jan 2025 20:07:53 +0330 Subject: [PATCH 3/3] refactor: updated line of myenv --- .gitignore | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b271790..5fda7cd 100644 --- a/.gitignore +++ b/.gitignore @@ -130,6 +130,7 @@ ENV/ env.bak/ venv.bak/ test_env/ +myenv # Spyder project settings @@ -176,7 +177,4 @@ cookies.json AgentHistory.json cv_04_24.pdf AgentHistoryList.json -*.gif - -# Myself -myenv/ \ No newline at end of file +*.gif \ No newline at end of file