A default theme class for styling.
The constructor for the Default theme class.
Parameters:
-
terminal
(Terminal)
–
The blessed Terminal instance.
Source code in dev_tool/tui/themes.py
| def __init__(self, terminal: Terminal) -> None:
"""
The constructor for the Default theme class.
:param terminal: The blessed Terminal instance.
"""
self.terminal = terminal
|
command_text
A method that applies default styling to command text.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def command_text(self, text: str) -> str:
"""
A method that applies default styling to command text.
:param text: The text to style.
:return: The styled text.
"""
return text
|
A method that applies dark purple background styling for headers.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def header_background(self, text: str) -> str:
"""
A method that applies dark purple background styling for headers.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(43, 40, 59) +
self.terminal.bold +
self.terminal.color_rgb(255, 255, 255) +
text +
self.terminal.normal
)
|
A method that applies default styling to menu text.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def menu_text(self, text: str) -> str:
"""
A method that applies default styling to menu text.
:param text: The text to style.
:return: The styled text.
"""
return text
|
A method that applies light purple background styling for selected commands.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def selected_command_background(self, text: str) -> str:
"""
A method that applies light purple background styling for selected commands.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(230, 200, 255) +
self.terminal.color_rgb(0, 0, 0) +
text +
self.terminal.normal
)
|
A method that applies light purple background styling for selected menu items.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def selected_menu_background(self, text: str) -> str:
"""
A method that applies light purple background styling for selected menu items.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(230, 200, 255) +
self.terminal.color_rgb(0, 0, 0) +
text +
self.terminal.normal
)
|
A method that applies gray background styling for status bar.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def status_bar(self, text: str) -> str:
"""
A method that applies gray background styling for status bar.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(70, 68, 80) +
self.terminal.color_rgb(255, 255, 255) +
text +
self.terminal.normal
)
|
A method that applies light purple background styling for selected tabs.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def tab_selected(self, text: str) -> str:
"""
A method that applies light purple background styling for selected tabs.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(230, 200, 255) +
self.terminal.color_rgb(0, 0, 0) +
text +
self.terminal.normal
)
|
A method that applies dark purple background styling for unselected tabs.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def tab_unselected(self, text: str) -> str:
"""
A method that applies dark purple background styling for unselected tabs.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(43, 40, 59) +
self.terminal.color_rgb(255, 255, 255) +
text +
self.terminal.normal
)
|
A method that applies error notification styling with red background.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def notification_error(self, text: str) -> str:
"""
A method that applies error notification styling with red background.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(220, 53, 69) +
self.terminal.color_rgb(255, 255, 255) +
text +
self.terminal.normal
)
|
A method that applies info notification styling with blue background.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def notification_info(self, text: str) -> str:
"""
A method that applies info notification styling with blue background.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(23, 162, 184) +
self.terminal.color_rgb(255, 255, 255) +
text +
self.terminal.normal
)
|
A method that applies success notification styling with green background.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def notification_success(self, text: str) -> str:
"""
A method that applies success notification styling with green background.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(40, 167, 69) +
self.terminal.color_rgb(255, 255, 255) +
text +
self.terminal.normal
)
|
A method that applies warning notification styling with yellow background.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def notification_warning(self, text: str) -> str:
"""
A method that applies warning notification styling with yellow background.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.on_color_rgb(255, 193, 7) +
self.terminal.color_rgb(0, 0, 0) +
text +
self.terminal.normal
)
|
notification_text_error
A method that applies error text styling with red foreground only.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def notification_text_error(self, text: str) -> str:
"""
A method that applies error text styling with red foreground only.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.color_rgb(220, 53, 69) +
text +
self.terminal.normal
)
|
notification_text_info
A method that applies info text styling with blue foreground only.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def notification_text_info(self, text: str) -> str:
"""
A method that applies info text styling with blue foreground only.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.color_rgb(23, 162, 184) +
text +
self.terminal.normal
)
|
notification_text_success
A method that applies success text styling with green foreground only.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def notification_text_success(self, text: str) -> str:
"""
A method that applies success text styling with green foreground only.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.color_rgb(40, 167, 69) +
text +
self.terminal.normal
)
|
notification_text_warning
A method that applies warning text styling with yellow foreground only.
Parameters:
Returns:
Source code in dev_tool/tui/themes.py
| def notification_text_warning(self, text: str) -> str:
"""
A method that applies warning text styling with yellow foreground only.
:param text: The text to style.
:return: The styled text.
"""
return (
self.terminal.color_rgb(255, 193, 7) +
text +
self.terminal.normal
)
|