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
Binary file modified docs/images/inquirer_theme-compare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/inquirer/themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ def __init__(self):
self.List.unselected_color = term.normal


class RedSolace(Default):
def __init__(self):
super().__init__()
self.Question.brackets_color = term.red2
self.Question.default_color = term.firebrick1
self.Checkbox.selection_icon = "➠"
self.Checkbox.selection_color = term.bold_black_on_bright_red
self.Checkbox.selected_icon = "🔥"
self.Checkbox.selected_color = term.webmaroon
self.Checkbox.unselected_icon = "❑"
self.List.selection_color = term.bold_black_on_bright_red
self.List.selection_cursor = "➠"


class GreenPassion(Default):
def __init__(self):
super().__init__()
Expand Down
22 changes: 22 additions & 0 deletions tests/unit/test_themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,25 @@ def test_themes_blue_composure():
assert hasattr(t.List, "selection_color")
assert hasattr(t.List, "selection_cursor")
assert hasattr(t.List, "unselected_color")


def test_themes_red_composure():
t = themes.RedSolace()

assert hasattr(t, "Question")
assert hasattr(t.Question, "mark_color")
assert hasattr(t.Question, "brackets_color")
assert hasattr(t.Question, "default_color")
assert hasattr(t, "Editor")
assert hasattr(t.Editor, "opening_prompt")
assert hasattr(t, "Checkbox")
assert hasattr(t.Checkbox, "selection_color")
assert hasattr(t.Checkbox, "selection_icon")
assert hasattr(t.Checkbox, "selected_icon")
assert hasattr(t.Checkbox, "selected_color")
assert hasattr(t.Checkbox, "unselected_icon")
assert hasattr(t.Checkbox, "unselected_color")
assert hasattr(t, "List")
assert hasattr(t.List, "selection_color")
assert hasattr(t.List, "selection_cursor")
assert hasattr(t.List, "unselected_color")
Loading