chrisant996 / clink-flex-prompt

Flex prompt for Clink
MIT License
137 stars 17 forks source link

Prompt section coloration doesn't pick up Windows Terminal theme color changes #46

Closed mattdkerr closed 1 year ago

mattdkerr commented 1 year ago

If I use Windows Terminal and set the theme to One Half Dark, the blue directory section doesn't colorize to match the theme as expected (it should be a lighter pastel color). I believe the time section has the same problem

p.s. love this, I had contributed a bit to the cmder-powerline-prompt but having a powerline10k type configurator is awesome

chrisant996 commented 1 year ago

That's by design. To override colors, refer to the usage instructions for each module in the flexprompt_modules.lua file.

For example:

-- CWD MODULE:  {cwd:color=color_name,alt_color_name:rootcolor=rootcolor_name:type=type_name:shorten}
--  - color_name is a name like "green", or an sgr code like "38;5;60".
--  - alt_color_name is optional; it is the text color in rainbow style.
--  - rootcolor_name overrides the repo parent color when using "rootsmart".
--  - type_name is the format to use:
--      - "full" is the full path.
--      - "folder" is just the folder name.
--      - "smart" is the git repo\subdir, or the full path.
--      - "rootsmart" is the full path, with parent of git repo not colored.
chrisant996 commented 1 year ago

You can specify options in the prompt string itself, e.g.

flexprompt.settings.left_prompt = "{cwd:color=blue:type=folder}{git}"

Or you can override defaults as described in the Miscellaneous section:

-- Provide default arguments for a module:
flexprompt.defaultargs["module_name"] = "color=magenta"

-- Provide default arguments for a module, for a specific style (lean, classic, or rainbow):
flexprompt.defaultargs["module_name|rainbow"] = "color=blue,brightcyan"