diff --git a/README.md b/README.md index 3bda667..29b2f0a 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/src/testdoc/default.toml b/src/testdoc/default.toml index 812d283..da855c9 100644 --- a/src/testdoc/default.toml +++ b/src/testdoc/default.toml @@ -1,3 +1,3 @@ # Find here some default settings like the used default theme [default] -theme = "dark" +theme = "robot_dark" diff --git a/src/testdoc/html/themes/theme_config.py b/src/testdoc/html/themes/theme_config.py index 21d7698..eb80d3e 100644 --- a/src/testdoc/html/themes/theme_config.py +++ b/src/testdoc/html/themes/theme_config.py @@ -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 @@ -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 \ No newline at end of file diff --git a/src/testdoc/html/themes/themes.py b/src/testdoc/html/themes/themes.py index 4bfb474..92b24d8 100644 --- a/src/testdoc/html/themes/themes.py +++ b/src/testdoc/html/themes/themes.py @@ -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",