Tinting secondhand information, like description or hints

This commit is contained in:
MaXFeeD
2025-04-07 17:38:07 +03:00
parent ec7a2735e3
commit 82a5fcb858
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -130,20 +130,20 @@ def startup() -> None:
username_editable = Editable("Who are you? ", hint=get_username())
contents += [
username_editable,
Interactable("This username, or alias, will be used when creating a project. Author name identifies you on Inner Core Mods."),
Interactable("This username, or alias, will be used when creating a project. Author name identifies you on Inner Core Mods.", style="class:editable.hint"),
Window(height=1)
]
tsc = request_typescript(only_check=True) is not None
nodejs_selectable = Selectable("Do you plan to use Node.js for compilation?", checked=tsc)
contents += [
nodejs_selectable,
Interactable("This will allow your code to be transpiled by TypeScript Compiler to use ESNext's features, but may increase reassembly time."),
Interactable("This will allow your code to be transpiled by TypeScript Compiler to use ESNext's features, but may increase reassembly time.", style="class:editable.hint"),
Window(height=1)
]
import_editable = Editable("Where should we look for projects? ")
contents += [
Interactable("If you have used Inner Core Mod Toolchain earlier, you may choose where to search for projects. Either import an obsolete project or modification for Inner Core."),
import_editable,
Interactable("If you have used Inner Core Mod Toolchain earlier, you may choose where to search for projects. Either import an obsolete project or modification for Inner Core.", style="class:editable.hint"),
Window(height=1)
]
contents.append(Interactable("Here we go!", focusable=True, on_interact=lambda _: app.exit(), add_interact_key_bindings=True))
+2 -2
View File
@@ -88,7 +88,7 @@ def new_project(template: Optional[str] = "../toolchain-mod") -> Optional[int]:
create_interactable.style = ""
else:
create_interactable.interactable_text = "Create..."
create_interactable.style = "class:print.answer"
create_interactable.style = "class:editable.hint"
name_editable = Editable(
"Name: ",
@@ -139,7 +139,7 @@ def new_project(template: Optional[str] = "../toolchain-mod") -> Optional[int]:
if not have_template:
contents += [
Window(height=1),
Interactable("You can override template by setting `template` property in your 'toolchain.json', it will be automatically apply when you create a new project. Properties remain same as `info` property in 'make.json'.")
Interactable("You can override template by setting `template` property in your 'toolchain.json', it will be automatically apply when you create a new project. Properties remain same as `info` property in 'make.json'.", style="class:editable.hint")
]
update_project_name(name_editable.buffer)