fatty icon indicating copy to clipboard operation
fatty copied to clipboard

Change tab colour, font and font size

Open ghost opened this issue 9 years ago • 5 comments

how can i change tab colour, font and font size

ghost avatar Dec 30 '15 16:12 ghost

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.

juho-p avatar Dec 31 '15 10:12 juho-p

thanks for the replay

ghost avatar Jan 12 '16 13:01 ghost

How can I change key combination for shifting between tabs?

ghost avatar Jan 12 '16 13:01 ghost

@chandru2012 Looks like that is in wininput.c#win_key_down

ThomasR avatar Feb 07 '16 15:02 ThomasR

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.

juho-p avatar Mar 08 '16 12:03 juho-p