Bug 404255 - [Feature request] Please consider making it possible to add some border/border-colour property to a KDE konsole tab
Summary: [Feature request] Please consider making it possible to add some border/borde...
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: tabbar (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-12 19:14 UTC by shevegen
Modified: 2019-02-12 22:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shevegen 2019-02-12 19:14:44 UTC
This is a feature request. It has probably very low priority, but I would still like to suggest
it.

I would like to suggest to add the possibility to add a border property to a KDE konsole tab.

By default no border is used, so we need a boolean to distinguish it: true/false, yes/no (has
border).

IF true, then a short border is displayed. I suggest minimal pixel size e. g. 1px. The user
may be able to customize this via an option field in preferences. By default, no border is
selected. (Tooltip hint may inform the user that, if enabled, a border will appear.)

Do note that this border will appear ONLY around the current active tab! That is, the one
that is currently selected. Optionally a colour should be pickable, e. g. red or crimson
or any such colours (RGB values perhaps; a KDE widget can appear to pick a colour here).

------------------------------------------------------------------------------------------------

Use case:

- I use KDE konsole a lot and I am quite happy with it. I should add that I do not really
make use of the kde title in a tab. That is, my tab titles are very often either "." for
blank; or contain something longer to indicate what this tab is doing.

I rename these tabs via scripts, from the commandline, so picking "." was the second
best option next to "" empty (I believe a KDE konsole tab can not be "" empty? But
either way, whether it is empty, or "." or some other single small character, is 
pretty irrelevant to me - the point is that I don't want to see the title there.)

This usage makes it a bit hard to find out which tab is the currently active one.

That is the major reason why I would like to suggest some VISUAL indicator of which
tab is currently active. I suggest a border, and I will probably keep it in small
crimson-colour like 1px or so, to not disturb me. But other options may also be
possible - for example, the currently selected tab could be visually a bit lighter,
or something like that. I am open for alternatives too! So please consider my 
feature request more as something generic rather than the specifics I have written
above (but I had to pick something so that we can start a discussion).

Anyway if this is not wanted, I suggest closing it; perhaps at the latest in 2-3
years, so that this does not become a never-ending suggestion. :)

The ability to choose a colour can be optional. I think a slight border without
a specific colour would help too - right now I can not really instantly find
out which tab is the current active one (I usually then just use keyboard
shortcut to keep on working with e. g. tab 2 tab 3 tab 4 etc.... keyboard
shortcuts are also alt+1 for the first one, alt+2 for the second tab, and
so forth. I use up to 20 tabs or so; more is too difficult to manage; 
fewer than 6 is quite useless though. My typical range is between 11-19
or something like that)
Comment 1 shevegen 2019-02-12 19:15:17 UTC
Sorry for the strange line wrappings - that html field here is a strange thing ...
Comment 2 Mariusz Glebocki 2019-02-12 22:35:49 UTC
There is already support for CSS - https://docs.kde.org/stable5/en/applications/konsole/tabbarstylsheet.html
You can specify CSS file in Setting → Configure Konsole → Tabbar

You can try something like this:

QTabBar::tab:selected {
  background-color: #31363b; /* #f3f4f4 for light breeze */
  border: 1px solid crimson;
  border-bottom: none;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}