Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Change tab colour, font and font size #4

Open
ghost opened this issue Dec 30, 2015 · 5 comments
Open

Change tab colour, font and font size #4

ghost opened this issue Dec 30, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 30, 2015

how can i change tab colour, font and font size

@juho-p
Copy link
Owner

juho-p commented Dec 31, 2015

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.

@ghost
Copy link
Author

ghost commented Jan 12, 2016

thanks for the replay

@ghost
Copy link
Author

ghost commented Jan 12, 2016

How can I change key combination for shifting between tabs?

@ThomasR
Copy link

ThomasR commented Feb 7, 2016

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

@juho-p
Copy link
Owner

juho-p commented Mar 8, 2016

There is now config for tab colours: c79b48b

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants