aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/prefs.c2
-rw-r--r--src/prefs.h2
-rw-r--r--src/prefsparser.cc2
-rw-r--r--src/uicmd.cc3
4 files changed, 8 insertions, 1 deletions
diff --git a/src/prefs.c b/src/prefs.c
index 0114d912..34f7b408 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -2,6 +2,7 @@
* Preferences
*
* Copyright (C) 2006-2009 Jorge Arellano Cid <jcid@dillo.org>
+ * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -114,6 +115,7 @@ void a_Prefs_init(void)
prefs.ui_tab_active_bg_color = -1;
prefs.ui_tab_bg_color = -1;
prefs.ui_tab_active_fg_color = -1;
+ prefs.ui_tab_height = 20;
prefs.ui_tab_fg_color = -1;
prefs.ui_text_bg_color = -1;
diff --git a/src/prefs.h b/src/prefs.h
index 00155c21..004b2850 100644
--- a/src/prefs.h
+++ b/src/prefs.h
@@ -2,6 +2,7 @@
* Preferences
*
* Copyright (C) 2006-2009 Jorge Arellano Cid <jcid@dillo.org>
+ * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -58,6 +59,7 @@ typedef struct {
int32_t ui_tab_active_fg_color;
int32_t ui_tab_bg_color;
int32_t ui_tab_fg_color;
+ int32_t ui_tab_height;
int32_t ui_text_bg_color;
bool_t contrast_visited_color;
bool_t show_tooltip;
diff --git a/src/prefsparser.cc b/src/prefsparser.cc
index aaf46139..d1711a12 100644
--- a/src/prefsparser.cc
+++ b/src/prefsparser.cc
@@ -2,6 +2,7 @@
* Preferences parser
*
* Copyright (C) 2006-2009 Jorge Arellano Cid <jcid@dillo.org>
+ * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -222,6 +223,7 @@ void PrefsParser::parse(FILE *fp)
{ "ui_tab_bg_color", &prefs.ui_tab_bg_color, PREFS_COLOR, 0 },
{ "ui_tab_active_fg_color", &prefs.ui_tab_active_fg_color, PREFS_COLOR, 0 },
{ "ui_tab_fg_color", &prefs.ui_tab_fg_color, PREFS_COLOR, 0 },
+ { "ui_tab_height", &prefs.ui_tab_height, PREFS_INT32, 0 },
{ "ui_text_bg_color", &prefs.ui_text_bg_color, PREFS_COLOR, 0 },
{ "penalty_hyphen", &prefs.penalty_hyphen, PREFS_FRACTION_100, 0 },
{ "penalty_hyphen_2", &prefs.penalty_hyphen_2, PREFS_FRACTION_100, 0 },
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 8616c289..7f2226dd 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -2,6 +2,7 @@
* File: uicmd.cc
*
* Copyright (C) 2005-2011 Jorge Arellano Cid <jcid@dillo.org>
+ * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -550,7 +551,7 @@ BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh,
win = new Fl_Double_Window(ww, wh);
win->box(FL_NO_BOX);
- CustTabs *DilloTabs = new CustTabs(ww, wh, 16);
+ CustTabs *DilloTabs = new CustTabs(ww, wh, prefs.ui_tab_height);
win->end();
win->resizable(DilloTabs->wizard());