Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,21 @@ Therefore, please use the following syntax: for the toml file
# Use the default theme
default = "default"
default = 0
# Use the default theme
# Use the dark theme
default = "dark"
default = 1
# Use the default theme
# Use the blue theme
default = "blue"
default = 2
# Use the default theme
# Use the robot theme
default = "robot"
default = 3
# Use the dark robot theme
default = "robot_dark"
default = 4
# Use the green theme
default = "green"
default = 5
```

For setting it via CLI, please use the following:
Expand Down
2 changes: 1 addition & 1 deletion src/testdoc/default.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Find here some default settings like the used default theme
[default]
theme = "dark"
theme = "robot_dark"
6 changes: 5 additions & 1 deletion src/testdoc/html/themes/theme_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ...helper.cliargs import CommandLineArguments
from .themes import DEFAULT_THEME, ROBOT_THEME, DARK_THEME, BLUE_THEME
from .themes import DEFAULT_THEME, ROBOT_THEME, DARK_THEME, BLUE_THEME, ROBOT_THEME_DARK, GREEN_THEME

import os
import tomli
Expand Down Expand Up @@ -38,4 +38,8 @@ def _get_predefined_theme(self, theme: str):
return ROBOT_THEME
if theme == "blue" or theme == 3:
return BLUE_THEME
if theme == "robot_dark" or theme == 4:
return ROBOT_THEME_DARK
if theme == "green" or theme == 5:
return GREEN_THEME

26 changes: 24 additions & 2 deletions src/testdoc/html/themes/themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,36 @@
ROBOT_THEME = {
"background": "#f8f9fa",
"inner_color": "#f8f9fa",
"button_active_color": "#C2C2C2",
"button_hover_color": "#C2C2C2",
"button_active_color": "#dcdcdc",
"button_hover_color": "#dcdcdc",
"border_color": "black",
"text_color": "black",
"title_color": "black",
"robot_icon": "#00c0b5",
}

ROBOT_THEME_DARK = {
"background": "#1b1b1d",
"inner_color": "#1b1b1d",
"button_active_color": "#272729",
"button_hover_color": "#5F5F5F",
"border_color": "#e3e3e3",
"text_color": "#e3e3e3",
"title_color": "#e3e3e3",
"robot_icon": "#00c0b5",
}

GREEN_THEME = {
"background": "#1e1e1e",
"inner_color": "#1e1e1e",
"button_active_color": "#272729",
"button_hover_color": "#5F5F5F",
"border_color": "#e3e3e3",
"text_color": "#009770",
"title_color": "#009770",
"robot_icon": "#009770",
}

DARK_THEME = {
"background": "#303030",
"inner_color": "#303030",
Expand Down