curlpipe / ox

The simple but flexible text editor
GNU General Public License v2.0
3.36k stars 110 forks source link

Auto Theme. #184

Open plyght opened 6 days ago

plyght commented 6 days ago

I would like to see a 'default' theme, sort of like Micro's "simple" theme that takes from the term's colors and uses those:

Micro Theming Docs

16-color: A colorscheme that uses the 16 default colors will always work but will only look good if the 16 default colors have been configured to the user's liking. Using a colorscheme that only uses the 16 colors from the terminal palette will also preserve the terminal's theme from other applications since the terminal will often use those same colors for other applications. Default colorschemes of this type include simple...

simple.micro: `color-link comment "blue" color-link constant "red" color-link identifier "cyan" color-link statement "yellow" color-link symbol "yellow" color-link preproc "magenta" color-link type "green" color-link special "magenta" color-link ignore "default" color-link error ",brightred" color-link todo ",brightyellow" color-link hlsearch "black,yellow" color-link statusline "black,white" color-link indent-char "black" color-link line-number "yellow" color-link current-line-number "red" color-link diff-added "green" color-link diff-modified "yellow" color-link diff-deleted "red" color-link gutter-error ",red" color-link gutter-warning "red"

Cursor line causes readability issues. Disabled for now.

color-link cursor-line "white,black"

color-link color-column "white"

No extended types. (bool in C)

color-link type.extended "default"

No bracket highlighting.

color-link symbol.brackets "default"

Color shebangs the comment color

color-link preproc.shebang "comment" color-link match-brace ",magenta" color-link tab-error "brightred" color-link trailingws "brightred"`

curlpipe commented 6 days ago

Yeah, that should be possible.

I can add a theme called something like default16 that uses the terminal's colours.

plyght commented 6 days ago

Yeah, that should be possible.

I can add a theme called something like default16 that uses the terminal's colours.

@curlpipe Appreciate the quick response!

When do you expect this to be implemented?

curlpipe commented 6 days ago

I'm currently working on 0.7.2, which is taking a little longer than expected (will probably be released some time in the next two weeks).

I'm planning to release this in 0.7.3, which should be a smaller update.

So all in all, I think it'll be released no longer than in the next month, more likely in around 2-3 weeks.

plyght commented 6 days ago

I'm currently working on 0.7.2, which is taking a little longer than expected (will probably be released some time in the next two weeks).

I'm planning to release this in 0.7.3, which should be a smaller update.

So all in all, I think it'll be released no longer than in the next month, more likely in around 2-3 weeks.

@curlpipe Awesome!

Unfortunately, that is what is preventing me from using Ox instead of Micro. Once 0.7.3 is released, I'll happily switch over!