small tweaks

This commit is contained in:
NunoSempere 2023-06-26 11:26:53 +01:00
parent eefa3cfb45
commit d17fb92bb6
8 changed files with 9 additions and 4 deletions

View File

@ -8,9 +8,10 @@
"enable-smooth-scrolling", false "enable-smooth-scrolling", false
#define GTK "gtk-application-prefer-dark-theme", false, "gtk-enable-animations", false #define GTK "gtk-application-prefer-dark-theme", false, "gtk-enable-animations", false
#define ROSE_HOMEPAGE true #define ROSE_HOMEPAGE false
#define SEARCH "https://search.nunosempere.com/search?q=%s" // "https://lite.duckduckgo.com/html/?q=%s" #define SEARCH "https://search.nunosempere.com/search?q=%s" // "https://lite.duckduckgo.com/html/?q=%s"
#define HOME ROSE_HOMEPAGE ? "file:///home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png" : "https://search.nunosempere.com/" #define HOME ROSE_HOMEPAGE ? "file:///home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png" : "https://search.nunosempere.com/"
// #define HOME ROSE_HOMEPAGE ? "file:///home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png" : "https://search.nunosempere.com/"
#define CACHE_DIR "/home/loki/.cache/rose" #define CACHE_DIR "/home/loki/.cache/rose"
#define WIDTH 1920 // 960 for half-width, 1920 for full width #define WIDTH 1920 // 960 for half-width, 1920 for full width

View File

@ -1,7 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define STYLE_N 3986 + 1 #define STYLE_N 4023 + 1
void read_style_js(char* string) void read_style_js(char* string)
{ {

View File

@ -1,7 +1,7 @@
#ifndef STYLE #ifndef STYLE
#define STYLE #define STYLE
#define STYLE_N 3986 + 1 #define STYLE_N 4023 + 1
void read_style_js(char* string); void read_style_js(char* string);

View File

@ -50,6 +50,10 @@ if (document.domain == "forum.nunosempere.com" ){
} }
if (document.domain == "search.nunosempere.com" ){ if (document.domain == "search.nunosempere.com" ){
styles = ` styles = `
body {
/* zoom: 1.8; */
}
footer { footer {
display: none; display: none;
} }

BIN
rose

Binary file not shown.

2
rose.c
View File

@ -468,7 +468,7 @@ void setup(GtkNotebook* notebook, int argc, char** argv)
window_init(notebook); window_init(notebook);
// Initialize with first uri // Initialize with first uri
char* first_uri = argc > 1 ? argv[1] : NULL; char* first_uri = argc > 1 ? argv[1] : HOME;
notebook_init(notebook, first_uri); notebook_init(notebook, first_uri);
g_object_set(gtk_settings_get_default(), GTK, NULL); g_object_set(gtk_settings_get_default(), GTK, NULL);

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB