2

I'm using Konsole terminal emulator in Debian bullseye.
And with the default color setting, I think the active tab is not distinguishable, so, I want to change the color of active tab to other color like red.(like terminator)
I've added "user-defined stylesheet" like below.

QTabBar,
QTabBar::tab
{
    font-family: "Noto Sans";
    font-size: 11px;
    height: 16px;
    padding: 2px;
    border: 0px;
    border-bottom: 3px solid palette(dark);
    background-color: palette(dark);
    color: palette(text);
}

QTabBar::tab:hover
{
    text-decoration: underline;
}

QTabBar::tab:selected
{
    color: yellow;
    font-weight: bold;
    border-top: 3px solid red;
}

But it's still showing default grey colored tab bar.
Anything I missed to configure? Or some other configuration is overwriting this?

Thanks in advance.

1
  • That's for a detail of the terminal emulator (see this), rather than for window decorations (some window manager may support this). Jun 26, 2022 at 15:10

1 Answer 1

0

I've got some clues it might not be 100% answer for my original.
When I added below code at the front of the css file, konsole finally started to response.

QWidget, QTabWidget::pane, QTabWidget::tab-bar {
    background-color: #444444; /* Background colour of choice here */
}

But actually I've set the "selected" tab color as red.
It's showing a kind of weird dark grey color.
Without the above code, it never changed. But it's at least showing something(not the intended way though.. :p).

Will keep digging if any chance.

2
  • Can you please post the full path and filename of the CSS file?
    – isapir
    Dec 18, 2023 at 4:27
  • 1
    Sorry, have just seen this. you can edit .css file anywhere and add it under [TabBar] in konsolrc file under .config dir. e.g., TabBarUserStyleSheetFile=file:///home/ryan/Documents/kosole.userdefined.css
    – Hardguy
    Jan 3 at 21:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .