Willy-JL / F95Checker

GNU General Public License v3.0
101 stars 16 forks source link

Style overrides from toml file #130

Closed r37r05p3C7 closed 4 months ago

r37r05p3C7 commented 4 months ago

I'm using a Base16 generator to change my color scheme globally and rebuild my dotfiles with one command. This works great for command-line tools. For GTK/Qt, I use default dark themes. However, since f95checker is completely platform-independent, it's rather difficult to externally customize it. This PR exposes single styles.toml file, which, if it exists, will be used to override default styles; and RPC method which I can use as a hook, to refresh styles on the fly.

I know this is a pretty niche feature (I'm pretty sure I will be the only one who will use it, lol), but it will be invisible to the regular user, and I will greatly appreciate it if we can have it in the main branch so I don't have to apply patch for each new build.

r37r05p3C7 commented 4 months ago

I'll be happy to have https://github.com/Willy-JL/F95Checker/pull/130/commits/b67a0c14854ef9961d5d8e1ba85b7881e3dc2abf only, if you think last 2 commits are too much

Willy-JL commented 4 months ago

Wish granted

I'll squash merge so it easier to revert in the future just in case