termux / termux-float

Termux add-on app to show the terminal in a floating terminal window.
https://f-droid.org/en/packages/com.termux.window
Other
465 stars 77 forks source link

Customize background and foreground color #22

Open Boruch-Baum opened 4 years ago

Boruch-Baum commented 4 years ago

The package termux:Style allows users to set the background and foreground colors for a regular termux window, but not for a termux:Floating window, so it's unclear to me whether in terms of system architecture, the developers would want such a feature added natively to 'termux:Float', or bundled into 'termux:Style'. It might be more consistent to add the functionality to 'termux:Style' so that the list of style resources isn't duplicated, saving some space.

My personal preference would be to just add information in the wiki how to set the colors manually, or in a config file, if its that simple. I tried doing this with command tput, but the result wasn't complete, and ~/.Xresources did no good, but if there is some other simple command-line operation or config-file setting that would do the job, I don't think termux users would mind doing that instead of using termux:Style. However, if getting this donw absolutely requires compiling a new terminfo file, then my vote is for an automated feature. Personally, termux:Style seems to me to be over-bloated for what in linux would be three or four lines in an ~/.Xresources file, but I may be missing some of what the app is doing, and what is required for android.

If you want me to submit this issue to package 'termux:Style', that's fine.

My use-case is an android 9 e-ink display. In that environment, the default colors causes the font to look smudged at all sizes, so the text is very difficult to read.

j0ng4b commented 2 years ago

Termux load colors from $HOME/.termux/colors.properties, then change this file will change colors for many things.

The Termux font is $HOME/.termux/font.ttf, put some font file with that name or symlink to some file in other place.

Note that above files will effect Termux:Float too.

agnostic-apollo commented 2 years ago

That was added in v0.15.0. I am not sure if users want separate files for Termux:Float or not.

https://github.com/termux/termux-float/releases/tag/v0.15.0

j0ng4b commented 2 years ago

That was added in v0.15.0. https://github.com/termux/termux-float/releases/tag/v0.15.0

Oh, I see

I am not sure if users want separate files for Termux:Float or not.

Maybe some kind of option at termux.float.properties like separate-float-style=true? Then if true read font.float.ttf and colors.float.properties

Boruch-Baum commented 2 years ago

Thanks for implementing this.

On 2022-01-19 11:37, Jonatha Gabriel wrote:

 That was added in v0.15.0.
 [1]https://github.com/termux/termux-float/releases/tag/v0.15.0

-- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0

agnostic-apollo commented 2 years ago

Maybe some kind of option at termux.float.properties like separate-float-style=true? Then if true read font.float.ttf and colors.float.properties

Yeah, that should work.

Thanks for implementing this.

You are welcome.