fatty
fatty copied to clipboard
Change tab colour, font and font size
how can i change tab colour, font and font size
Such thing is not currently configurable. If you want to change the colors, you need to change the code.
In file src/winxx.cc, line 250, there are lines
const auto bg = RGB(0,0,0);
const auto fg = RGB(0,255,0);
const auto active_bg = RGB(50, 50, 50);
const auto attention_bg = RGB(0, 50, 0);
change the values in RGB(...). Values are in RGB colors (255,255,255) is white, (0,0,0) is black. bg
means background, fg
means foreground, active
and attention
are special background colors for active tab and attention tab.
Font can be changed by changine line 274, at CreateFont
, change the Last 0
in the line to be a string of font name, like auto ofont = SelectWObj(bufdc, CreateFont(14 * g_yScale,0,0,0,0,0,0,0,1,0,0,CLEARTYPE_QUALITY,0,"Arial"));
would maybe work. Size can be changed by replacing the 14
in that line by desired number.
I leave this issue open for now, since it would probably be a good feature to have in the future to be able to configure the tab colors and font.
thanks for the replay
How can I change key combination for shifting between tabs?
@chandru2012 Looks like that is in wininput.c#win_key_down
There is now config for tab colours: c79b48bfef3cc93d9cad071d7ef966c3c62d4fa7
One could, for example, add following lines to ~/.minttyrc
to get some silly bright tabs
TabForegroundColour=0,0,0
TabBackgroundColour=255,255,255
TabActiveColour=255,0,0
TabAttentionColour=0,255,0
Config window is missing these for now. Also, font configuration is also missing for now.