From 82a5fcb8585dfccf940b57ae1e4d54e7a9ea3d20 Mon Sep 17 00:00:00 2001 From: MaXFeeD Date: Mon, 7 Apr 2025 17:38:07 +0300 Subject: [PATCH] Tinting secondhand information, like description or hints --- src/icmtoolchain/component.py | 6 +++--- src/icmtoolchain/package.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/icmtoolchain/component.py b/src/icmtoolchain/component.py index 813b1ac..3afbe49 100644 --- a/src/icmtoolchain/component.py +++ b/src/icmtoolchain/component.py @@ -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)) diff --git a/src/icmtoolchain/package.py b/src/icmtoolchain/package.py index 099b2d0..997aabe 100644 --- a/src/icmtoolchain/package.py +++ b/src/icmtoolchain/package.py @@ -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)