Dwarf-Therapist
Dwarf-Therapist copied to clipboard
Add Dark Theme
Add a dark theme (possibly support for others if anyone cares) for the Dwarf Therapist UI.
Switching between Dwarf Fortress, which is overall darker, to Dwarf Therapist, which is overwhelmingly bright white, is rather jarring to the eye. In personal experience this is especially noticeable in Let's Plays of Dwarf Fortress.
I'd really love to have this too.
I'm willing to make my own branch and start some work on this in about a month when my current projects finish up, if anyone else is interested?
Me three.
Perhaps we can get a branch going to start development on this.
I have no idea how it works right now, but it would be really nice to get working on this project.
I'm out of my home country until January 12th but I will begin development stuff then, feel free to start without me I guess.
Not sure how Qt applies themes on Windows, but on linux it uses the current GTK+ theme.
It would take a LOT more effort to create a dark theme, than to just find a good GTK theme and apply it.
I sadly can't help but I would like to see a dark theme as well. It was actually the first thing that came to mind when I was starting using DT.
I'm almost done with the dark theme, should be decently completed by tomorrow.
I implemented it in a very simple and versatile way so that you can create a separate style-sheet (.qss) and put it into the resources/
folder and have it as the selected style-sheet on startup.
I'll likely put a loadStyleSheetFromFile
button that lets you designate the default style-sheet from your resources/
folder - where you would store your style-sheets.
I'll also put a reloadStyleSheet
button, so that you can reload the style-sheet, into Dwarf Therapist, after editing it(this is meant to be a convenience for designers; to see Dwarf Therapist change style without having to run Qt-Creator).
I am going to eventually create some proper documentation for the different "style-sheet editable" sections of DT so that designers can simply refer to it and already know what/how to modify (no promises though :P ).
Did this ever happen? I can't find any documentation on it.
https://github.com/splintermind/Dwarf-Therapist/pull/308
Though I was far more optimistic when I was actually working on this. At the time, because over the years there have been different ways for generating the different UI segments (within this code base), Qt didn't handle stylesheets very well. I don't know what it's like now.