From 98114362d9050e4e5f8db6a8978f7e3af2b0700d Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 8 May 2023 22:48:22 -0400 Subject: feat: make search bar gigantic, document GTK inspect. --- README.md | 9 +++++++-- makefile | 6 +++++- rose | Bin 43656 -> 43656 bytes style.css | 14 +++++++++++++- 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c28081e..e0866c0 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A small browser forked from [rose](https://github.com/mini-rose/rose). - Rose is a minimal browser based on webkit2gtk which aims to be a "basement for creating your own browser using [the] gtk and webkit libraries". -- Rosenrot is my fork from rose. It has accumulated cruft that I like, like a "readability" plugin that simplifies annoying websites like [Matt Levine's Money Stuff newsletter](https://www.bloomberg.com/opinion/articles/2022-10-18/matt-levine-s-money-stuff-credit-suisse-was-a-reverse-meme-stock). +- Rosenrot is my fork from rose. It has accumulated quality of life features/cruft that I like, like a "readability" plugin that simplifies annoying websites like [Matt Levine's Money Stuff newsletter](https://www.bloomberg.com/opinion/articles/2022-10-18/matt-levine-s-money-stuff-credit-suisse-was-a-reverse-meme-stock). It also incorporates ad-blocking. - Rosenrot is also a song by the German hardcore rock band [Rammstein](https://www.youtube.com/watch?v=af59U2BRRAU). You can see some screenshots in the [screenshots](./screenshots) folder. @@ -74,7 +74,12 @@ Done: - And for actually opening links with the href new_tab option. - Links: [1](), [2](), [3](), [4]() -### Known bugs +## Cool things + +I just found out that you can inspect a GTK application with the GTK explorer if you set a certain command-line variable. Try this with `make inspect`. + +### Known bugs/gotchas. - [ ] Doesn't work with when Spanish is selected as the language, for some reason. - [ ] At some point, I tried to install libsoup-3 and borked some unknown installation option/paths. So now I need to run rose with `GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/ /bin/rose` (or put `export GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/` in my .bashrc). This won't affect new users though, just double checked on a fresh machine. +- [ ] By default the searchbar is pretty gigantic. I've made this so because I'm a bit myopic, but also work with my laptop in a laptop stand. Anyways, if you are a more normal person you can change this in the style.css. diff --git a/makefile b/makefile index dfb788d..be310c6 100644 --- a/makefile +++ b/makefile @@ -6,7 +6,8 @@ # make uninstall ## C compiler -CC=gcc # tcc: much faster, gcc: more options. Also I don't know whether tcc has error messages/debug options. +CC=gcc # gcc: more options. Also I don't know whether tcc has error messages/debug options. +## CC=tcc # tcc: much faster ## Main file SRC=rose.c @@ -68,6 +69,9 @@ build: $(SRC) $(PLUGS) $(CONFIG) GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/ $(CC) $(DEBUG) $(INCS) $(PLUGS) $(SRC) -o rose $(LIBS) $(ADBLOCK) +inspect: build + GTK_DEBUG=interactive ./rose + install: rose GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/ cp -f rose /usr/bin diff --git a/rose b/rose index 1aaafa9..49d33bd 100755 Binary files a/rose and b/rose differ diff --git a/style.css b/style.css index c7c07b6..97ea51c 100644 --- a/style.css +++ b/style.css @@ -11,13 +11,25 @@ outline-color: @Lavender; color: @Text; border-color: white; - font-size: 16px; /*@Base; */ /* border-bottom-color: @Base; */ } window, notebook, headerbar { background: @Base; + fontsize: 30px !important; +} + +/* Make titlebar pretty gigantic. I'm pretty myopic. */ +.titlebar { + padding: 10px; + font-size: 30px; +} + + +.titlebar * { + padding: 10px; + font-size: 27px; } tabs { -- cgit v1.2.3