! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
ability to change tab text color depending on title
Status:
RESOLVED: MOVED
Product:
Xfce4-terminal
Component:
General

Comments

Description Alexander Butenko 2016-08-20 12:24:19 CEST
Created attachment 6777 
patch

Hello,

Patch adds a popover window where you can select a color for a tab and a title pattern.
If pattern will be matched on any tab, selected color will be applied. 

Patch is still missing an ability to save settings to the disk, but I think it could be landed separately later.
Comment 1 Igor editbugs 2016-08-20 18:35:37 CEST
Hi Alexander, and thanks for the patch!

Unfortunately, it is incomplete: terminal_screen_set_tab_color() declaration is missing from terminal-screen.h.

Also, after I've compiled it, it's failing with the following:
(xfce4-terminal:20042): GLib-GObject-WARNING **: g_object_get_valist: object class 'TerminalPreferences' has no property named 'tab-colors-list'
Segmentation fault (core dumped)
Comment 2 Alexander Butenko 2016-08-20 21:29:48 CEST
Created attachment 6783 
second try

full patch
Comment 3 Alexander Butenko 2016-08-20 21:30:09 CEST
im sorry, wrong merge :)
Comment 4 Igor editbugs 2016-08-22 11:48:16 CEST
Thanks, the 2nd try is better :)

However, I can see some issues:
- when opening a set color dialog, the title in the input field does not match the actual tab title;
- when color setting is applied, it gets changed on the active tab only; would be nice to apply the color to all matching tabs at once;
- when changing input to a non-matching text, the tab color remains unchanged; would be nice to reset it to default (black) color.
Comment 5 Alexander Butenko 2016-08-29 20:27:13 CEST
- when opening a set color dialog, the title in the input field does not match the actual tab title;

I dont have this issue. I have tried with custom title and without.
Can i have a screenshot or something to see where is the problem? 

- when color setting is applied, it gets changed on the active tab only; would be nice to apply the color to all matching tabs at once;

i have fixed that

- when changing input to a non-matching text, the tab color remains unchanged; would be nice to reset it to default (black) color.

How can i reproduce that? Here when title changes to different one rather then defined, im getting default black color
Comment 6 Alexander Butenko 2016-08-29 20:28:07 CEST
Created attachment 6802 
third try
Comment 7 Alexander Butenko 2017-06-13 03:47:46 CEST
now when im thinking about this, i think the best way will be to match tab text color with a  prompt color. now need to figure out how to parse this \033 escape chars. Any clue how to do that?
Comment 8 Git Bot editbugs 2020-05-24 23:42:00 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/14.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #12779

Reported by:
Alexander Butenko
Reported on: 2016-08-20
Last modified on: 2020-05-24

People

CC List:
1 user

Version

Version:
unspecified

Attachments

patch (7.91 KB, patch)
2016-08-20 12:24 CEST , Alexander Butenko
no flags
second try (11.17 KB, patch)
2016-08-20 21:29 CEST , Alexander Butenko
no flags
third try (11.49 KB, patch)
2016-08-29 20:28 CEST , Alexander Butenko
no flags

Additional information