Skip to content

Commit

Permalink
add d2 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanCarloMachado committed Jun 16, 2024
1 parent 222e67d commit b494226
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python_search/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def get_theme(self) -> str:
theme = open(home + "/.python_search/theme").read().strip()
if theme == "Desert":
return DesertTheme()
elif theme == "D2":
return D2Theme()

now = datetime.datetime.now()
if now.hour >= self.HOUR_FROM and now.hour <= self.HOUR_TO:
Expand Down Expand Up @@ -74,6 +76,20 @@ def __init__(self):

super().__init__()

class D2Theme(BaseTheme):
def __init__(self):
self.colors = {
"backgroud": "#1C2918",
"selected": "#5FDE33",
"query": "#87D700",
"partialmatch": "#B3150C",
"text": "#D7D2CA",
"entrycontentselected": "#5FDE33",
"entrycontentunselected": "#9FA0A7",
"entrytype": "#B3150C",
"cursor": "#E90100",
}
super().__init__()

class DesertTheme(BaseTheme):
def __init__(self):
Expand Down

0 comments on commit b494226

Please sign in to comment.