From 9b1b8ca1ed0a07ea3bab32733bf25da966e3d906 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 14 Jan 2025 12:40:38 +0100 Subject: [PATCH] tweak some more parameters for new computer --- config.h | 6 ++--- plugins/style/style.c | 2 +- plugins/style/style.h | 2 +- plugins/style/style.js | 3 ++- styles-gtk/style-gtk4-large.css | 41 +++++++++++++++++++++++++++++++++ styles-gtk/style-gtk4.css | 16 ++++++------- 6 files changed, 56 insertions(+), 14 deletions(-) create mode 100644 styles-gtk/style-gtk4-large.css diff --git a/config.h b/config.h index 4ff1ee9..36eb800 100644 --- a/config.h +++ b/config.h @@ -2,13 +2,13 @@ #include /* Key user config */ -#define HEIGHT 1080 -#define FULL_WIDTH 1920 +#define HEIGHT 1504 +#define FULL_WIDTH 2256 #define WIDTH FULL_WIDTH #define BAR_WIDTH FULL_WIDTH/2 /* More user config */ -#define ZOOM_START_LEVEL 1.8 +#define ZOOM_START_LEVEL 1.5 #define ZOOM_STEPSIZE .1 #define MAX_NUM_TABS 8 // 0 or false for unlimited tabs #define SEARCH "https://search.brave.com/search?q=%s" diff --git a/plugins/style/style.c b/plugins/style/style.c index 313785e..2197d38 100644 --- a/plugins/style/style.c +++ b/plugins/style/style.c @@ -1,7 +1,7 @@ #include #include #include -#define STYLE_N 9379 + 1000 +#define STYLE_N 9404 + 1000 void read_style_js(char* string) { diff --git a/plugins/style/style.h b/plugins/style/style.h index 9588ed1..4aa67fc 100644 --- a/plugins/style/style.h +++ b/plugins/style/style.h @@ -1,5 +1,5 @@ #pragma once -#define STYLE_N 9379 + 1000 +#define STYLE_N 9404 + 1000 void read_style_js(char* string); diff --git a/plugins/style/style.js b/plugins/style/style.js index 6b0b592..2f90644 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -59,7 +59,8 @@ switch (document.domain) { case "search.brave.com": styles = ` .download-button, - a[href^="https://brave.com/download/"], .download-cta + a[href^="https://brave.com/download/"], .download-cta, + .example-searches { display: none !important; } diff --git a/styles-gtk/style-gtk4-large.css b/styles-gtk/style-gtk4-large.css new file mode 100644 index 0000000..390cffe --- /dev/null +++ b/styles-gtk/style-gtk4-large.css @@ -0,0 +1,41 @@ +* { + font-size: 35px; + color: #333; +} + +/* Make titlebar pretty gigantic. I'm pretty myopic. */ +.titlebar { + padding: 5px; + font-size: 45px; +} + + +.titlebar * { + padding: 5px; + font-size: 45px; +} + +header * { + font-size: 40px; + padding: 5px; +} + +tabs { + padding: 7px; +} + +tab { + margin: 5px 8px 5px 0px; /* top right bottom left */ + padding: 10px; + border-style: solid; + font-size: 40px; +} + +entry { + padding-left: 10px; +} + +entry:focus { + padding-left: 10px; + +} diff --git a/styles-gtk/style-gtk4.css b/styles-gtk/style-gtk4.css index 8b9f6d4..c8420d4 100644 --- a/styles-gtk/style-gtk4.css +++ b/styles-gtk/style-gtk4.css @@ -5,19 +5,19 @@ /* Make titlebar pretty gigantic. I'm pretty myopic. */ .titlebar { - padding: 5px; + padding: 3px; font-size: 30px; } .titlebar * { - padding: 5px; - font-size: 27px; + padding: 3px; + font-size: 30px; } header * { - font-size: 20px; - padding: 5px; + font-size: 30px; + padding: 3px; } tabs { @@ -25,10 +25,10 @@ tabs { } tab { - margin: 2px 5px 4px 0px; /* top right bottom left */ - padding: 5px; + margin: 3px 5px 3px 0px; /* top right bottom left */ + padding: 10px; border-style: solid; - font-size: 27px; + font-size: 30px; } entry {