Hi list,

In an attempt to keep the UI as configurable as possible for
accessibility and themeing purposes, here is an example patch to
hide the close tab button. 

Since we can already close the tab with the right or middle mouse button
click, the button might be useless for some users, and may also be
taking up valuable horizontal real-estate in the tab bar.

Maybe it seems silly, but when using Dillo on a constrained portrait
display, this can be useful.

It can probably be made into a dillorc option if there is any
interest.


--- a/src/uicmd.cc    Mon Oct 28 19:01:28 2024
+++ b/src/uicmd.cc    Mon Oct 28 19:01:57 2024
@@ -142,7 +142,7 @@ class CustTabs : public Fl_Group { (public)
       Fl_Group(0,0,ww,th,lbl) {
       Pack = NULL;
       focus_counter = 0;
-      tab_w = 50, tab_h = th, ctab_h = 1, btn_w = 20, ctl_w = 1*btn_w+2;
+      tab_w = 50, tab_h = th, ctab_h = 1, btn_w = 20;
       resize(0,0,ww,ctab_h);
       /* tab buttons go inside a pack within a scroll */
       Scroll = new Fl_Scroll(0,0,ww-ctl_w,ctab_h);

I've also done some preliminary work to theme the tab bar, scroll bar,
url bar, icons, and ui highlights. Dillo isn't really designed for
that, so to create a proper user configurable theme-engine will probably
be quite a lot of work, and not something that I can handle alone.

Regards,
Alex
_______________________________________________
Dillo-dev mailing list -- dillo-dev@mailman3.com
To unsubscribe send an email to dillo-dev-le...@mailman3.com

Reply via email to