feat: make search bar gigantic, document GTK inspect.
This commit is contained in:
parent
85942a60bd
commit
98114362d9
|
@ -3,7 +3,7 @@
|
||||||
A small browser forked from [rose](https://github.com/mini-rose/rose).
|
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".
|
- 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).
|
- 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.
|
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.
|
- And for actually opening links with the href new_tab option.
|
||||||
- Links: [1](<https://docs.gtk.org/gobject/func.signal_connect.html>), [2](<https://webkitgtk.org/reference/webkit2gtk/2.37.90/signal.AutomationSession.create-web-view.html>), [3](<https://webkitgtk.org/reference/webkit2gtk/2.26.0/WebKitWebView.html#WebKitWebView-create>), [4](<https://stackoverflow.com/questions/40180757/webkit2gtk-get-new-window-link>)
|
- Links: [1](<https://docs.gtk.org/gobject/func.signal_connect.html>), [2](<https://webkitgtk.org/reference/webkit2gtk/2.37.90/signal.AutomationSession.create-web-view.html>), [3](<https://webkitgtk.org/reference/webkit2gtk/2.26.0/WebKitWebView.html#WebKitWebView-create>), [4](<https://stackoverflow.com/questions/40180757/webkit2gtk-get-new-window-link>)
|
||||||
|
|
||||||
### 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.
|
- [ ] 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.
|
- [ ] 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.
|
||||||
|
|
6
makefile
6
makefile
|
@ -6,7 +6,8 @@
|
||||||
# make uninstall
|
# make uninstall
|
||||||
|
|
||||||
## C compiler
|
## 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
|
## Main file
|
||||||
SRC=rose.c
|
SRC=rose.c
|
||||||
|
@ -68,6 +69,9 @@ build: $(SRC) $(PLUGS) $(CONFIG)
|
||||||
GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/
|
GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/
|
||||||
$(CC) $(DEBUG) $(INCS) $(PLUGS) $(SRC) -o rose $(LIBS) $(ADBLOCK)
|
$(CC) $(DEBUG) $(INCS) $(PLUGS) $(SRC) -o rose $(LIBS) $(ADBLOCK)
|
||||||
|
|
||||||
|
inspect: build
|
||||||
|
GTK_DEBUG=interactive ./rose
|
||||||
|
|
||||||
install: rose
|
install: rose
|
||||||
GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/
|
GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/
|
||||||
cp -f rose /usr/bin
|
cp -f rose /usr/bin
|
||||||
|
|
14
style.css
14
style.css
|
@ -11,13 +11,25 @@
|
||||||
outline-color: @Lavender;
|
outline-color: @Lavender;
|
||||||
color: @Text;
|
color: @Text;
|
||||||
border-color: white;
|
border-color: white;
|
||||||
font-size: 16px;
|
|
||||||
/*@Base; */
|
/*@Base; */
|
||||||
/* border-bottom-color: @Base; */
|
/* border-bottom-color: @Base; */
|
||||||
}
|
}
|
||||||
|
|
||||||
window, notebook, headerbar {
|
window, notebook, headerbar {
|
||||||
background: @Base;
|
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 {
|
tabs {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user