UI: Use title case for Settings and zero-hour toggle menu items
This commit is contained in:
@@ -315,7 +315,7 @@ def main():
|
|||||||
|
|
||||||
def menu(client):
|
def menu(client):
|
||||||
while True:
|
while True:
|
||||||
settings_text = "SETTINGS" if current_theme_name == "fallout" else "Settings"
|
settings_text = "Settings"
|
||||||
choice = questionary.select(
|
choice = questionary.select(
|
||||||
"SELECT ACTION:" if current_theme_name == "fallout" else "What would you like to do?",
|
"SELECT ACTION:" if current_theme_name == "fallout" else "What would you like to do?",
|
||||||
choices=["Calculate actual work days", "Export hours worked", "Show profile info", settings_text, "Logout and Exit"],
|
choices=["Calculate actual work days", "Export hours worked", "Show profile info", settings_text, "Logout and Exit"],
|
||||||
@@ -336,11 +336,9 @@ def menu(client):
|
|||||||
def settings_menu():
|
def settings_menu():
|
||||||
while True:
|
while True:
|
||||||
show_zero = current_config.get("show_zero_hours", False)
|
show_zero = current_config.get("show_zero_hours", False)
|
||||||
toggle_text = "HIDE ZERO-HOUR DAYS" if current_theme_name == "fallout" else "Hide zero-hour days"
|
toggle_text = "Hide zero-hour days" if show_zero else "Show zero-hour days"
|
||||||
if not show_zero:
|
|
||||||
toggle_text = "SHOW ZERO-HOUR DAYS" if current_theme_name == "fallout" else "Show zero-hour days"
|
|
||||||
|
|
||||||
back_text = "BACK" if current_theme_name == "fallout" else "Back"
|
back_text = "Back"
|
||||||
|
|
||||||
choice = questionary.select(
|
choice = questionary.select(
|
||||||
"SELECT SETTING:" if current_theme_name == "fallout" else "Settings:",
|
"SELECT SETTING:" if current_theme_name == "fallout" else "Settings:",
|
||||||
|
|||||||
Reference in New Issue
Block a user